Belle II Software development
TOPCalTOFCorrection Class Reference

Time-of-flight corrections as a function of ExtHit z-coordinate expressed in a TOP module frame. More...

#include <TOPCalTOFCorrection.h>

Inheritance diagram for TOPCalTOFCorrection:

Public Member Functions

 TOPCalTOFCorrection ()
 Default constructor.
 
void set (const TProfile *pf)
 Setter.
 
double get (double z) const
 Getter.
 
double getZmin () const
 Returns minimal z.
 
double getZbinWidth () const
 Returns bin width.
 
const std::vector< float > & getConstants () const
 Returns a vector of calibration constants.
 
bool isCalibrated () const
 Returns calibration status.
 

Private Member Functions

 ClassDef (TOPCalTOFCorrection, 1)
 ClassDef.
 

Private Attributes

float m_zmin = 0
 minimal z
 
float m_dz = 0
 bin width
 
std::vector< float > m_corrections
 time-of-flight corrections as function of z
 

Detailed Description

Time-of-flight corrections as a function of ExtHit z-coordinate expressed in a TOP module frame.

Definition at line 24 of file TOPCalTOFCorrection.h.

Constructor & Destructor Documentation

◆ TOPCalTOFCorrection()

TOPCalTOFCorrection ( )
inline

Default constructor.

Definition at line 30 of file TOPCalTOFCorrection.h.

31 {}

Member Function Documentation

◆ getConstants()

const std::vector< float > & getConstants ( ) const
inline

Returns a vector of calibration constants.

Returns
vector of constants

Definition at line 62 of file TOPCalTOFCorrection.h.

62{return m_corrections;}

◆ getZbinWidth()

double getZbinWidth ( ) const
inline

Returns bin width.

Returns
bin width

Definition at line 56 of file TOPCalTOFCorrection.h.

56{return m_dz;}

◆ getZmin()

double getZmin ( ) const
inline

Returns minimal z.

Returns
minimal z

Definition at line 50 of file TOPCalTOFCorrection.h.

50{return m_zmin;}

◆ isCalibrated()

bool isCalibrated ( ) const
inline

Returns calibration status.

Returns
true, if calibrated

Definition at line 68 of file TOPCalTOFCorrection.h.

68{return !m_corrections.empty();}

Member Data Documentation

◆ m_corrections

std::vector<float> m_corrections
private

time-of-flight corrections as function of z

Definition at line 74 of file TOPCalTOFCorrection.h.

◆ m_dz

float m_dz = 0
private

bin width

Definition at line 73 of file TOPCalTOFCorrection.h.

◆ m_zmin

float m_zmin = 0
private

minimal z

Definition at line 72 of file TOPCalTOFCorrection.h.


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