11#include <vxd/dataobjects/VxdID.h>
12#include <svd/dbobjects/SVDCalibrationsBase.h>
13#include <svd/dbobjects/SVDCalibrationsScalar.h>
14#include <svd/dbobjects/SVDHitTimeSelectionFunction.h>
15#include <framework/database/DBObjPtr.h>
16#include <framework/logging/Logger.h>
39 m_aDBObjPtr.addCallback([
this ](
const std::string&) ->
void {
40 B2DEBUG(20,
"SVDHitTimeSelection: from now on we are using " <<
61 const double& svdTime,
const double& svdTimeError = 0,
62 const double& t0 = 0,
const double& t0Error = 0
70 ).isInTime(svdTime, svdTimeError, t0, t0Error);
85 const double& uTime,
const double& vTime = 0
93 ).areClustersInTime(uTime, vTime);
Class for accessing objects in the database.
base class for calibrations classes
This class defines the dbobject and the methods to access the calibration of the cluster reconstructi...
SVDCalibrationsBase< SVDCalibrationsScalar< SVDHitTimeSelectionFunction > > t_payload
typedef for the of SVDHitTimeSelectionFunction payload of all SVD sensors
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.
SVDHitTimeSelection()
Constructor, no input argument is required.
static std::string name
name of SVDHitTimeSelectionFunction payload
float getMinClusterTime(const Belle2::VxdID &sensorID, const bool &isU) const
Return the min value of the cluster time to use it for reconstruction.
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...
TString getUniqueID()
returns the unique ID of the payload
DBObjPtr< t_payload > m_aDBObjPtr
SVDHitTimeSelectionFunction paylaod.
bool isValid()
returns true if the m_aDBObtPtr is valid in the requested IoV
Class to uniquely identify a any structure of the PXD and SVD.
baseType getSensorNumber() const
Get the sensor id.
baseType getLadderNumber() const
Get the ladder id.
baseType getLayerNumber() const
Get the layer id.
Abstract base class for different kinds of events.