Belle II Software development
SVDHitTimeSelection Class Reference

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

#include <SVDHitTimeSelection.h>

Public Types

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

Public Member Functions

 SVDHitTimeSelection ()
 Constructor, no input argument is required.
 
bool isClusterInTime (const Belle2::VxdID &sensorID, const bool &isU, const double &svdTime, const double &svdTimeError=0, const double &t0=0, const double &t0Error=0) const
 Return whether the cluster is estimated to be in time with the event or off-time.
 
bool areClusterTimesCompatible (const Belle2::VxdID &sensorID, const double &uTime, const double &vTime=0) const
 Return whether the cluster is estimated to be in time with the event or off-time.
 
int getTimeSelectionFunction (const Belle2::VxdID &sensorID, const bool &isU) const
 Return the version of the function used to determine whether the cluster time is acceptable at the SP creation.
 
float getMinClusterTime (const Belle2::VxdID &sensorID, const bool &isU) const
 Return the min value of the cluster time to use it for reconstruction.
 
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("SVDHitTimeSelection")
 name of SVDHitTimeSelectionFunction payload
 

Private Attributes

DBObjPtr< t_payloadm_aDBObjPtr
 SVDHitTimeSelectionFunction paylaod.
 

Detailed Description

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

Definition at line 29 of file SVDHitTimeSelection.h.

Member Typedef Documentation

◆ t_payload

typedef for the of SVDHitTimeSelectionFunction payload of all SVD sensors

Definition at line 33 of file SVDHitTimeSelection.h.

Constructor & Destructor Documentation

◆ SVDHitTimeSelection()

SVDHitTimeSelection ( )
inline

Constructor, no input argument is required.

Definition at line 36 of file SVDHitTimeSelection.h.

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

Member Function Documentation

◆ areClusterTimesCompatible()

bool areClusterTimesCompatible ( const Belle2::VxdID sensorID,
const double &  uTime,
const double &  vTime = 0 
) const
inline

Return whether the cluster is estimated to be in time with the event or off-time.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
uTimeU-Side cluster time
vTimeV-Side cluster time

Output: bool true if the U and V cluster times are compatible

Definition at line 83 of file SVDHitTimeSelection.h.

87 {
88 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
89 sensorID.getLadderNumber(),
90 sensorID.getSensorNumber(),
91 m_aDBObjPtr->sideIndex(true), // side not relevant
92 0 // strip not relevant
93 ).areClustersInTime(uTime, vTime);
94 }
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

◆ getMinClusterTime()

float getMinClusterTime ( const Belle2::VxdID sensorID,
const bool &  isU 
) const
inline

Return the min value of the cluster time to use it for reconstruction.

this function is used in the calibration monitoring

Input:

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

Output:

Definition at line 129 of file SVDHitTimeSelection.h.

133 {
134 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
135 sensorID.getLadderNumber(),
136 sensorID.getSensorNumber(),
137 m_aDBObjPtr->sideIndex(isU),
138 0 // strip not relevant
139 ).getMinTime();
140
141 }

◆ getTimeSelectionFunction()

int getTimeSelectionFunction ( const Belle2::VxdID sensorID,
const bool &  isU 
) const
inline

Return the version of the function used to determine whether the cluster time is acceptable at the SP creation.

Input:

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

Output:

Definition at line 106 of file SVDHitTimeSelection.h.

110 {
111 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
112 sensorID.getLadderNumber(),
113 sensorID.getSensorNumber(),
114 m_aDBObjPtr->sideIndex(isU),
115 0 // strip not relevant
116 ).getFunctionID();
117
118 }

◆ getUniqueID()

TString getUniqueID ( )
inline

returns the unique ID of the payload

Definition at line 145 of file SVDHitTimeSelection.h.

145{ return m_aDBObjPtr->get_uniqueID(); }

◆ isClusterInTime()

bool isClusterInTime ( const Belle2::VxdID sensorID,
const bool &  isU,
const double &  svdTime,
const double &  svdTimeError = 0,
const double &  t0 = 0,
const double &  t0Error = 0 
) const
inline

Return whether the cluster is estimated to be in time with the event or off-time.

Input:

Parameters
sensorIDidentity of the sensor for which the calibration is required
isUsensor side, true for p side, false for n side
svdTimecluster time
svdTimeErrorcluster time error
t0event t0
t0Errorevent t0 error

Output: bool true if the svd hit time is compatible with t0

Definition at line 58 of file SVDHitTimeSelection.h.

64 {
65 return m_aDBObjPtr->getReference(sensorID.getLayerNumber(),
66 sensorID.getLadderNumber(),
67 sensorID.getSensorNumber(),
68 m_aDBObjPtr->sideIndex(isU),
69 0 //strip not relevant
70 ).isInTime(svdTime, svdTimeError, t0, t0Error);
71
72 }

◆ isValid()

bool isValid ( )
inline

returns true if the m_aDBObtPtr is valid in the requested IoV

Definition at line 148 of file SVDHitTimeSelection.h.

148{ return m_aDBObjPtr.isValid(); }

Member Data Documentation

◆ m_aDBObjPtr

DBObjPtr< t_payload > m_aDBObjPtr
private

SVDHitTimeSelectionFunction paylaod.

Definition at line 153 of file SVDHitTimeSelection.h.

◆ name

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

name of SVDHitTimeSelectionFunction payload

Definition at line 31 of file SVDHitTimeSelection.h.


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