Belle II Software development
SVDFADCMaskedStrips Class Reference

This class defines the dbobject and the method to access strips which are masked at FADC level. More...

#include <SVDFADCMaskedStrips.h>

Public Types

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

Public Member Functions

 SVDFADCMaskedStrips ()
 Constructor, no input argument is required.
 
float isMasked (const VxdID &sensorID, const bool &isU, const unsigned short &strip) const
 This is the method for getting the comprehensive list of masked strips at FADC level.
 
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("SVDFADCMaskedStrips")
 name of the SVDFADCMaskedStrips payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDFADCMaskedStrips payload.
 

Detailed Description

This class defines the dbobject and the method to access strips which are masked at FADC level.

Definition at line 32 of file SVDFADCMaskedStrips.h.

Member Typedef Documentation

◆ t_payload

typedef of the SVDFADCMaskedStrips payload for all SVD strips

Definition at line 35 of file SVDFADCMaskedStrips.h.

Constructor & Destructor Documentation

◆ SVDFADCMaskedStrips()

SVDFADCMaskedStrips ( )
inline

Constructor, no input argument is required.

Definition at line 38 of file SVDFADCMaskedStrips.h.

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

Member Function Documentation

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 68 of file SVDFADCMaskedStrips.h.

68{ return m_aDBObjPtr->get_uniqueID(); }

◆ isMasked()

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

This is the method for getting the comprehensive list of masked strips at FADC level.

The list includes both strips masked accordingly to the calibration results and strips permanently masked regardless the outcome of the calibration runs. Input:

Parameters
sensorIDidentity 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 masked, 0 otherwise. it throws std::out_of_range if the strip is unknown

Definition at line 59 of file SVDFADCMaskedStrips.h.

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

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 71 of file SVDFADCMaskedStrips.h.

71{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDFADCMaskedStrips payload.

Definition at line 74 of file SVDFADCMaskedStrips.h.

◆ name

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

name of the SVDFADCMaskedStrips payload

Definition at line 34 of file SVDFADCMaskedStrips.h.


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