76 : _digicollectionToken(consumes<
T>(iConfig.getParameter<
edm::
InputTag>(
"collectionName"))),
77 _wantedmod(iConfig.getUntrackedParameter<
std::
vector<unsigned
int> >(
"selectedModules"))
84 edm::LogInfo(
"SelectedModules") <<
"Selected module list";
106 iEvent.getByToken(_digicollectionToken, digis);
108 for (
typename T::const_iterator it = digis->begin(); it != digis->end(); it++) {
109 for (std::vector<unsigned int>::const_iterator
mod = _wantedmod.begin();
110 mod != _wantedmod.end() && it->detId() >= *
mod;
112 if (*
mod == it->detId()) {
113 edm::LogInfo(
"ModuleFound") <<
" module " << *
mod <<
" found with " << it->size() <<
" digis/clusters";
Log< level::Info, true > LogVerbatim
SiStripDetWithSomething(const edm::ParameterSet &)
~SiStripDetWithSomething() override
SiStripDetWithSomething< edmNew::DetSetVector< SiStripCluster > > SiStripDetWithCluster
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< T > _digicollectionToken
Log< level::Info, false > LogInfo
SiStripDetWithSomething< edm::DetSetVector< SiStripDigi > > SiStripDetWithDigi
std::vector< unsigned int > _wantedmod
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
T mod(const T &a, const T &b)