CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
L1TMuon::RPCCollector Class Reference

#include <RPCCollector.h>

Inheritance diagram for L1TMuon::RPCCollector:
L1TMuon::SubsystemCollector

Public Member Functions

void extractPrimitives (const edm::Event &, const edm::EventSetup &, std::vector< TriggerPrimitive > &) const override
 
 RPCCollector (const edm::ParameterSet &)
 
 ~RPCCollector () 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 RPCCollector.h.

Constructor & Destructor Documentation

RPCCollector::RPCCollector ( const edm::ParameterSet ps)

Definition at line 12 of file RPCCollector.cc.

12 : SubsystemCollector(ps) {}
SubsystemCollector(const edm::ParameterSet &)
L1TMuon::RPCCollector::~RPCCollector ( )
inlineoverride

Definition at line 20 of file RPCCollector.h.

20 {}

Member Function Documentation

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

Implements L1TMuon::SubsystemCollector.

Definition at line 14 of file RPCCollector.cc.

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

16  {
18  ev.getByLabel(_src, rpcDigis);
19 
20  auto chamber = rpcDigis->begin();
21  auto chend = rpcDigis->end();
22  for (; chamber != chend; ++chamber) {
23  auto digi = (*chamber).second.first;
24  auto dend = (*chamber).second.second;
25  for (; digi != dend; ++digi) {
26  out.push_back(TriggerPrimitive((*chamber).first, *digi));
27  }
28  }
29 }
L1TMuon::TriggerPrimitive TriggerPrimitive
Definition: Common.h:31
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:500