Belle II Software development
SVDMCClusterTimeFudgeFactor Class Reference

This class defines the dbobject and the methods to access the SVD time fudge factors for MC reconstruction. More...

#include <SVDMCClusterTimeFudgeFactor.h>

Public Types

typedef SVDCalibrationsBase< SVDCalibrationsScalar< float > > t_payload
 typedef for the SVDMCClusterTimeFudgeFactor payload of all SVD sensors
 

Public Member Functions

 SVDMCClusterTimeFudgeFactor ()
 Constructor, no input argument is required.
 
double getFudgeFactor (const Belle2::VxdID &sensorID, const bool &isU) const
 Return the MC fudge factor.
 
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("SVDMCClusterTimeFudgeFactor")
 name of the SVDMCClusterTimeFudgeFactor payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDMCClusterTimeFudgeFactor payload.
 

Detailed Description

This class defines the dbobject and the methods to access the SVD time fudge factors for MC reconstruction.

Definition at line 26 of file SVDMCClusterTimeFudgeFactor.h.

Member Typedef Documentation

◆ t_payload

typedef for the SVDMCClusterTimeFudgeFactor payload of all SVD sensors

Definition at line 30 of file SVDMCClusterTimeFudgeFactor.h.

Constructor & Destructor Documentation

◆ SVDMCClusterTimeFudgeFactor()

Constructor, no input argument is required.

Definition at line 33 of file SVDMCClusterTimeFudgeFactor.h.

34 {
35 m_aDBObjPtr.addCallback([this](const std::string&) -> void
36 { B2DEBUG(20, "SVDMCClusterTimeFudgeFactor: from now on we are using " << this->m_aDBObjPtr->get_uniqueID()); });
37 }
DBObjPtr< t_payload > m_aDBObjPtr
SVDMCClusterTimeFudgeFactor payload.
static std::string name
name of the SVDMCClusterTimeFudgeFactor payload

Member Function Documentation

◆ getFudgeFactor()

double getFudgeFactor ( const Belle2::VxdID sensorID,
const bool &  isU 
) const
inline

Return the MC fudge factor.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side

Output: double corresponding to the fudge factor

Definition at line 47 of file SVDMCClusterTimeFudgeFactor.h.

50 {
51 return m_aDBObjPtr->get(sensorID.getLayerNumber(),
52 sensorID.getLadderNumber(),
53 sensorID.getSensorNumber(),
54 m_aDBObjPtr->sideIndex(isU),
55 1);
56 }
baseType getSensorNumber() const
Get the sensor id.
Definition: VxdID.h:100
baseType getLadderNumber() const
Get the ladder id.
Definition: VxdID.h:98
baseType getLayerNumber() const
Get the layer id.
Definition: VxdID.h:96

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 59 of file SVDMCClusterTimeFudgeFactor.h.

59{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 62 of file SVDMCClusterTimeFudgeFactor.h.

62{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr<t_payload> m_aDBObjPtr
private

SVDMCClusterTimeFudgeFactor payload.

Definition at line 65 of file SVDMCClusterTimeFudgeFactor.h.

◆ name

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

name of the SVDMCClusterTimeFudgeFactor payload

Definition at line 28 of file SVDMCClusterTimeFudgeFactor.h.


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