CMS 3D CMS Logo

RPCCollector.cc
Go to the documentation of this file.
5 
9 
10 using namespace L1TMuon;
11 
13  SubsystemCollector(ps) {
14 }
15 
16 void RPCCollector::
18  const edm::EventSetup& es,
19  std::vector<TriggerPrimitive>& out) const {
21  ev.getByLabel(_src,rpcDigis);
22 
23  auto chamber = rpcDigis->begin();
24  auto chend = rpcDigis->end();
25  for( ; chamber != chend; ++chamber ) {
26  auto digi = (*chamber).second.first;
27  auto dend = (*chamber).second.second;
28  for( ; digi != dend; ++digi ) {
29  out.push_back(TriggerPrimitive((*chamber).first,
30  digi->strip(),
31  (*chamber).first.layer(),
32  digi->bx()));
33  }
34  }
35 }
36 
virtual void extractPrimitives(const edm::Event &, const edm::EventSetup &, std::vector< TriggerPrimitive > &) const
Definition: RPCCollector.cc:17
bool ev
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:413
RPCCollector(const edm::ParameterSet &)
Definition: RPCCollector.cc:12
DEFINE_EDM_PLUGIN(SubsystemCollectorFactory, RPCCollector,"RPCCollector")