12 alreadyUsedEvent(
false)
14 if (0)
cout <<
"Constructing TT6NoiseCalculator " << endl;
19 int evnt_iter,
float sig_cut) :
21 alreadyUsedEvent(
false)
23 if (0)
cout <<
"Constructing TT6NoiseCalculator " << endl;
44 if (0)
cout <<
"Destructing TT6NoiseCalculator " << endl;
64 edm::LogError(
"TT6NoiseCalculator:updateNoise") <<
" You did not initialize the Noise correctly prior to noise calibration.";
83 for (i = 0; i < in.size(); i++) {
98 for (i = 0; i < in.size(); i++) {
102 double rmsVal = (sqAvVal - avVal*avVal > 0.0) ?
sqrt(corr_fac * (sqAvVal - avVal*avVal)) : 0.0;
106 theNoise.push_back(static_cast<float>(rmsVal));
108 if (0)
cout <<
" TT6NoiseCalculator::updateNoise "
114 << (sqAvVal - avVal*avVal) <<
" "
std::vector< float > PedestalType
std::vector< double > theNoiseSum
std::vector< unsigned short > theEventPerStrip
int eventsRequiredToUpdate_
void updateNoise(ApvAnalysis::PedestalType &in)
std::vector< double > theNoiseSqSum
virtual ~TT6NoiseCalculator()
bool isCalibrating() const
volatile std::atomic< bool > shutdown_flag false
ApvAnalysis::PedestalType theNoise
ApvAnalysis::PedestalType theCMPSubtractedSignal
int eventsRequiredToCalibrate_