test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 &)
 
virtual void extractPrimitives (const edm::Event &, const edm::EventSetup &, std::vector< TriggerPrimitive > &) const
 
 ~CSCCollector ()
 
- 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.

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

Definition at line 20 of file CSCCollector.h.

20 {}

Member Function Documentation

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

Implements L1TMuon::SubsystemCollector.

Definition at line 16 of file CSCCollector.cc.

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

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 }
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:418