82 : _collectionToken(consumes<
T>(iConfig.getParameter<
edm::
InputTag>(
"collectionName"))),
83 _absthr(iConfig.getUntrackedParameter<
int>(
"absoluteThreshold")),
84 _modthr(iConfig.getUntrackedParameter<
int>(
"moduleThreshold")),
85 _useQuality(iConfig.getUntrackedParameter<
bool>(
"useQuality",
false)),
108 _qualityHandle = &iSetup.
getData(_qualityToken);
109 LogDebug(
"SiStripQualityUpdated") <<
"SiStripQuality has changed and it will be updated";
113 iEvent.getByToken(_collectionToken, digis);
116 for (
typename T::const_iterator it = digis->begin(); it != digis->end(); it++) {
117 if (!_useQuality || !_qualityHandle->
IsModuleBad(it->detId())) {
118 if (_modthr < 0 ||
int(it->size()) < _modthr) {
119 ndigitot += it->size();
124 if (ndigitot > _absthr) {
125 LogDebug(
"LargeEventSelected") <<
"event with " << ndigitot <<
" digi/cluster selected";
LargeEvents< edm::DetSetVector< SiStripDigi > > LargeSiStripDigiEvents
bool IsModuleBad(uint32_t detid) const
LargeEvents(const edm::ParameterSet &)
const edm::ESGetToken< SiStripQuality, SiStripQualityRcd > _qualityToken
T getUntrackedParameter(std::string const &, T const &) const
LargeEvents< edmNew::DetSetVector< SiStripCluster > > LargeSiStripClusterEvents
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const edm::EDGetTokenT< T > _collectionToken
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
LargeEvents< edmNew::DetSetVector< SiPixelCluster > > LargeSiPixelClusterEvents