 |
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/SVDCoGCalibrationFunction.h>
17 #include <framework/database/DBObjPtr.h>
18 #include <framework/logging/Logger.h>
32 class SVDCoGTimeCalibrations {
34 static std::string
name;
35 typedef SVDCalibrationsBase< SVDCalibrationsScalar< SVDCoGCalibrationFunction > >
41 m_aDBObjPtr.addCallback([
this ](
const std::string&) ->
void {
42 B2INFO(
"SVDCoGTimeCalibrations: from now on we are using " <<
60 const bool& isU,
const unsigned short& strip,
61 const double& raw_time,
69 strip).calibratedValue(raw_time, bin);
89 const bool& isU,
const unsigned short& strip,
90 const double& raw_time,
91 const double& raw_timeErr,
99 strip).calibratedValueError(raw_time, raw_timeErr, bin);
SVDCoGTimeCalibrations()
Constructor, no input argument is required.
static std::string name
name of the SVDCoGCalibrationFunction payload
Class to uniquely identify a any structure of the PXD and SVD.
DBObjPtr< t_payload > m_aDBObjPtr
SVDCoGCalibrationFunction payload.
TString getUniqueID()
returns the unique ID of the payload
baseType getLadderNumber() const
Get the ladder id.
Class for accessing objects in the database.
double getCorrectedTimeError(const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &raw_time, const double &raw_timeErr, const int &bin) const
Return the strip time error, given the raw strip time, and tje raw time error.
SVDCalibrationsBase< SVDCalibrationsScalar< SVDCoGCalibrationFunction > > t_payload
typedef for the SVDCoGCalibrationFunction payload of all SVD sensors
Abstract base class for different kinds of events.
double getCorrectedTime(const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &raw_time, const int &bin) const
Return the strip time, given the raw strip time.
baseType getSensorNumber() const
Get the sensor id.
baseType getLayerNumber() const
Get the layer id.
bool isValid()
returns true if the m_aDBObtPtr is valid in the requested IoV