Belle II Software development
SVDNoiseCalibrations Class Reference

This class defines the dbobject and the method to access SVD calibrations from the noise local runs. More...

#include <SVDNoiseCalibrations.h>

Public Types

typedef SVDCalibrationsBase< SVDCalibrationsVector< float > > t_payload
 typedef of the SVDNoiseCalibrations payload of all SVD strips
 

Public Member Functions

 SVDNoiseCalibrations ()
 Constructor, no input argument is required.
 
float getNoise (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 This is the method for getting the noise.
 
TString getUniqueID ()
 returns the unique ID of the payload
 
bool isValid ()
 returns true if the m_aDBObtPtr is valid in the requested IoV
 
float getNoiseInElectrons (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 This method provides the correct noise conversion into electrons, taking into account that the noise is the result of an ADC output average, so it is not an integer, but a float number.
 

Static Public Attributes

static std::string name = std::string("SVDNoiseCalibrations")
 name of the SVDNoiseCalibrations payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 the SVDNoiseCalibrations pyaload
 

Detailed Description

This class defines the dbobject and the method to access SVD calibrations from the noise local runs.

It provides the strip noise in ADC units.

Definition at line 34 of file SVDNoiseCalibrations.h.

Member Typedef Documentation

◆ t_payload

typedef of the SVDNoiseCalibrations payload of all SVD strips

Definition at line 38 of file SVDNoiseCalibrations.h.

Constructor & Destructor Documentation

◆ SVDNoiseCalibrations()

Constructor, no input argument is required.

Definition at line 41 of file SVDNoiseCalibrations.h.

42 {
43 m_aDBObjPtr.addCallback([ this ](const std::string&) -> void {
44 B2DEBUG(20, "SVDNoiseCalibrations: from now on we are using " <<
45 this->m_aDBObjPtr -> get_uniqueID()); });
46 }
static std::string name
name of the SVDNoiseCalibrations payload
DBObjPtr< t_payload > m_aDBObjPtr
the SVDNoiseCalibrations pyaload

Member Function Documentation

◆ getNoise()

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

This is the method for getting the noise.

Input:

Parameters
sensorIDidentitiy of the sensor for which the calibration is required
isUsensor side, true for p (u) side, false for n (v) side
stripstrip number

Output: integer corresponding to the strip noise in ADC counts. it throws std::out_of_range if the strip is unknown

Definition at line 58 of file SVDNoiseCalibrations.h.

59 {
60 return m_aDBObjPtr->get(sensorID.getLayerNumber(), sensorID.getLadderNumber(),
61 sensorID.getSensorNumber(), m_aDBObjPtr->sideIndex(isU),
62 strip);
63 }

◆ getNoiseInElectrons()

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

This method provides the correct noise conversion into electrons, taking into account that the noise is the result of an ADC output average, so it is not an integer, but a float number.

Input:

Parameters
sensorIDidentitiy of the sensor for which the calibration is required
isUsensor side, true for p (u) side, false for n (v) side
stripstrip number

Output: float corresponding to the strip noise in electrons.

Definition at line 83 of file SVDNoiseCalibrations.h.

84 {
85 SVDPulseShapeCalibrations m_pulseShape;
86 return m_pulseShape.getChargeFromADC(sensorID, isU, strip, getNoise(sensorID, isU, strip));
87 }
float getNoise(const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
This is the method for getting the noise.

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 66 of file SVDNoiseCalibrations.h.

66{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 69 of file SVDNoiseCalibrations.h.

69{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

the SVDNoiseCalibrations pyaload

Definition at line 98 of file SVDNoiseCalibrations.h.

◆ name

std::string name = std::string("SVDNoiseCalibrations")
static

name of the SVDNoiseCalibrations payload

Definition at line 36 of file SVDNoiseCalibrations.h.


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