CMS 3D CMS Logo

List of all members | Public Member Functions
L1TwinMux::RPCCollector Class Reference

#include <RPCCollector.h>

Public Member Functions

virtual void extractPrimitives (edm::Handle< RPCDigiCollection > rpcDigis, std::vector< L1TMuon::TriggerPrimitive > &) const
 
 RPCCollector ()
 
 ~RPCCollector ()
 

Detailed Description

Definition at line 27 of file RPCCollector.h.

Constructor & Destructor Documentation

RPCCollector::RPCCollector ( )

Definition at line 12 of file RPCCollector.cc.

References extractPrimitives().

13 {
14 }
L1TwinMux::RPCCollector::~RPCCollector ( )
inline

Definition at line 30 of file RPCCollector.h.

30 {}

Member Function Documentation

void RPCCollector::extractPrimitives ( edm::Handle< RPCDigiCollection rpcDigis,
std::vector< L1TMuon::TriggerPrimitive > &  out 
) const
virtual

Definition at line 17 of file RPCCollector.cc.

References relativeConstraints::chamber.

Referenced by RPCCollector().

18  {
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(L1TMuon::TriggerPrimitive((*chamber).first,
27  digi->strip(),
28  (*chamber).first.layer(),
29  digi->bx()));
30  }
31  }
32 }