Belle II Software development
SVDOccupancyCalibrations Class Reference

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

#include <SVDOccupancyCalibrations.h>

Public Types

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

Public Member Functions

 SVDOccupancyCalibrations ()
 Constructor, no input argument is required.
 
float getOccupancy (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 This is the method for getting the occupancy, or the deviation from the average, still to be decided.
 
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("SVDOccupancyCalibrations")
 name of the ccupancy payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 payload of the occupancy
 

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 30 of file SVDOccupancyCalibrations.h.

Member Typedef Documentation

◆ t_payload

typedef of the Occupancy payload of all SVD strips

Definition at line 33 of file SVDOccupancyCalibrations.h.

Constructor & Destructor Documentation

◆ SVDOccupancyCalibrations()

Constructor, no input argument is required.

Definition at line 40 of file SVDOccupancyCalibrations.h.

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

Member Function Documentation

◆ getOccupancy()

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

This is the method for getting the occupancy, or the deviation from the average, still to be decided.

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 occupancy. it throws std::out_of_range if the strip is unknown

Definition at line 58 of file SVDOccupancyCalibrations.h.

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

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 67 of file SVDOccupancyCalibrations.h.

67{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 70 of file SVDOccupancyCalibrations.h.

70{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

payload of the occupancy

Definition at line 73 of file SVDOccupancyCalibrations.h.

◆ name

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

name of the ccupancy payload

Definition at line 32 of file SVDOccupancyCalibrations.h.


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