11#include <vxd/dataobjects/VxdID.h>
12#include <svd/dbobjects/SVDCalibrationsBase.h>
13#include <svd/dbobjects/SVDCalibrationsScalar.h>
14#include <svd/dbobjects/SVDCoGCalibrationFunction.h>
15#include <framework/database/DBObjPtr.h>
16#include <framework/logging/Logger.h>
40 m_aDBObjPtr.addCallback([
this ](
const std::string&) ->
void {
41 B2DEBUG(20,
"SVD3SampleELSTimeCalibrations: from now on we are using " <<
59 const bool& isU,
const unsigned short& strip,
60 const double& raw_time,
68 strip).calibratedValue(raw_time, bin);
Class for accessing objects in the database.
This class defines the dbobject and the methods to access the SVD calibrations from the local runs pr...
SVD3SampleELSTimeCalibrations()
Constructor, no input argument is required.
SVDCalibrationsBase< SVDCalibrationsScalar< SVDCoGCalibrationFunction > > t_payload
typedef for the SVDCoGCalibrationFunction payload of all SVD sensors
static std::string name
name of the SVD3SampleELSTimeCalibration wrapper
TString getUniqueID()
returns the unique ID of the payload
DBObjPtr< t_payload > m_aDBObjPtr
SVDCoGCalibrationFunction payload.
double getCorrectedTime(const Belle2::VxdID &sensorID, const bool &isU, const unsigned short &strip, const double &raw_time, const int &bin) const
Return the charge (number of electrons/holes) collected on a specific strip, given the number of ADC ...
bool isValid()
returns true if the m_aDBObtPtr is valid in the requested IoV
base class for calibrations classes
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.