Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
TimingCalibration Class Reference

A class to hold the timing calibration for a detector. More...

#include <TimingCalibrator.hpp>

Collaboration diagram for TimingCalibration:

Public Member Functions

 TimingCalibration ()
 
 ~TimingCalibration ()
 
double GetLeftRightTimeOffset (void) const
 
double GetTofOffset (const unsigned int &a) const
 
double GetXOffset (void) const
 
double GetZ0 (void) const
 
double GetZOffset (void) const
 
unsigned int GetNumTofOffsets (void) const
 
void SetLeftRightTimeOffset (const double &a)
 
void SetTofOffset (const unsigned int &a, const double &b)
 
void SetXOffset (const double &a)
 
void SetZ0 (const double &a)
 
void SetZOffset (const double &a)
 

Private Member Functions

void SetDefaults (void)
 

Private Attributes

double lrtOffset_
 left-right time offset
 
double xOffset_
 offset between the center of the bar and the source
 
double z0_
 perpendicular distance between the bar and source
 
double zOffset_
 additional corrections to z0
 
std::map< unsigned int, double > tofOffsets_
 A map holding all of the ToF offsets w.r.t. starts.
 

Detailed Description

A class to hold the timing calibration for a detector.

Constructor & Destructor Documentation

TimingCalibration::TimingCalibration ( )
inline

Default Constructor

TimingCalibration::~TimingCalibration ( )
inline

Default Destructor

Member Function Documentation

double TimingCalibration::GetLeftRightTimeOffset ( void  ) const
inline
Returns
The left-right time offset in ns
unsigned int TimingCalibration::GetNumTofOffsets ( void  ) const
inline
Returns
the number of ToF Offsets that were read in from the calibration
double TimingCalibration::GetTofOffset ( const unsigned int &  a) const
inline
Returns
time offset w.r.t. start at location a
Parameters
[in]a: location of the start to get the offset for
double TimingCalibration::GetXOffset ( void  ) const
inline
Returns
offset between the center of the bar and the source in cm
double TimingCalibration::GetZ0 ( void  ) const
inline
Returns
the perpendicular distance between the bar and source in cm
double TimingCalibration::GetZOffset ( void  ) const
inline
Returns
additional corrections to z0 in cm (UNUSED)
void TimingCalibration::SetDefaults ( void  )
inlineprivate

Initializer for a default timing calibration

void TimingCalibration::SetLeftRightTimeOffset ( const double &  a)
inline

Sets the left-right time offset

Parameters
[in]a: the offset in ns
void TimingCalibration::SetTofOffset ( const unsigned int &  a,
const double &  b 
)
inline

Sets the time offset w.r.t. to start location

Parameters
[in]a: the start location
[in]b: the offset in ns
void TimingCalibration::SetXOffset ( const double &  a)
inline

Sets the offset between the center of the bar and the source

Parameters
[in]a: the offset in cm
void TimingCalibration::SetZ0 ( const double &  a)
inline

Sets the perpendicular distance between the bar and source

Parameters
[in]a: the distance in cm
void TimingCalibration::SetZOffset ( const double &  a)
inline

Sets the additional corrections to z0

Parameters
[in]a: the offset in cm

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