Belle II Software development
SVDCoGOnlyPositionError Class Reference

This class defines the dbobject and the methods to access the SVD position error parameters and provide the position error for the CoGOnly algorithm. More...

#include <SVDCoGOnlyPositionError.h>

Public Types

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

Public Member Functions

 SVDCoGOnlyPositionError ()
 Constructor, no input argument is required.
 
double getPositionError (const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &clSNR, const int &clSize, const float &pitch) const
 Return the 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("SVDCoGOnlyPositionError")
 name of the SVDPositionErrorFunction payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDPositionErrorFunction payload.
 

Detailed Description

This class defines the dbobject and the methods to access the SVD position error parameters and provide the position error for the CoGOnly algorithm.

Definition at line 29 of file SVDCoGOnlyPositionError.h.

Member Typedef Documentation

◆ t_payload

typedef for the SVDPositionErrorFunction payload of all SVD sensors

Definition at line 33 of file SVDCoGOnlyPositionError.h.

Constructor & Destructor Documentation

◆ SVDCoGOnlyPositionError()

Constructor, no input argument is required.

Definition at line 36 of file SVDCoGOnlyPositionError.h.

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

Member Function Documentation

◆ getPositionError()

double getPositionError ( const Belle2::VxdID sensorID,
const bool &  isU,
const unsigned short &  strip,
const double &  clSNR,
const int &  clSize,
const float &  pitch 
) const
inline

Return the position error.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
stripstrip number - NOT USED
clSNRcluster SNR
clSizecluster size
pitchsensor pitch

Output: double corresponding to the position error

Definition at line 55 of file SVDCoGOnlyPositionError.h.

62 {
63 return pitch * m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
64 sensorID.getLadderNumber(),
65 sensorID.getSensorNumber(),
66 m_aDBObjPtr->sideIndex(isU),
67 strip).getPositionError(clSNR, clSize);
68
69 }
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 72 of file SVDCoGOnlyPositionError.h.

72{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 75 of file SVDCoGOnlyPositionError.h.

75{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDPositionErrorFunction payload.

Definition at line 80 of file SVDCoGOnlyPositionError.h.

◆ name

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

name of the SVDPositionErrorFunction payload

Definition at line 31 of file SVDCoGOnlyPositionError.h.


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