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) {}

◆ ~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.

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 }

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

edm::Handle< CSCCorrelatedLCTDigiCollection >
TriggerPrimitive
L1TMuon::TriggerPrimitive TriggerPrimitive
Definition: Common.h:31
L1TMuon::SubsystemCollector::_src
edm::InputTag _src
Definition: SubsystemCollector.h:31
L1TMuon::SubsystemCollector::SubsystemCollector
SubsystemCollector(const edm::ParameterSet &)
Definition: SubsystemCollector.cc:6
ev
bool ev
Definition: Hydjet2Hadronizer.cc:97
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31