10 theTkCommonModeCalculator =
nullptr;
11 theTkPedestalCalculator =
nullptr;
12 theTkNoiseCalculator =
nullptr;
13 theTkApvMask =
nullptr;
14 nEventsForNoiseCalibration_ = 0;
15 eventsRequiredToUpdate_ = nEvForUpdate;
18 theTkPedestalCalculator->newEvent();
19 theTkNoiseCalculator->newEvent();
20 theTkCommonModeCalculator->newEvent();
24 theTkPedestalCalculator->updatePedestal(in);
27 if (theTkPedestalCalculator->status()->isUpdating()) {
28 nEventsForNoiseCalibration_++;
30 if (theTkNoiseCalculator->noise().empty()) {
31 noise = theTkPedestalCalculator->rawNoise();
32 theTkNoiseCalculator->setStripNoise(noise);
33 theTkApvMask->calculateMask(noise);
41 for (; it != in.
data.end(); it++) {
42 tmp.push_back((*it).adc() - pedestal[
i]);
45 PedestalType tmp2 = theTkCommonModeCalculator->doIt(tmp);
47 theTkNoiseCalculator->updateNoise(tmp2);
49 if (nEventsForNoiseCalibration_ % eventsRequiredToUpdate_ == 1 && nEventsForNoiseCalibration_ > 1) {
50 noise = theTkNoiseCalculator->noise();
51 theTkApvMask->calculateMask(noise);
std::vector< float > PedestalType
void updateCalibration(edm::DetSet< SiStripRawDigi > &in)
collection_type::const_iterator const_iterator