13 for (
int range = 0; range < 4; range++) {
14 for (
int capId = 0; capId < 4; capId++) {
22 int range = (fAdc >> 6) & 0x3;
32 for (
int range = 0; range < 4; range++) {
33 double qieCharge = (fCharge -
mOffset[fCapId][range]) *
mSlope[fCapId][range];
34 double qieChargeMax = fShape.
linearization(32 * range + 31) + 0.5 * fShape.
binSize(32 * range + 31);
35 if (range == 3 && qieCharge > qieChargeMax)
37 if (qieCharge > qieChargeMax)
39 for (
int bin = 32 * range;
bin < 32 * (range + 1);
bin++) {
double linearization(int fAdc) const
CastorChannelCoder(const float fOffset[16], const float fSlope[16])
int adc(const reco::castor::QieShape &fShape, double fCharge, int fCapId) const
fC + capid[0..3] -> ADC conversion
double charge(const reco::castor::QieShape &fShape, int fAdc, int fCapId) const
ADC[0..127]+capid[0..3]->fC conversion.
double binSize(int fAdc) const
bin
set the eta bin as selection string.
int index(int fCapId, int Range)