12 alreadyUsedEvent(
false)
14 if (0)
cout <<
"Constructing SimpleNoiseCalculator " << endl;
20 alreadyUsedEvent(
false)
22 if (0)
cout <<
"Constructing SimpleNoiseCalculator " << endl;
44 if (0)
cout <<
"Destructing SimpleNoiseCalculator " << endl;
63 edm::LogError(
"SimpleNoiseCalculator:updateNoise") <<
" You did not initialize the Noise correctly prior to noise calibration.";
81 for (i = 0; i < in.size(); i++) {
94 for (i = 0; i < in.size(); i++) {
101 double rmsVal = (sqAvVal - avVal*avVal > 0.0)
102 ?
sqrt(corr_fac * (sqAvVal - avVal*avVal)) : 0.0;
106 theNoise.push_back(static_cast<float>(rmsVal));
108 if (0)
cout <<
" SimpleNoiseCalculator::updateNoise "
114 << (sqAvVal - avVal*avVal) <<
" "
std::vector< float > PedestalType
ApvAnalysis::PedestalType theNoise
std::vector< double > theNoiseSum
std::vector< double > theNoiseSqSum
virtual ~SimpleNoiseCalculator()
ApvAnalysis::PedestalType theCMPSubtractedSignal
void updateNoise(ApvAnalysis::PedestalType &in)
int eventsRequiredToCalibrate_
std::vector< unsigned short > theEventPerStrip
bool isCalibrating() const