Belle II Software  release-08-01-10
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>

Collaboration diagram for SVD3SampleCoGTimeCalibrations:

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. More...
 
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. More...
 
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 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  }
DBObjPtr< t_payload > m_aDBObjPtr
SVDCoGCalibrationFunction payload.
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.


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