CMS 3D CMS Logo

L1MuDTSectorProcessor.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
18 //
19 //--------------------------------------------------
20 #ifndef L1MUDT_SECTOR_PROCESSOR_H
21 #define L1MUDT_SECTOR_PROCESSOR_H
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 #include <vector>
28 
29 //----------------------
30 // Base Class Headers --
31 //----------------------
32 
34 
35 //------------------------------------
36 // Collaborating Class Declarations --
37 //------------------------------------
38 
42 class L1MuDTDataBuffer;
46 class L1MuDTTrackFinder;
47 class L1MuDTTrack;
48 
49 // ---------------------
50 // -- Class Interface --
51 // ---------------------
52 
54 public:
57 
59  virtual ~L1MuDTSectorProcessor();
60 
62  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
63 
65  virtual void reset();
66 
68  void print() const;
69 
71  const L1MuDTSectorProcessor* neighbour() const;
72 
74  inline const L1MuDTSecProcId& id() const { return m_spid; }
75 
77  inline const L1MuDTTrackFinder& tf() const { return m_tf; }
78 
80  inline bool brl() const { return !m_spid.ovl(); }
81 
83  inline bool ovl() const { return m_spid.ovl(); }
84 
86  inline const L1MuDTDataBuffer* data() const { return m_DataBuffer; }
87  inline L1MuDTDataBuffer* data() { return m_DataBuffer; }
88 
90  inline const L1MuDTExtrapolationUnit* EU() const { return m_EU; }
91 
93  inline const L1MuDTTrackAssembler* TA() const { return m_TA; }
94 
96  inline const L1MuDTAssignmentUnit* AU(int id) const { return m_AUs[id]; }
97 
99  inline L1MuDTTrack* track(int id) const { return m_TrackCands[id]; }
100 
102  inline L1MuDTTrack* tracK(int id) const { return m_TracKCands[id]; }
103 
104 private:
106  bool anyTrack() const;
107 
108 private:
111 
116  std::vector<L1MuDTAssignmentUnit*> m_AUs;
117 
118  std::vector<L1MuDTTrack*> m_TrackCands;
119  std::vector<L1MuDTTrack*> m_TracKCands;
120 };
121 
122 #endif
const L1MuDTAssignmentUnit * AU(int id) const
return pointer to Assignment Unit, index [0,1]
L1MuDTTrack * tracK(int id) const
return pointer to muon candidate, index [0,1]
L1MuDTSectorReceiver * m_SectorReceiver
const L1MuDTSectorProcessor * neighbour() const
return pointer to the next wheel neighbour
std::vector< L1MuDTAssignmentUnit * > m_AUs
bool anyTrack() const
are there any non-empty muon candidates?
virtual void reset()
reset the Sector Processor
const L1MuDTDataBuffer * data() const
return pointer to Data Buffer
const L1MuDTTrackAssembler * TA() const
return pointer to Track Assembler
bool brl() const
is it a barrel-only Sector Processor?
std::vector< L1MuDTTrack * > m_TracKCands
L1MuDTExtrapolationUnit * m_EU
bool ovl() const
is it an overlap region Sector Processor?
L1MuDTSectorProcessor(const L1MuDTTrackFinder &, const L1MuDTSecProcId &, edm::ConsumesCollector &&)
constructor
const L1MuDTSecProcId & id() const
return Sector Processor identifier
void print() const
print muon candidates found by the Sector Processor
L1MuDTDataBuffer * data()
virtual void run(int bx, const edm::Event &e, const edm::EventSetup &c)
run the Sector Processor
const L1MuDTTrackFinder & tf() const
return reference to barrel MTTF
L1MuDTDataBuffer * m_DataBuffer
L1MuDTTrackAssembler * m_TA
const L1MuDTTrackFinder & m_tf
const L1MuDTExtrapolationUnit * EU() const
return pointer to Extrapolation Unit
L1MuDTTrack * track(int id) const
return pointer to muon candidate, index [0,1]
virtual ~L1MuDTSectorProcessor()
destructor
std::vector< L1MuDTTrack * > m_TrackCands
bool ovl() const
is it an overlap region Sector Processor?