87 : _collectionToken(consumes<
T>(iConfig.getParameter<
edm::
InputTag>(
"collectionName"))),
88 _absthr(iConfig.getUntrackedParameter<
int>(
"absoluteThreshold")),
89 _modthr(iConfig.getUntrackedParameter<
int>(
"moduleThreshold")),
90 _useQuality(iConfig.getUntrackedParameter<
bool>(
"useQuality",
false)),
91 _qualityLabel(iConfig.getUntrackedParameter<
std::
string>(
"qualityLabel",
"")) {
111 if (_qualityWatcher.check(iSetup)) {
113 LogDebug(
"SiStripQualityUpdated") <<
"SiStripQuality has changed and it will be updated";
118 iEvent.getByToken(_collectionToken, digis);
121 for (
typename T::const_iterator it = digis->begin(); it != digis->end(); it++) {
122 if (!_useQuality || !_qualityHandle->IsModuleBad(it->detId())) {
123 if (_modthr < 0 ||
int(it->size()) < _modthr) {
124 ndigitot += it->size();
129 if (ndigitot > _absthr) {
130 LogDebug(
"LargeEventSelected") <<
"event with " << ndigitot <<
" digi/cluster selected";