Berkeley Nuclear Data Software
Public Member Functions | Protected Attributes | List of all members
DetectorCalib Class Referenceabstract

#include <CalibrationClasses.h>

Inheritance diagram for DetectorCalib:
Inheritance graph
[legend]

Public Member Functions

 DetectorCalib ()
 
virtual double applyCalib (double a_value) const =0
 
virtual DetectorCalibclone ()=0
 
virtual double invertCalib (double a_value) const
 
virtual std::ostream & print (std::ostream &a_stream=std::cout) const
 prints nothing by default More...
 
CalibType getCalibType ()
 
void setTime (uint32_t a_t)
 sets the experiment time during the processing in time since epoch More...
 
void setTDiv (int a_timeDiv)
 sets the divisor for which to consider the given time More...
 
virtual ~DetectorCalib ()
 

Protected Attributes

CalibType m_type
 
uint32_t m_t
 
int m_tDiv
 

Constructor & Destructor Documentation

◆ DetectorCalib()

DetectorCalib::DetectorCalib ( )

◆ ~DetectorCalib()

DetectorCalib::~DetectorCalib ( )
virtual

Member Function Documentation

◆ applyCalib()

virtual double DetectorCalib::applyCalib ( double  a_value) const
pure virtual

pure vitural function to return tha calibrated value which forces implementation by inheriting classes

Implemented in TDepPolyCalib, TDepOffsetCalib, TDepLinearCalib, PolyCalib, QuadraticCalib, LinearCalib, OffsetCalib, and ScalarCalib.

Here is the caller graph for this function:

◆ clone()

virtual DetectorCalib* DetectorCalib::clone ( )
pure virtual

this is required to implement deep copies of derived classes and needs to be implemented for any inheriting class

Implemented in TDepPolyCalib, TDepOffsetCalib, TDepLinearCalib, PolyCalib, QuadraticCalib, LinearCalib, OffsetCalib, and ScalarCalib.

Here is the caller graph for this function:

◆ getCalibType()

CalibType DetectorCalib::getCalibType ( )

returns what type of implimentation has occured for runtime polymorphism

◆ invertCalib()

double DetectorCalib::invertCalib ( double  a_value) const
virtual

allows for the inverse mapping of a given calibration if needed for applying cuts. implementation isn't enforced by default so the base class implimentation will return -10000;

Reimplemented in LinearCalib.

Here is the caller graph for this function:

◆ print()

std::ostream & DetectorCalib::print ( std::ostream &  a_stream = std::cout) const
virtual

prints nothing by default

Reimplemented in TDepPolyCalib, TDepOffsetCalib, TDepLinearCalib, PolyCalib, QuadraticCalib, LinearCalib, and OffsetCalib.

Here is the caller graph for this function:

◆ setTDiv()

void DetectorCalib::setTDiv ( int  a_timeDiv)

sets the divisor for which to consider the given time

Here is the caller graph for this function:

◆ setTime()

void DetectorCalib::setTime ( uint32_t  a_t)

sets the experiment time during the processing in time since epoch

Here is the caller graph for this function:

Member Data Documentation

◆ m_t

uint32_t DetectorCalib::m_t
protected

◆ m_tDiv

int DetectorCalib::m_tDiv
protected

◆ m_type

CalibType DetectorCalib::m_type
protected

The documentation for this class was generated from the following files: