12 alreadyUsedEvent(
false)
14 if (
false)
cout <<
"Constructing SimpleNoiseCalculator " << endl;
22 if (
false)
cout <<
"Constructing SimpleNoiseCalculator " << endl;
44 if (
false)
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 (
false)
cout <<
" SimpleNoiseCalculator::updateNoise " 114 << (sqAvVal - avVal*avVal) <<
" " std::vector< float > PedestalType
void updateNoise(ApvAnalysis::PedestalType &in) override
ApvAnalysis::PedestalType theNoise
std::vector< double > theNoiseSum
std::vector< double > theNoiseSqSum
ApvAnalysis::PedestalType theCMPSubtractedSignal
int eventsRequiredToCalibrate_
~SimpleNoiseCalculator() override
std::vector< unsigned short > theEventPerStrip
bool isCalibrating() const
void updateStatus() override