CMS 3D CMS Logo

L1MuDTEtaProcessor.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
17 //
18 //--------------------------------------------------
19 #ifndef L1MUDT_ETA_PROCESSOR_H
20 #define L1MUDT_ETA_PROCESSOR_H
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 
26 #include <vector>
27 
28 //----------------------
29 // Base Class Headers --
30 //----------------------
31 
32 //------------------------------------
33 // Collaborating Class Declarations --
34 //------------------------------------
35 
44 class L1MuDTTrackSegEta;
45 class L1MuDTTrackFinder;
46 class L1MuDTTrack;
49 class L1MuDTTFMasks;
50 
51 // ---------------------
52 // -- Class Interface --
53 // ---------------------
54 
56 public:
59 
61  virtual ~L1MuDTEtaProcessor();
62 
64  inline int id() const { return m_epid; }
65 
67  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
68 
70  virtual void reset();
71 
73  void print() const;
74 
76  inline const L1MuDTTrackFinder& tf() const { return m_tf; }
77 
79  inline int eta(int id) const { return m_eta[id]; }
80 
82  inline bool fineBit(int id) const { return m_fine[id]; }
83 
84 private:
86  void receiveData(int bx, const edm::Event& e, const edm::EventSetup& c);
87 
89  void receiveAddresses();
90 
92  void runEtaTrackFinder(const edm::EventSetup& c);
93 
96 
98  void assign();
99 
101  static int quality(int id, int stat);
102 
103 private:
105  int m_epid;
106 
107  int m_mask;
108 
109  int m_eta[12];
110  bool m_fine[12];
111 
112  std::vector<int> m_foundPattern;
113  int m_pattern[12];
114 
115  int m_address[12];
118  std::vector<const L1MuDTTrackSegEta*> m_tseta;
120 
124 };
125 
126 #endif
L1MuDTEtaProcessor::print
void print() const
print muon candidates found by the Eta Processor
Definition: L1MuDTEtaProcessor.cc:129
L1MuDTEtaProcessor::m_epid
int m_epid
Definition: L1MuDTEtaProcessor.h:105
Handle.h
ESHandle.h
L1MuDTEtaProcessor::id
int id() const
return Eta Processor identifier (0-11)
Definition: L1MuDTEtaProcessor.h:64
L1MuDTEtaProcessor::m_DTDigiToken
edm::EDGetTokenT< L1MuDTChambThContainer > m_DTDigiToken
Definition: L1MuDTEtaProcessor.h:119
edm::EDGetTokenT< L1MuDTChambThContainer >
L1MuDTEtaProcessor::m_tf
const L1MuDTTrackFinder & m_tf
Definition: L1MuDTEtaProcessor.h:104
L1MuDTAddressArray.h
L1MuDTEtaProcessor::m_tseta
std::vector< const L1MuDTTrackSegEta * > m_tseta
Definition: L1MuDTEtaProcessor.h:118
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
L1MuDTTFMasks
Definition: L1MuDTTFMasks.h:36
L1MuDTEtaProcessor::run
virtual void run(int bx, const edm::Event &e, const edm::EventSetup &c)
run the Eta Processor
Definition: L1MuDTEtaProcessor.cc:85
L1MuDTEtaProcessor::~L1MuDTEtaProcessor
virtual ~L1MuDTEtaProcessor()
destructor
Definition: L1MuDTEtaProcessor.cc:76
L1MuDTTrackSegEta
Definition: L1MuDTTrackSegEta.h:36
L1MuDTEtaProcessor::m_TracKCand
L1MuDTTrack * m_TracKCand[12]
Definition: L1MuDTEtaProcessor.h:117
L1MuDTEtaProcessor::runEtaMatchingUnit
void runEtaMatchingUnit(const edm::EventSetup &c)
run Eta Matching Unit (EMU)
Definition: L1MuDTEtaProcessor.cc:349
L1MuDTEtaProcessor::receiveAddresses
void receiveAddresses()
receive addresses (from 6 Sector Processors)
Definition: L1MuDTEtaProcessor.cc:274
edm::ESHandle< L1MuDTEtaPatternLut >
EDGetToken.h
L1MuDTEtaProcessor::msks
edm::ESHandle< L1MuDTTFMasks > msks
Definition: L1MuDTEtaProcessor.h:123
L1MuDTEtaProcessor::m_foundPattern
std::vector< int > m_foundPattern
Definition: L1MuDTEtaProcessor.h:112
L1MuDTEtaProcessor::receiveData
void receiveData(int bx, const edm::Event &e, const edm::EventSetup &c)
receive data (eta trigger primitives)
Definition: L1MuDTEtaProcessor.cc:210
L1MuDTEtaProcessor::tf
const L1MuDTTrackFinder & tf() const
return reference to barrel MTTF
Definition: L1MuDTEtaProcessor.h:76
L1MuDTEtaProcessor::m_eta
int m_eta[12]
Definition: L1MuDTEtaProcessor.h:109
Event.h
L1MuDTEtaProcessor
Definition: L1MuDTEtaProcessor.h:55
L1MuDTEtaProcessor::eta
int eta(int id) const
return eta values, index [0,11]
Definition: L1MuDTEtaProcessor.h:79
L1MuDTTrack
Definition: L1MuDTTrack.h:47
L1MuDTEtaPatternLut
Definition: L1MuDTEtaPatternLut.h:40
L1MuDTEtaProcessor::m_fine
bool m_fine[12]
Definition: L1MuDTEtaProcessor.h:110
edm::EventSetup
Definition: EventSetup.h:58
L1MuDTEtaProcessor::theEtaPatternLUT
edm::ESHandle< L1MuDTEtaPatternLut > theEtaPatternLUT
Definition: L1MuDTEtaProcessor.h:121
L1MuDTEtaProcessor::theQualPatternLUT
edm::ESHandle< L1MuDTQualPatternLut > theQualPatternLUT
Definition: L1MuDTEtaProcessor.h:122
L1MuDTTrackFinder
Definition: L1MuDTTrackFinder.h:56
L1MuDTEtaProcessor::runEtaTrackFinder
void runEtaTrackFinder(const edm::EventSetup &c)
run Eta Track Finder (ETF)
Definition: L1MuDTEtaProcessor.cc:303
L1MuDTEtaProcessor::m_pattern
int m_pattern[12]
Definition: L1MuDTEtaProcessor.h:113
L1MuDTEtaProcessor::L1MuDTEtaProcessor
L1MuDTEtaProcessor(const L1MuDTTrackFinder &, int id, edm::ConsumesCollector &&iC)
constructor
Definition: L1MuDTEtaProcessor.cc:63
EventSetup.h
L1MuDTEtaProcessor::assign
void assign()
assign eta and etaFineBit
Definition: L1MuDTEtaProcessor.cc:431
ConsumesCollector.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
L1MuDTEtaProcessor::m_address
int m_address[12]
Definition: L1MuDTEtaProcessor.h:115
edm_modernize_messagelogger.stat
stat
Definition: edm_modernize_messagelogger.py:27
L1MuDTEtaProcessor::fineBit
bool fineBit(int id) const
return fine bit, index [0,11]
Definition: L1MuDTEtaProcessor.h:82
L1MuDTQualPatternLut
Definition: L1MuDTQualPatternLut.h:41
edm::Event
Definition: Event.h:73
L1MuDTChambThContainer
Definition: L1MuDTChambThContainer.h:33
L1MuDTEtaProcessor::m_mask
int m_mask
Definition: L1MuDTEtaProcessor.h:107
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
L1MuDTEtaProcessor::quality
static int quality(int id, int stat)
get quality code; id [0,26], stat [1,3]
Definition: L1MuDTEtaProcessor.cc:465
L1MuDTEtaProcessor::reset
virtual void reset()
reset the Eta Processor
Definition: L1MuDTEtaProcessor.cc:100
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
L1MuDTEtaProcessor::m_TrackCand
L1MuDTTrack * m_TrackCand[12]
Definition: L1MuDTEtaProcessor.h:116