Belle II Software  release-06-01-15
SVDPulseShapeCalibrations Class Reference

This class defines the dbobject and the methods to access the SVD calibrations from the local runs providing the constants needed to calibrate the SVDShaperDigit: the charge, the ADC counts, the peaking time and the width. More...

#include <SVDPulseShapeCalibrations.h>

Collaboration diagram for SVDPulseShapeCalibrations:

Public Types

typedef SVDCalibrationsBase< SVDCalibrationsVector< SVDStripCalAmp > > t_calAmp_payload
 typedef of the SVDStripCalAmp payload of all SVD strips
 

Public Member Functions

 SVDPulseShapeCalibrations ()
 Constructor, no input argument is required.
 
double getChargeFromADC (const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &pulseADC) const
 Return the charge (number of electrons/holes) collected on a specific strip, given the number of ADC counts. More...
 
long int getADCFromCharge (const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &charge) const
 Return a signed long integer corresponding to the ADC pulse height per strip, provided the charge [e] collected on that strip. More...
 
unsigned char getCappedADCFromCharge (const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &charge) const
 Return an unsigned 8 bit integer corresponding to the ADC pulse height per strip, provided the charge [e] collected on that strip. More...
 
float getPeakTime (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 Return the peaking time of the strip. More...
 
float getWidth (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 Return the width of the pulse shape for a given strip. 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 calAmp_name = std::string("SVDPulseShapeCalibrations")
 name of the SVDStripCalAmp payload
 

Private Member Functions

float getGain (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 Return the channel gain. More...
 

Private Attributes

DBObjPtr< t_calAmp_payloadm_calAmp_aDBObjPtr
 SVDStripCalAmp 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 calibrate the SVDShaperDigit: the charge, the ADC counts, the peaking time and the width.

Definition at line 34 of file SVDPulseShapeCalibrations.h.

Member Function Documentation

◆ getADCFromCharge()

long int getADCFromCharge ( const Belle2::VxdID sensorID,
const bool &  isU,
const unsigned short &  strip,
const double &  charge 
) const
inline

Return a signed long integer corresponding to the ADC pulse height per strip, provided the charge [e] collected on that strip.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
stripstrip number
chargethe charge in units [e] is also required as input argument

Output: an integer number representing the ADC pulse height for the correponding input charge, on the given strip. The output is capped at 255.

Definition at line 85 of file SVDPulseShapeCalibrations.h.

89  {
90  return roundl(charge * getGain(sensorID, isU, strip));
91  }
float getGain(const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
Return the channel gain.

◆ getCappedADCFromCharge()

unsigned char getCappedADCFromCharge ( const Belle2::VxdID sensorID,
const bool &  isU,
const unsigned short &  strip,
const double &  charge 
) const
inline

Return an unsigned 8 bit integer corresponding to the ADC pulse height per strip, provided the charge [e] collected on that strip.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
stripstrip number
chargethe charge in units [e] is also required as input argument

Output: an integer number representing the ADC pulse height for the correponding input charge, on the given strip. The output is capped at 255.

Definition at line 109 of file SVDPulseShapeCalibrations.h.

◆ getChargeFromADC()

double getChargeFromADC ( const Belle2::VxdID sensorID,
const bool &  isU,
const unsigned short &  strip,
const double &  pulseADC 
) 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
pulseADC: The ADC-pulse height, a double between 0 and 255 (included)

Output: float corresponding to the charge [e] converted from the read ADC pulse.

Definition at line 61 of file SVDPulseShapeCalibrations.h.

◆ getGain()

float getGain ( const VxdID sensorID,
const bool &  isU,
const unsigned short &  strip 
) const
inlineprivate

Return the channel gain.

the gain is expressed in ADC counts / # electrons injected in the channel That is: pulseADC / gain = charge [e] charge * gain = pulse height [ADC counts]

Definition at line 181 of file SVDPulseShapeCalibrations.h.

◆ getPeakTime()

float getPeakTime ( const VxdID sensorID,
const bool &  isU,
const unsigned short &  strip 
) const
inline

Return the peaking time of the strip.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
stripstrip number
chargethe charge in electrons

Output: a float number corresponding to the peaking time

Definition at line 131 of file SVDPulseShapeCalibrations.h.

◆ getWidth()

float getWidth ( const VxdID sensorID,
const bool &  isU,
const unsigned short &  strip 
) const
inline

Return the width of the pulse shape for a given strip.

Since it is provided from local run measurements in [APV clock/8] units, the correct value to be uploaded on the central DB for the width in [ns], the conversion factor [31.44ns/8] must be applied. The payload already retrieves the converted width in [ns].

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
stripstrip number

Output: a float number corresponding to the pulse width in ns.

Definition at line 155 of file SVDPulseShapeCalibrations.h.


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