Belle II Software development
SVDClustering Class Reference

This class defines the dbobject and the methods to access the calibration of the cluster reconstruction. More...

#include <SVDClustering.h>

Public Types

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

Public Member Functions

 SVDClustering ()
 Constructor, no input argument is required.
 
double getMinSeedSNR (const Belle2::VxdID &sensorID, const bool &isU) const
 Return the minimum SNR for the seed.
 
double getMinAdjSNR (const Belle2::VxdID &sensorID, const bool &isU) const
 Return the minimum SNR for the adjacent.
 
double getUnfoldingCoeff (const Belle2::VxdID &sensorID, const bool &isU) const
 Return the unfolding coefficient for the strip charge.
 
double getMinClusterSNR (const Belle2::VxdID &sensorID, const bool &isU) const
 Return the minimum SNR for the cluster.
 
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("SVDClustering")
 name of SVDClusterCuts payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDClusterCuts payload.
 

Detailed Description

This class defines the dbobject and the methods to access the calibration of the cluster reconstruction.

Definition at line 29 of file SVDClustering.h.

Member Typedef Documentation

◆ t_payload

typedef for the of SVDClusterCuts payload of all SVD sensors

Definition at line 33 of file SVDClustering.h.

Constructor & Destructor Documentation

◆ SVDClustering()

SVDClustering ( )
inline

Constructor, no input argument is required.

Definition at line 36 of file SVDClustering.h.

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

Member Function Documentation

◆ getMinAdjSNR()

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

Return the minimum SNR for the adjacent.

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 minimum SNR for the adjacent

Definition at line 75 of file SVDClustering.h.

79 {
80 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
81 sensorID.getLadderNumber(),
82 sensorID.getSensorNumber(),
83 m_aDBObjPtr->sideIndex(isU),
84 0 //strip not relevant
85 ).minAdjSNR;
86
87 }
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

◆ getMinClusterSNR()

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

Return the minimum SNR for the cluster.

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 minimum SNR for the cluster

Definition at line 119 of file SVDClustering.h.

123 {
124 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
125 sensorID.getLadderNumber(),
126 sensorID.getSensorNumber(),
127 m_aDBObjPtr->sideIndex(isU),
128 0 // strip not relevant
129 ).minClusterSNR;
130
131 }

◆ getMinSeedSNR()

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

Return the minimum SNR for the seed.

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 minimum SNR for the seed

Definition at line 54 of file SVDClustering.h.

58 {
59 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
60 sensorID.getLadderNumber(),
61 sensorID.getSensorNumber(),
62 m_aDBObjPtr->sideIndex(isU),
63 0).minSeedSNR;
64
65 }

◆ getUnfoldingCoeff()

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

Return the unfolding coefficient for the strip charge.

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 unfolding coefficient for the cluster

Definition at line 97 of file SVDClustering.h.

101 {
102 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
103 sensorID.getLadderNumber(),
104 sensorID.getSensorNumber(),
105 m_aDBObjPtr->sideIndex(isU),
106 0 //strip not relevant
107 ).UnfoldingCoeff;
108
109 }

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 135 of file SVDClustering.h.

135{ return m_aDBObjPtr->get_uniqueID(); }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 138 of file SVDClustering.h.

138{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDClusterCuts payload.

Definition at line 143 of file SVDClustering.h.

◆ name

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

name of SVDClusterCuts payload

Definition at line 31 of file SVDClustering.h.


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