CMS 3D CMS Logo

List of all members | Public Member Functions
EMTFSubsystemCollector Class Reference

#include <EMTFSubsystemCollector.h>

Public Member Functions

template<>
void extractPrimitives (CSCTag tag, const edm::Event &iEvent, const edm::EDGetToken &token, TriggerPrimitiveCollection &out)
 
template<typename T >
void extractPrimitives (T tag, const edm::Event &iEvent, const edm::EDGetToken &token, TriggerPrimitiveCollection &out)
 
template<>
void extractPrimitives (RPCTag tag, const edm::Event &iEvent, const edm::EDGetToken &token, TriggerPrimitiveCollection &out)
 
template<>
void extractPrimitives (GEMTag tag, const edm::Event &iEvent, const edm::EDGetToken &token, TriggerPrimitiveCollection &out)
 

Detailed Description

Definition at line 15 of file EMTFSubsystemCollector.h.

Member Function Documentation

template<>
void EMTFSubsystemCollector::extractPrimitives ( CSCTag  tag,
const edm::Event iEvent,
const edm::EDGetToken token,
TriggerPrimitiveCollection out 
)

Definition at line 9 of file EMTFSubsystemCollector.cc.

References relativeConstraints::chamber, and edm::Event::getByToken().

14  {
16  iEvent.getByToken(token, cscDigis);
17 
18  auto chamber = cscDigis->begin();
19  auto chend = cscDigis->end();
20  for( ; chamber != chend; ++chamber ) {
21  auto digi = (*chamber).second.first;
22  auto dend = (*chamber).second.second;
23  for( ; digi != dend; ++digi ) {
24  // emplace_back does the same thing as push_back: appends to the end of the vector
25  out.emplace_back((*chamber).first,*digi);
26  }
27  }
28  return;
29 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:508
template<typename T >
void EMTFSubsystemCollector::extractPrimitives ( T  tag,
const edm::Event iEvent,
const edm::EDGetToken token,
TriggerPrimitiveCollection out 
)

Referenced by TrackFinder::process().

template<>
void EMTFSubsystemCollector::extractPrimitives ( RPCTag  tag,
const edm::Event iEvent,
const edm::EDGetToken token,
TriggerPrimitiveCollection out 
)

Definition at line 33 of file EMTFSubsystemCollector.cc.

References relativeConstraints::chamber, and edm::Event::getByToken().

38  {
40  iEvent.getByToken(token, rpcDigis);
41 
42  auto chamber = rpcDigis->begin();
43  auto chend = rpcDigis->end();
44  for( ; chamber != chend; ++chamber ) {
45  auto digi = (*chamber).second.first;
46  auto dend = (*chamber).second.second;
47  for( ; digi != dend; ++digi ) {
48  if ((*chamber).first.region() != 0) { // 0 is barrel
49  if (!((*chamber).first.station() <= 2 && (*chamber).first.ring() == 3)) { // do not include RE1/3, RE2/3
50  out.emplace_back((*chamber).first,digi->strip(),(*chamber).first.layer(),digi->bx());
51  }
52  }
53  }
54  }
55  return;
56 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:508
template<>
void EMTFSubsystemCollector::extractPrimitives ( GEMTag  tag,
const edm::Event iEvent,
const edm::EDGetToken token,
TriggerPrimitiveCollection out 
)

Definition at line 60 of file EMTFSubsystemCollector.cc.

References relativeConstraints::chamber, and edm::Event::getByToken().

65  {
67  iEvent.getByToken(token, gemDigis);
68 
69  auto chamber = gemDigis->begin();
70  auto chend = gemDigis->end();
71  for( ; chamber != chend; ++chamber ) {
72  auto digi = (*chamber).second.first;
73  auto dend = (*chamber).second.second;
74  for( ; digi != dend; ++digi ) {
75  out.emplace_back((*chamber).first,*digi);
76  }
77  }
78  return;
79 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:508