89 _collection(iConfig.getParameter<edm::InputTag>(
"collectionName")),
90 _absthr(iConfig.getUntrackedParameter<int>(
"absoluteThreshold")),
91 _modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
92 _useQuality(iConfig.getUntrackedParameter<bool>(
"useQuality",
false)),
93 _qualityLabel(iConfig.getUntrackedParameter<std::
string>(
"qualityLabel",
""))
122 if(_qualityWatcher.check(iSetup)) {
124 LogDebug(
"SiStripQualityUpdated") <<
"SiStripQuality has changed and it will be updated";
133 for(
typename T::const_iterator it = digis->begin();it!=digis->end();it++) {
135 if(!_useQuality || !_qualityHandle->IsModuleBad(it->detId()) ) {
136 if(_modthr < 0 ||
int(it->size()) < _modthr ) {
137 ndigitot += it->size();
142 if(ndigitot > _absthr) {
143 LogDebug(
"LargeEventSelected") <<
"event with " << ndigitot <<
" digi/cluster selected";
edm::InputTag _collection
LargeEvents< edm::DetSetVector< SiStripDigi > > LargeSiStripDigiEvents
#define DEFINE_FWK_MODULE(type)
LargeEvents(const edm::ParameterSet &)
LargeEvents< edmNew::DetSetVector< SiStripCluster > > LargeSiStripClusterEvents
edm::ESWatcher< SiStripQualityRcd > _qualityWatcher
edm::ESHandle< SiStripQuality > _qualityHandle
virtual bool filter(edm::Event &, const edm::EventSetup &) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string _qualityLabel
LargeEvents< edmNew::DetSetVector< SiPixelCluster > > LargeSiPixelClusterEvents