Belle II Software development
SVDPedestalCalibrations Class Reference

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

#include <SVDPedestalCalibrations.h>

Public Types

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

Public Member Functions

 SVDPedestalCalibrations ()
 Constructor, no input argument is required.
 
float getPedestal (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 This is the method for getting the pedestal.
 
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("SVDPedestalCalibrations")
 name of the SVDPedestalCalibrations payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDPedestalCalibrations payload.
 

Detailed Description

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

It provides the strip pedestal in ADC units.

Definition at line 30 of file SVDPedestalCalibrations.h.

Member Typedef Documentation

◆ t_payload

typedef of the SVDPedestalCalibrations payload of all SVD strips

Definition at line 34 of file SVDPedestalCalibrations.h.

Constructor & Destructor Documentation

◆ SVDPedestalCalibrations()

Constructor, no input argument is required.

Definition at line 37 of file SVDPedestalCalibrations.h.

38 {
39 m_aDBObjPtr.addCallback([ this ](const std::string&) -> void {
40 B2DEBUG(20, "SVDPedestalCalibrations: from now on we are using " <<
41 this->m_aDBObjPtr -> get_uniqueID()); });
42 }
static std::string name
name of the SVDPedestalCalibrations payload
DBObjPtr< t_payload > m_aDBObjPtr
SVDPedestalCalibrations payload.

Member Function Documentation

◆ getPedestal()

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

This is the method for getting the pedestal.

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 pedestal in ADC counts. it throws std::out_of_range if the strip is unknown

Definition at line 54 of file SVDPedestalCalibrations.h.

55 {
56 return m_aDBObjPtr->get(sensorID.getLayerNumber(), sensorID.getLadderNumber(),
57 sensorID.getSensorNumber(), m_aDBObjPtr->sideIndex(isU),
58 strip);
59 }

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 70 of file SVDPedestalCalibrations.h.

70{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 73 of file SVDPedestalCalibrations.h.

73{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDPedestalCalibrations payload.

Definition at line 76 of file SVDPedestalCalibrations.h.

◆ name

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

name of the SVDPedestalCalibrations payload

Definition at line 32 of file SVDPedestalCalibrations.h.


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