 |
Belle II Software
release-05-02-19
|
13 #include <vxd/dataobjects/VxdID.h>
14 #include <svd/dbobjects/SVDCalibrationsBase.h>
15 #include <svd/dbobjects/SVDCalibrationsScalar.h>
16 #include <svd/dbobjects/SVDClusterCuts.h>
17 #include <svd/dbobjects/SVDHitTimeSelectionFunction.h>
18 #include <framework/database/DBObjPtr.h>
19 #include <framework/logging/Logger.h>
32 class SVDClusterCalibrations {
34 static std::string
name;
36 typedef SVDCalibrationsBase< SVDCalibrationsScalar<SVDClusterCuts> >
38 typedef SVDCalibrationsBase< SVDCalibrationsScalar<SVDHitTimeSelectionFunction> >
46 m_aDBObjPtr.addCallback([
this ](
const std::string&) ->
void {
47 B2INFO(
"SVDClusterCuts: from now on we are using " <<
51 B2INFO(
"SVDHitTimeSelectionFunction: from now on we are using " <<
69 const bool& isU,
const int& size,
70 const double& raw_error
77 0).getCorrectedValue(raw_error, size);
170 const double& svdTime,
const double& svdTimeError = 0,
171 const double& t0 = 0,
const double& t0Error = 0
179 ).isInTime(svdTime, svdTimeError, t0, t0Error);
195 const double& uTime,
const double& vTime = 0
203 ).areClustersInTime(uTime, vTime);
Class to uniquely identify a any structure of the PXD and SVD.
static std::string time_name
name of SVDHitTimeSelectionFunction payload
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.
DBObjPtr< t_payload > m_aDBObjPtr
SVDClusterCuts payload.
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...
double getMinSeedSNR(const Belle2::VxdID &sensorID, const bool &isU) const
Return the minimum SNR for the seed.
double getMinClusterSNR(const Belle2::VxdID &sensorID, const bool &isU) const
Return the minimum SNR for the cluster.
baseType getLadderNumber() const
Get the ladder id.
TString getUniqueID()
returns the unique ID of the payload
float getMinClusterTime(const Belle2::VxdID &sensorID, const bool &isU) const
Return the min value of the cluster time to use it for reconstruction.
Class for accessing objects in the database.
SVDCalibrationsBase< SVDCalibrationsScalar< SVDClusterCuts > > t_payload
typedef for the of SVDClusterCuts payload of all SVD sensors
Abstract base class for different kinds of events.
bool isValid()
returns true if the m_aDBObtPtr is valid in the requested IoV
SVDClusterCalibrations()
Constructor, no input argument is required.
double getMinAdjSNR(const Belle2::VxdID &sensorID, const bool &isU) const
Return the minimum SNR for the adjacent.
baseType getSensorNumber() const
Get the sensor id.
baseType getLayerNumber() const
Get the layer id.
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.
DBObjPtr< t_time_payload > m_time_aDBObjPtr
SVDHitTimeSelectionFunction paylaod.
SVDCalibrationsBase< SVDCalibrationsScalar< SVDHitTimeSelectionFunction > > t_time_payload
typedef for the of SVDHitTimeSelectionFunction payload of all SVD sensors
static std::string name
name of SVDClusterCuts payload
double getCorrectedClusterPositionError(const Belle2::VxdID &sensorID, const bool &isU, const int &size, const double &raw_error) const
Return the corrected cluster position error.