Belle II Software development
SVD3SampleCoGTimeCalibrations 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 cluster time computed with the 3-sample CoG. More...

#include <SVD3SampleCoGTimeCalibrations.h>

Public Types

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

Public Member Functions

 SVD3SampleCoGTimeCalibrations ()
 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 charge (number of electrons/holes) collected on a specific strip, given the number of ADC counts.
 
double getCorrectedTimeError (const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &raw_time, const double &raw_timeError, const int &bin) const
 Return the error of the CoG cluster time.
 
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("SVD3SampleCoGTimeCalibrations")
 name of the SVD3SampleCoGTimeCalibration wrapper
 

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 cluster time computed with the 3-sample CoG.

Definition at line 31 of file SVD3SampleCoGTimeCalibrations.h.

Member Typedef Documentation

◆ t_payload

typedef for the SVDCoGCalibrationFunction payload of all SVD sensors

Definition at line 35 of file SVD3SampleCoGTimeCalibrations.h.

Constructor & Destructor Documentation

◆ SVD3SampleCoGTimeCalibrations()

Constructor, no input argument is required.

Definition at line 38 of file SVD3SampleCoGTimeCalibrations.h.

39 {
40 m_aDBObjPtr.addCallback([ this ](const std::string&) -> void {
41 B2DEBUG(20, "SVD3SampleCoGTimeCalibrations: from now on we are using " <<
42 this->m_aDBObjPtr -> get_uniqueID()); });
43 }
static std::string name
name of the SVD3SampleCoGTimeCalibration wrapper
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 charge (number of electrons/holes) collected on a specific strip, given the number of ADC counts.

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 57 of file SVD3SampleCoGTimeCalibrations.h.

63 {
64 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
65 sensorID.getLadderNumber(),
66 sensorID.getSensorNumber(),
67 m_aDBObjPtr->sideIndex(isU),
68 strip).calibratedValue(raw_time, bin);
69
70 }
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_timeError,
const int &  bin 
) const
inline

Return the error of the CoG cluster 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
raw_timeError: raw CoG time error in ns
bin: trigger bin (0,1,2,3)

Output: double corresponding to the corrected time error [ns]

Definition at line 84 of file SVD3SampleCoGTimeCalibrations.h.

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

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 101 of file SVD3SampleCoGTimeCalibrations.h.

101{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 104 of file SVD3SampleCoGTimeCalibrations.h.

104{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDCoGCalibrationFunction payload.

Definition at line 109 of file SVD3SampleCoGTimeCalibrations.h.

◆ name

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

name of the SVD3SampleCoGTimeCalibration wrapper

Definition at line 33 of file SVD3SampleCoGTimeCalibrations.h.


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