Belle II Software  release-08-01-10
TOPCalTimeWalk Class Reference

Calibration constants for time-walk correction and for tuning of electronic time resolution in digitization. More...

#include <TOPCalTimeWalk.h>

Inheritance diagram for TOPCalTimeWalk:
Collaboration diagram for TOPCalTimeWalk:

Public Types

enum  EStatus {
  c_Default = 0 ,
  c_Calibrated = 1 ,
  c_Unusable = 2
}
 Calibration status of a constant. More...
 

Public Member Functions

 TOPCalTimeWalk ()
 Default constructor.
 
void set (const std::vector< double > &timeWalkParams, double noise, double quadratic)
 Sets all the parameters and switches status to calibrated. More...
 
void setUnusable ()
 Switches calibration status to unusable to flag badly calibrated constants.
 
const std::vector< double > & getTimeWalkParams () const
 Returns polynomial coefficients of time walk calibration curve. More...
 
double getNoiseCoefficient () const
 Returns noise term excess coefficient of electronic time resolution. More...
 
double getQuadraticCoefficient () const
 Returns quadratic term coefficient of electronic time resolution. More...
 
double getTimeWalk (int pulseHeight) const
 Returns time-walk at given pulse height. More...
 
double getSigmaSq (int pulseHeight) const
 Returns an excess of electronic time resolution at given pulse height. More...
 
double getSigma (int pulseHeight) const
 Returns an excess of electronic time resolution at given pulse height. More...
 
bool isCalibrated () const
 Returns calibration status. More...
 
bool isDefault () const
 Returns calibration status. More...
 
bool isUnusable () const
 Returns calibration status. More...
 

Private Member Functions

 ClassDef (TOPCalTimeWalk, 1)
 ClassDef.
 

Private Attributes

std::vector< double > m_timeWalkParams
 parameters of calibration curve [ns]
 
double m_noise = 0
 noise term excess coefficient [ns]
 
double m_quadratic = 0
 quadratic term coefficient [ns]
 
EStatus m_status = c_Default
 calibration status
 

Detailed Description

Calibration constants for time-walk correction and for tuning of electronic time resolution in digitization.

Definition at line 24 of file TOPCalTimeWalk.h.

Member Enumeration Documentation

◆ EStatus

enum EStatus

Calibration status of a constant.

Enumerator
c_Default 

uncalibrated default value

c_Calibrated 

good calibrated value

c_Unusable 

bad calibrated value

Definition at line 31 of file TOPCalTimeWalk.h.

31  {
32  c_Default = 0,
33  c_Calibrated = 1,
34  c_Unusable = 2
35  };
@ c_Calibrated
good calibrated value
@ c_Unusable
bad calibrated value
@ c_Default
uncalibrated default value

Member Function Documentation

◆ getNoiseCoefficient()

double getNoiseCoefficient ( ) const
inline

Returns noise term excess coefficient of electronic time resolution.

Returns
noise term excess coefficient [ns]

Definition at line 66 of file TOPCalTimeWalk.h.

◆ getQuadraticCoefficient()

double getQuadraticCoefficient ( ) const
inline

Returns quadratic term coefficient of electronic time resolution.

Returns
quadratic term coefficient [ns]

Definition at line 72 of file TOPCalTimeWalk.h.

◆ getTimeWalkParams()

const std::vector<double>& getTimeWalkParams ( ) const
inline

Returns polynomial coefficients of time walk calibration curve.

Returns
coefficents of polynomial [ns]

Definition at line 60 of file TOPCalTimeWalk.h.

◆ isCalibrated()

bool isCalibrated ( ) const
inline

Returns calibration status.

Returns
true, if good calibrated

Definition at line 99 of file TOPCalTimeWalk.h.

◆ isDefault()

bool isDefault ( ) const
inline

Returns calibration status.

Returns
true, if default (not calibrated)

Definition at line 105 of file TOPCalTimeWalk.h.

◆ isUnusable()

bool isUnusable ( ) const
inline

Returns calibration status.

Returns
true, if bad calibrated

Definition at line 111 of file TOPCalTimeWalk.h.


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