62 virtual void endJob()
override ;
89 _collectionToken(consumes<
T>(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";
virtual void beginJob() override
LargeEvents< edm::DetSetVector< SiStripDigi > > LargeSiStripDigiEvents
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void endJob() override
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
std::string _qualityLabel
edm::EDGetTokenT< T > _collectionToken
volatile std::atomic< bool > shutdown_flag false
LargeEvents< edmNew::DetSetVector< SiPixelCluster > > LargeSiPixelClusterEvents