CMS 3D CMS Logo

List of all members | Public Member Functions
L1TMuon::CSCCollector Class Reference

#include <CSCCollector.h>

Inheritance diagram for L1TMuon::CSCCollector:
L1TMuon::SubsystemCollector

Public Member Functions

 CSCCollector (const edm::ParameterSet &)
 
void extractPrimitives (const edm::Event &, const edm::EventSetup &, std::vector< TriggerPrimitive > &) const override
 
 ~CSCCollector () override
 
- Public Member Functions inherited from L1TMuon::SubsystemCollector
 SubsystemCollector (const edm::ParameterSet &)
 
virtual ~SubsystemCollector ()
 

Additional Inherited Members

- Protected Attributes inherited from L1TMuon::SubsystemCollector
edm::InputTag _src
 

Detailed Description

Definition at line 17 of file CSCCollector.h.

Constructor & Destructor Documentation

◆ CSCCollector()

CSCCollector::CSCCollector ( const edm::ParameterSet ps)

Definition at line 11 of file CSCCollector.cc.

11 : SubsystemCollector(ps) {}
SubsystemCollector(const edm::ParameterSet &)

◆ ~CSCCollector()

L1TMuon::CSCCollector::~CSCCollector ( )
inlineoverride

Definition at line 20 of file CSCCollector.h.

20 {}

Member Function Documentation

◆ extractPrimitives()

void CSCCollector::extractPrimitives ( const edm::Event ev,
const edm::EventSetup es,
std::vector< TriggerPrimitive > &  out 
) const
overridevirtual

Implements L1TMuon::SubsystemCollector.

Definition at line 13 of file CSCCollector.cc.

References L1TMuon::SubsystemCollector::_src, relativeConstraints::chamber, makeMEIFBenchmarkPlots::ev, and MillePedeFileConverter_cfg::out.

15  {
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 }
L1TMuon::TriggerPrimitive TriggerPrimitive
Definition: Common.h:31