56 virtual void endJob()
override ;
78 _digicollectionToken(consumes<
T>(iConfig.getParameter<edm::InputTag>(
"collectionName"))),
79 _wantedmod(iConfig.getUntrackedParameter<std::vector<unsigned int> >(
"selectedModules"))
86 edm::LogInfo(
"SelectedModules") <<
"Selected module list";
116 iEvent.
getByToken(_digicollectionToken,digis);
118 for(
typename T::const_iterator it = digis->begin();it!=digis->end();it++) {
120 for(std::vector<unsigned int>::const_iterator
mod=_wantedmod.begin();
121 mod!=_wantedmod.end()&&it->detId()>=*
mod;
123 if(*
mod == it->detId()) {
125 << it->size() <<
" digis/clusters";
virtual void endJob() override
SiStripDetWithSomething(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~SiStripDetWithSomething()
virtual bool filter(edm::Event &, const edm::EventSetup &) override
SiStripDetWithSomething< edmNew::DetSetVector< SiStripCluster > > SiStripDetWithCluster
edm::EDGetTokenT< T > _digicollectionToken
SiStripDetWithSomething< edm::DetSetVector< SiStripDigi > > SiStripDetWithDigi
std::vector< unsigned int > _wantedmod
virtual void beginJob() override
T mod(const T &a, const T &b)