Berkeley Nuclear Data Software
Public Member Functions | List of all members
TDepLinearCalib Class Reference

#include <CalibrationClasses.h>

Inheritance diagram for TDepLinearCalib:
Inheritance graph
[legend]
Collaboration diagram for TDepLinearCalib:
Collaboration graph
[legend]

Public Member Functions

 TDepLinearCalib ()
 
double applyCalib (double a_value) const
 returns gc(t)*a_value*m_scalar+m_offset More...
 
void setGainCorrectionFactors (const std::map< uint32_t, double > &a_gcMap)
 
virtual std::ostream & print (std::ostream &a_stream=std::cout) const
 prints nothing by default More...
 
virtual TDepLinearCalibclone ()
 
- Public Member Functions inherited from LinearCalib
 LinearCalib ()
 
double invertCalib (double a_value) const
 
void setCalibration (double a_scalar, double a_offset)
 
void setScalar (double a_scalar)
 
void setOffset (double a_offset)
 
- Public Member Functions inherited from DetectorCalib
 DetectorCalib ()
 
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 ()
 

Additional Inherited Members

- Protected Attributes inherited from LinearCalib
double m_scalar
 scalar for the calibration More...
 
double m_offset
 offset for the calibration More...
 
- Protected Attributes inherited from DetectorCalib
CalibType m_type
 
uint32_t m_t
 
int m_tDiv
 

Detailed Description

class used to apply a LinearCalibration to a measurement value inherits from above abc to provide common interface

Constructor & Destructor Documentation

◆ TDepLinearCalib()

TDepLinearCalib::TDepLinearCalib ( )

default constuctor puts the class into a functional state with a scalar value of one and an offset value of zero (does nothing to the original value)

Here is the caller graph for this function:

Member Function Documentation

◆ applyCalib()

double TDepLinearCalib::applyCalib ( double  a_value) const
inlinevirtual

returns gc(t)*a_value*m_scalar+m_offset

Reimplemented from LinearCalib.

◆ clone()

TDepLinearCalib * TDepLinearCalib::clone ( )
virtual

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

Reimplemented from LinearCalib.

Here is the call graph for this function:

◆ print()

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

prints nothing by default

Reimplemented from LinearCalib.

Here is the call graph for this function:

◆ setGainCorrectionFactors()

void TDepLinearCalib::setGainCorrectionFactors ( const std::map< uint32_t, double > &  a_gcMap)

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