Belle II Software development
SVDMCClusterPositionFudgeFactor Class Reference

This class defines the dbobject and the methods to access the SVD cluster position fudge factors for the SVDClusterizer module. More...

#include <SVDMCClusterPositionFudgeFactor.h>

Public Types

typedef SVDCalibrationsBase< SVDCalibrationsScalar< SVDMCFudgeFactorFunction > > t_payload
 typedef for the SVDMCClusterPositionFudgeFactor payload of all SVD sensors
 

Public Member Functions

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

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDMCClusterPositionFudgeFactor payload.
 

Detailed Description

This class defines the dbobject and the methods to access the SVD cluster position fudge factors for the SVDClusterizer module.

Definition at line 27 of file SVDMCClusterPositionFudgeFactor.h.

Member Typedef Documentation

◆ t_payload

Constructor & Destructor Documentation

◆ SVDMCClusterPositionFudgeFactor()

Constructor, no input argument is required.

Definition at line 34 of file SVDMCClusterPositionFudgeFactor.h.

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

Member Function Documentation

◆ getFudgeFactor()

double getFudgeFactor ( const Belle2::VxdID sensorID,
const bool &  isU,
const double &  trkAngle 
) 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
trkAngletrack's incident angle

Output: double corresponding to the fudge factor

Definition at line 49 of file SVDMCClusterPositionFudgeFactor.h.

53 {
54 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
55 sensorID.getLadderNumber(),
56 sensorID.getSensorNumber(),
57 m_aDBObjPtr->sideIndex(isU),
58 1)
59 .getFudgeFactor(trkAngle);
60 }
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 63 of file SVDMCClusterPositionFudgeFactor.h.

63{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 66 of file SVDMCClusterPositionFudgeFactor.h.

66{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr<t_payload> m_aDBObjPtr
private

◆ name

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

name of the SVDMCClusterPositionFudgeFactor payload

Definition at line 29 of file SVDMCClusterPositionFudgeFactor.h.


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