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

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

References extractPrimitives().

12  :
13  SubsystemCollector(ps) {
14 }
SubsystemCollector(const edm::ParameterSet &)
L1TMuon::RPCCollector::~RPCCollector ( )
inline

Definition at line 20 of file RPCCollector.h.

References extractPrimitives().

20 {}

Member Function Documentation

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

Implements L1TMuon::SubsystemCollector.

Definition at line 17 of file RPCCollector.cc.

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

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

19  {
21  ev.getByLabel(_src,rpcDigis);
22 
23  auto chamber = rpcDigis->begin();
24  auto chend = rpcDigis->end();
25  for( ; chamber != chend; ++chamber ) {
26  auto digi = (*chamber).second.first;
27  auto dend = (*chamber).second.second;
28  for( ; digi != dend; ++digi ) {
29  out.push_back(TriggerPrimitive((*chamber).first,
30  digi->strip(),
31  (*chamber).first.layer(),
32  digi->bx()));
33  }
34  }
35 }
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:413