Belle II Software development
SVDHotStripsCalibrations Class Reference

This class defines the wrapper to retrieve the the list of the hot strips flgged offline. More...

#include <SVDHotStripsCalibrations.h>

Public Types

typedef SVDCalibrationsBase< SVDCalibrationsBitmapt_payload
 typedef of the SVDHotStripsCalibrations payload for all SVD strips
 

Public Member Functions

 SVDHotStripsCalibrations ()
 Constructor, no input argument is required.
 
float isHot (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 This is the method for getting the offline list of bad strips to be masked.
 
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("SVDHotStripsCalibrations")
 name of the SVDHotStripsCalibrations payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDHotStripsCalibrations payload.
 

Detailed Description

This class defines the wrapper to retrieve the the list of the hot strips flgged offline.

Definition at line 32 of file SVDHotStripsCalibrations.h.

Member Typedef Documentation

◆ t_payload

typedef of the SVDHotStripsCalibrations payload for all SVD strips

Definition at line 36 of file SVDHotStripsCalibrations.h.

Constructor & Destructor Documentation

◆ SVDHotStripsCalibrations()

Constructor, no input argument is required.

Definition at line 39 of file SVDHotStripsCalibrations.h.

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

Member Function Documentation

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 66 of file SVDHotStripsCalibrations.h.

66{ return m_aDBObjPtr->get_uniqueID(); }

◆ isHot()

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

This is the method for getting the offline list of bad strips to be masked.

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: boolean value, 1 is the strip has to be masked, 0 otherwise. it throws std::out_of_range if the strip is unknown

Definition at line 57 of file SVDHotStripsCalibrations.h.

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

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 69 of file SVDHotStripsCalibrations.h.

69{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDHotStripsCalibrations payload.

Definition at line 72 of file SVDHotStripsCalibrations.h.

◆ name

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

name of the SVDHotStripsCalibrations payload

Definition at line 34 of file SVDHotStripsCalibrations.h.


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