35 int detoffset = det * 128;
37 return detoffset + mcmoffset;
42 return 19 - (
col % 18);
57 float GainCorrectionFactor = 0.0;
59 if (
mGainTable[arrayoffset].mFGFN[channel] < 0) {
60 GainCorrectionFactor = -1.0;
61 }
else if (
mGainTable[arrayoffset].mFGFN[channel] > 511) {
64 GainCorrectionFactor = (
mGainTable[arrayoffset].mFGFN[channel] / 2048.) + 0.875;
67 float ADCCorrection = (1. / (1. + ((float)
mGainTable[arrayoffset].mAdcdac / 31.) * 0.4 / 1.05));
68 GainCorrectionFactor = ADCCorrection * (((
mGainTable[arrayoffset].mFGFN[channel]) / 2048.) + 0.875);
70 return GainCorrectionFactor;
104 return mGainTable[arrayoffset].mFGAN[channel];
116 return mGainTable[arrayoffset].mFGFN[channel];
150 mGainTable[arrayoffset].mFGAN[channel] = gain;
162 mGainTable[arrayoffset].mFGFN[channel] = gain;
void setAdcdacrm(int det, int rob, int mcm, short gain)
short getAdcdac(int det, int row, int col) const
short getFGFN(int det, int row, int col) const
void setFGFN(int det, int row, int col, short gain)
int getChannel(int col) const
float getMCMGain(int det, int row, int col) const
void setFGFNrm(int det, int rob, int mcm, int channel, short gain)
std::array< MCMGain, 540 *128 > mGainTable
void setFGANrm(int det, int rob, int mcm, int channel, short gain)
void setMCMGainrm(int det, int rob, int mcm, float gain)
int getArrayOffset(int det, int row, int col) const
void setFGAN(int det, int row, int col, short gain)
float getMCMGainrm(int det, int rob, int mcm) const
int getArrayOffsetrm(int det, int row, int col) const
void setMCMGain(int det, int row, int col, float gain)
short getFGFNrm(int det, int rob, int mcm, int channel) const
void setAdcdac(int det, int row, int col, short gain)
short getAdcdacrm(int det, int rob, int mcm) const
short getFGANrm(int det, int rob, int mcm, int channel) const
short getFGAN(int det, int row, int col) const
float getGainCorrectionFactor(int det, int row, int col) const
static int getROBfromPad(int irow, int icol)
static FeeParam * instance()
static int getMCMfromPad(int irow, int icol)
constexpr int NMCMROB
the number of MCMs per ROB
Defining DataPointCompositeObject explicitly as copiable.