Belle II Software development
|
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>
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. | |
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. | |
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. | |
float | getPeakTime (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const |
Return the peaking time of the strip. | |
float | getWidth (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const |
Return the width of the pulse shape for a given strip. | |
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. | |
Private Attributes | |
DBObjPtr< t_calAmp_payload > | m_calAmp_aDBObjPtr |
SVDStripCalAmp payload. | |
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.
typedef of the SVDStripCalAmp payload of all SVD strips
Definition at line 38 of file SVDPulseShapeCalibrations.h.
|
inline |
Constructor, no input argument is required.
Definition at line 41 of file SVDPulseShapeCalibrations.h.
|
inline |
Return a signed long integer corresponding to the ADC pulse height per strip, provided the charge [e] collected on that strip.
Input:
sensorID | identity of the sensor for which the calibration is required |
isU | sensor side, true for p side, false for n side |
strip | strip number |
charge | the 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.
|
inline |
Return an unsigned 8 bit integer corresponding to the ADC pulse height per strip, provided the charge [e] collected on that strip.
Input:
sensorID | identity of the sensor for which the calibration is required |
isU | sensor side, true for p side, false for n side |
strip | strip number |
charge | the 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.
|
inline |
Return the charge (number of electrons/holes) collected on a specific strip, given the number of ADC counts.
Input:
sensorID | identity of the sensor for which the calibration is required |
isU | sensor side, true for p side, false for n side |
strip | strip 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.
|
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 180 of file SVDPulseShapeCalibrations.h.
|
inline |
Return the peaking time of the strip.
Input:
sensorID | identity of the sensor for which the calibration is required |
isU | sensor side, true for p side, false for n side |
strip | strip number |
Output: a float number corresponding to the peaking time
Definition at line 130 of file SVDPulseShapeCalibrations.h.
|
inline |
|
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:
sensorID | identity of the sensor for which the calibration is required |
isU | sensor side, true for p side, false for n side |
strip | strip number |
Output: a float number corresponding to the pulse width in ns.
Definition at line 154 of file SVDPulseShapeCalibrations.h.
|
inline |
returns true if the m_aDBObtPtr is valid in the requested IoV
Definition at line 166 of file SVDPulseShapeCalibrations.h.
|
static |
name of the SVDStripCalAmp payload
Definition at line 36 of file SVDPulseShapeCalibrations.h.
|
private |
SVDStripCalAmp payload.
Definition at line 189 of file SVDPulseShapeCalibrations.h.