8 #include <FairLogger.h>
84 , fChannelNrX(iChannelNrX)
85 , fChannelNrY(iChannelNrY)
88 , fPixelSizeX(pixelSizeX)
89 , fPixelSizeY(pixelSizeY)
90 , fDetectorId(DetectorId(iStation))
97 if (!(iStation >= 0 && iStation <= 600)) {
98 LOG(fatal) <<
"Illegal station number " << iStation;
120 if (
fCharge < adcOffset) {
return 0; };
126 stepSize = adcDynamic / TMath::Power(2, adcBits);
127 adcCharge = int((
fCharge - adcOffset) / stepSize);
130 if (adcCharge >
int(TMath::Power(2, adcBits) - 1)) {
131 adcCharge = (int) TMath::Power(2, adcBits) - 1;
134 if (gDebug > 0) { LOG(debug) <<
"CbmMvdDigi::GetAdcCharge() " << adcCharge; }