CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CSCCollector.cc
Go to the documentation of this file.
4 
8 
9 using namespace L1TMuon;
10 
12 
14  const edm::EventSetup& es,
15  std::vector<TriggerPrimitive>& out) const {
17  ev.getByLabel(_src, cscDigis);
18 
19  auto chamber = cscDigis->begin();
20  auto chend = cscDigis->end();
21  for (; chamber != chend; ++chamber) {
22  auto digi = (*chamber).second.first;
23  auto dend = (*chamber).second.second;
24  for (; digi != dend; ++digi) {
25  out.push_back(TriggerPrimitive((*chamber).first, *digi));
26  }
27  }
28 }
29 
CSCCollector(const edm::ParameterSet &)
Definition: CSCCollector.cc:11
bool ev
L1TMuon::TriggerPrimitive TriggerPrimitive
Definition: Common.h:31
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:500
void extractPrimitives(const edm::Event &, const edm::EventSetup &, std::vector< TriggerPrimitive > &) const override
Definition: CSCCollector.cc:13
#define DEFINE_EDM_PLUGIN(factory, type, name)