Belle II Software  release-08-01-10
SVDHitTimeSelection Class Reference

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

#include <SVDHitTimeSelection.h>

Collaboration diagram for SVDHitTimeSelection:

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. More...
 
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. More...
 
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. More...
 
float getMinClusterTime (const Belle2::VxdID &sensorID, const bool &isU) const
 Return the min value of the cluster time to use it for reconstruction. More...
 
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 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 84 of file SVDHitTimeSelection.h.

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

Output:

Definition at line 132 of file SVDHitTimeSelection.h.

◆ 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
stripNOT USED

Output:

Definition at line 108 of file SVDHitTimeSelection.h.

◆ 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
stripNOT USED
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 59 of file SVDHitTimeSelection.h.


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