Belle II Software development
SVDCoGTimeCalibrations Class Reference

This class defines the dbobject and the methods to access the SVD calibrations from the local runs providing the constants needed to correct the strip time computed with the CoG. More...

#include <SVDCoGTimeCalibrations.h>

Public Types

typedef SVDCalibrationsBase< SVDCalibrationsScalar< SVDCoGCalibrationFunction > > t_payload
 typedef for the SVDCoGCalibrationFunction payload of all SVD sensors
 

Public Member Functions

 SVDCoGTimeCalibrations ()
 Constructor, no input argument is required.
 
double getCorrectedTime (const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &raw_time, const int &bin) const
 Return the strip time, given the raw strip time.
 
double getCorrectedTimeError (const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &raw_time, const double &raw_timeErr, const int &bin) const
 Return the strip time error, given the raw strip time, and tje raw time error.
 
TString getUniqueID ()
 returns the unique ID of the payload
 
bool isValid ()
 returns true if the m_aDBObtPtr is valid in the requested IoV
 

Static Public Attributes

static std::string name = std::string("SVDCoGTimeCalibrations")
 name of the SVDCoGCalibrationFunction payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDCoGCalibrationFunction payload.
 

Detailed Description

This class defines the dbobject and the methods to access the SVD calibrations from the local runs providing the constants needed to correct the strip time computed with the CoG.

Definition at line 30 of file SVDCoGTimeCalibrations.h.

Member Typedef Documentation

◆ t_payload

typedef for the SVDCoGCalibrationFunction payload of all SVD sensors

Definition at line 34 of file SVDCoGTimeCalibrations.h.

Constructor & Destructor Documentation

◆ SVDCoGTimeCalibrations()

Constructor, no input argument is required.

Definition at line 37 of file SVDCoGTimeCalibrations.h.

38 {
39 m_aDBObjPtr.addCallback([ this ](const std::string&) -> void {
40 B2DEBUG(20, "SVDCoGTimeCalibrations: from now on we are using " <<
41 this->m_aDBObjPtr -> get_uniqueID()); });
42 }
static std::string name
name of the SVDCoGCalibrationFunction payload
DBObjPtr< t_payload > m_aDBObjPtr
SVDCoGCalibrationFunction payload.

Member Function Documentation

◆ getCorrectedTime()

double getCorrectedTime ( const Belle2::VxdID sensorID,
const bool &  isU,
const unsigned short &  strip,
const double &  raw_time,
const int &  bin 
) const
inline

Return the strip time, given the raw strip time.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
stripstrip number - NOT USED
raw_time: raw CoG time in ns
bin: trigger bin (0,1,2,3)

Output: double corresponding to the corrected time [ns]

Definition at line 55 of file SVDCoGTimeCalibrations.h.

61 {
62 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
63 sensorID.getLadderNumber(),
64 sensorID.getSensorNumber(),
65 m_aDBObjPtr->sideIndex(isU),
66 strip).calibratedValue(raw_time, bin);
67
68 }
baseType getSensorNumber() const
Get the sensor id.
Definition: VxdID.h:100
baseType getLadderNumber() const
Get the ladder id.
Definition: VxdID.h:98
baseType getLayerNumber() const
Get the layer id.
Definition: VxdID.h:96

◆ getCorrectedTimeError()

double getCorrectedTimeError ( const Belle2::VxdID sensorID,
const bool &  isU,
const unsigned short &  strip,
const double &  raw_time,
const double &  raw_timeErr,
const int &  bin 
) const
inline

Return the strip time error, given the raw strip time, and tje raw time error.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
stripstrip number - NOT USED
raw_time: raw CoG time in ns
raw_timeErr: raw CoG time in ns
bin: trigger bin (0,1,2,3)

Output: double corresponding to the corrected time [ns]

Definition at line 83 of file SVDCoGTimeCalibrations.h.

90 {
91 return m_aDBObjPtr->get(sensorID.getLayerNumber(),
92 sensorID.getLadderNumber(),
93 sensorID.getSensorNumber(),
94 m_aDBObjPtr->sideIndex(isU),
95 strip).calibratedValueError(raw_time, raw_timeErr, bin);
96
97 }

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 100 of file SVDCoGTimeCalibrations.h.

100{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 103 of file SVDCoGTimeCalibrations.h.

103{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDCoGCalibrationFunction payload.

Definition at line 108 of file SVDCoGTimeCalibrations.h.

◆ name

std::string name = std::string("SVDCoGTimeCalibrations")
static

name of the SVDCoGCalibrationFunction payload

Definition at line 32 of file SVDCoGTimeCalibrations.h.


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