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

Collaboration diagram for SVDCoGTimeCalibrations:

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. More...
 
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. 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("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 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  }
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_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.


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