15#ifndef ALICEO2_CALGAIN_H
16#define ALICEO2_CALGAIN_H
34 void setMPVdEdx(
int iDet,
float mpv) { mMPVdEdx[iDet] = mpv; }
41 return mMPVdEdx[iDet];
43 if (TMath::Abs(mMeanGain + 999.) < 1e-6)
51 float averageGain = 0.;
58 averageGain += mMPVdEdx[iDet];
78 std::array<float, constants::MAXCHAMBER> mMPVdEdx{};
79 mutable float mMeanGain{-999.};
void setMPVdEdx(int iDet, float mpv)
CalGain(const CalGain &)=default
float getAverageGain() const
bool isGoodGain(int iDet) const
float getMPVdEdx(int iDet, bool defaultAvg=true) const
constexpr float MPVDEDXDEFAULT
default Most Probable Value of TRD dEdx
constexpr int MAXCHAMBER
the maximum number of installed chambers
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...