11#include <pxd/dbobjects/PXDGainMapPar.h>
12#include <framework/database/DBObjPtr.h>
13#include <vxd/dataobjects/VxdID.h>
61 unsigned short getBinU(
VxdID id,
unsigned int uid,
unsigned int vid)
const;
68 unsigned short getBinV(
VxdID id,
unsigned int vid)
const;
77 unsigned short getBinU(
VxdID id,
unsigned int uid,
unsigned int vid,
unsigned short nBinsU)
const;
85 unsigned short getBinV(
VxdID id,
unsigned int vid,
unsigned short nBinsV)
const;
93 unsigned short getGlobalID(
VxdID id,
unsigned int uid,
unsigned int vid)
const;
The payload class for PXD gain corrections.
Singleton class for managing gain corrections for the PXD.
unsigned short getGlobalID(VxdID id, unsigned int uid, unsigned int vid) const
Get global ID for gain correction on a sensor.
unsigned short getBinV(VxdID id, unsigned int vid) const
Get gain correction bin along sensor v side.
PXDGainCalibrator(const PXDGainCalibrator &)=delete
Singleton class, forbidden copy constructor.
void initialize()
Initialize the PXDGainCalibrator.
float getGainCorrection(VxdID id, unsigned int uid, unsigned int vid) const
Get gain correction.
PXDGainCalibrator & operator=(const PXDGainCalibrator &)=delete
Singleton class, forbidden assignment operator.
PXDGainMapPar m_gains
Map of gain corrections.
unsigned short getBinU(VxdID id, unsigned int uid, unsigned int vid) const
Get gain correction bin along sensor u side.
float getADUToEnergy(VxdID id, unsigned int uid, unsigned int vid) const
Get conversion factor from ADU to energy.
PXDGainCalibrator()
Singleton class, hidden constructor.
const PXDGainMapPar & getGainMapParameters() const
Return current gain correction payload.
std::unique_ptr< DBObjPtr< PXDGainMapPar > > m_gainsFromDB
Masked pixels retrieved from DB.
void setGains()
Set gains from DB.
static PXDGainCalibrator & getInstance()
Main (and only) way to access the PXDGainCalibrator.
Class to uniquely identify a any structure of the PXD and SVD.
Abstract base class for different kinds of events.