CMS 3D CMS Logo

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

Definition at line 12 of file RPCCollector.cc.

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

◆ ~RPCCollector()

L1TMuon::RPCCollector::~RPCCollector ( )
inlineoverride

Definition at line 20 of file RPCCollector.h.

20 {}

Member Function Documentation

◆ extractPrimitives()

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, relativeConstraints::chamber, makeMEIFBenchmarkPlots::ev, and MillePedeFileConverter_cfg::out.

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