CMS 3D CMS Logo

CSCCollector.cc
Go to the documentation of this file.
4 
8 
9 using namespace L1TMuon;
10 
12  SubsystemCollector(ps) {
13 }
14 
15 void CSCCollector::
17  const edm::EventSetup& es,
18  std::vector<TriggerPrimitive>& out) const {
20  ev.getByLabel(_src,cscDigis);
21 
22  auto chamber = cscDigis->begin();
23  auto chend = cscDigis->end();
24  for( ; chamber != chend; ++chamber ) {
25  auto digi = (*chamber).second.first;
26  auto dend = (*chamber).second.second;
27  for( ; digi != dend; ++digi ) {
28  out.push_back(TriggerPrimitive((*chamber).first,*digi));
29  }
30  }
31 }
32 
CSCCollector(const edm::ParameterSet &)
Definition: CSCCollector.cc:11
bool ev
L1TMuon::TriggerPrimitive TriggerPrimitive
Definition: Common.h:28
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:464
virtual void extractPrimitives(const edm::Event &, const edm::EventSetup &, std::vector< TriggerPrimitive > &) const
Definition: CSCCollector.cc:16
#define DEFINE_EDM_PLUGIN(factory, type, name)