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 ( const edm::ParameterSet ps)

Definition at line 11 of file CSCCollector.cc.

References extractPrimitives().

11  :
12  SubsystemCollector(ps) {
13 }
SubsystemCollector(const edm::ParameterSet &)
L1TMuon::CSCCollector::~CSCCollector ( )
inlineoverride

Definition at line 20 of file CSCCollector.h.

References extractPrimitives().

20 {}

Member Function Documentation

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

Implements L1TMuon::SubsystemCollector.

Definition at line 16 of file CSCCollector.cc.

References L1TMuon::SubsystemCollector::_src, relativeConstraints::chamber, DEFINE_EDM_PLUGIN, and edm::Event::getByLabel().

Referenced by CSCCollector(), and ~CSCCollector().

18  {
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 }
L1TMuon::TriggerPrimitive TriggerPrimitive
Definition: Common.h:29
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:475