19#ifndef PHOS_CALIBPARAMS_H
20#define PHOS_CALIBPARAMS_H
53 float getGain(
short cellID)
const {
return mGainCalib.at(cellID - OFFSET); }
58 void setGain(
short cellID,
float c) { mGainCalib.at(cellID - OFFSET) =
c; }
69 float getHGLGRatio(
short cellID)
const {
return mHGLGRatio.at(cellID - OFFSET); }
74 void setHGLGRatio(
short cellID,
float r) { mHGLGRatio.at(cellID - OFFSET) =
r; }
85 float getHGTimeCalib(
short cellID)
const {
return mHGTimeCalib.at(cellID - OFFSET); }
90 void setHGTimeCalib(
short cellID,
float t) { mHGTimeCalib.at(cellID - OFFSET) = t; }
101 float getLGTimeCalib(
short cellID)
const {
return mLGTimeCalib.at(cellID - OFFSET); }
106 void setLGTimeCalib(
short cellID,
float t) { mLGTimeCalib.at(cellID - OFFSET) = t; }
115 static constexpr short NCHANNELS = 12544;
116 static constexpr short OFFSET = 1793;
117 std::array<float, NCHANNELS> mGainCalib;
118 std::array<float, NCHANNELS> mHGLGRatio;
119 std::array<float, NCHANNELS> mHGTimeCalib;
120 std::array<float, NCHANNELS> mLGTimeCalib;
Class for time synchronization of RawReader instances.
float getHGLGRatio(short cellID) const
Get High Gain to Low Gain ratio calibration coefficients.
void setHGLGRatio(short cellID, float r)
Set High Gain to Low Gain ratio.
CalibParams()=default
Constructor.
float getGain(short cellID) const
Get High Gain energy calibration coefficients.
float getLGTimeCalib(short cellID) const
Get Low Gain time calibration coefficient.
CalibParams(CalibParams &a)=default
Constructor for tests.
void setHGTimeCalib(short cellID, float t)
Set High Gain time calibration coefficient.
float getHGTimeCalib(short cellID) const
Get High Gain time calibration coefficients.
CalibParams & operator=(const CalibParams &other)=default
void setGain(short cellID, float c)
Set High Gain energy calibration coefficient.
void setLGTimeCalib(short cellID, float t)
Set time calibration coefficient.
~CalibParams()=default
Destructor.
GLboolean GLboolean GLboolean GLboolean a
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
FIXME: do not use data model tables.
VectorOfTObjectPtrs other