Belle II Software  release-08-01-10
SVD3SampleELSTimeCalibrations 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 ELS. More...

#include <SVD3SampleELSTimeCalibrations.h>

Collaboration diagram for SVD3SampleELSTimeCalibrations:

Public Types

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

Public Member Functions

 SVD3SampleELSTimeCalibrations ()
 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...
 
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("SVD3SampleELSTimeCalibrations")
 name of the SVD3SampleELSTimeCalibration 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 ELS.

Definition at line 31 of file SVD3SampleELSTimeCalibrations.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 ELS time in ns
bin: trigger bin (0,1,2,3)

Output: double corresponding to the corrected time [ns]

Definition at line 57 of file SVD3SampleELSTimeCalibrations.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

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