Belle II Software development
SVDCoGOnlyErrorScaleFactors Class Reference

This class defines the dbobject and the methods to access the scaling factors for the CoGOnly position algorithm. More...

#include <SVDCoGOnlyErrorScaleFactors.h>

Public Types

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

Public Member Functions

 SVDCoGOnlyErrorScaleFactors ()
 Constructor, no input argument is required.
 
double getCorrectedClusterPositionError (const Belle2::VxdID &sensorID, const bool &isU, const int &size, const double &raw_error) const
 Return the corrected cluster position error.
 
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("SVDCoGOnlyErrorScaleFactors")
 name of SVDPosErrScaleFactors payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDPosErrScaleFactors payload.
 

Detailed Description

This class defines the dbobject and the methods to access the scaling factors for the CoGOnly position algorithm.

Definition at line 29 of file SVDCoGOnlyErrorScaleFactors.h.

Member Typedef Documentation

◆ t_payload

typedef for the of SVDPosErrScaleFactors payload of all SVD sensors

Definition at line 33 of file SVDCoGOnlyErrorScaleFactors.h.

Constructor & Destructor Documentation

◆ SVDCoGOnlyErrorScaleFactors()

Constructor, no input argument is required.

Definition at line 36 of file SVDCoGOnlyErrorScaleFactors.h.

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

Member Function Documentation

◆ getCorrectedClusterPositionError()

double getCorrectedClusterPositionError ( const Belle2::VxdID sensorID,
const bool &  isU,
const int &  size,
const double &  raw_error 
) const
inline

Return the corrected cluster position error.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
sizecluster size
raw_error: error provided by the algorithm in the SVDClusterizer

Output: double corresponding to the corrected cluster position error [cm]

Definition at line 53 of file SVDCoGOnlyErrorScaleFactors.h.

58 {
59 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
60 sensorID.getLadderNumber(),
61 sensorID.getSensorNumber(),
62 m_aDBObjPtr->sideIndex(isU),
63 0).getCorrectedValue(raw_error, size);
64
65 }
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 68 of file SVDCoGOnlyErrorScaleFactors.h.

68{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 71 of file SVDCoGOnlyErrorScaleFactors.h.

71{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDPosErrScaleFactors payload.

Definition at line 76 of file SVDCoGOnlyErrorScaleFactors.h.

◆ name

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

name of SVDPosErrScaleFactors payload

Definition at line 31 of file SVDCoGOnlyErrorScaleFactors.h.


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