CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTSectorProcessor.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
20 //
21 //--------------------------------------------------
22 #ifndef L1MUDT_SECTOR_PROCESSOR_H
23 #define L1MUDT_SECTOR_PROCESSOR_H
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 
29 #include <vector>
30 
31 //----------------------
32 // Base Class Headers --
33 //----------------------
34 
36 
37 //------------------------------------
38 // Collaborating Class Declarations --
39 //------------------------------------
40 
43 class L1MuDTDataBuffer;
47 class L1MuDTTrackFinder;
48 class L1MuDTTrack;
49 
50 // ---------------------
51 // -- Class Interface --
52 // ---------------------
53 
55 
56  public:
57 
60 
62  virtual ~L1MuDTSectorProcessor();
63 
65  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
66 
68  virtual void reset();
69 
71  void print() const;
72 
74  const L1MuDTSectorProcessor* neighbour() const;
75 
77  inline const L1MuDTSecProcId& id() const { return m_spid; }
78 
80  inline const L1MuDTTrackFinder& tf() const { return m_tf; }
81 
83  inline bool brl() const { return !m_spid.ovl(); }
84 
86  inline bool ovl() const { return m_spid.ovl(); }
87 
89  inline const L1MuDTDataBuffer* data() const { return m_DataBuffer; }
90  inline L1MuDTDataBuffer* data() { return m_DataBuffer; }
91 
93  inline const L1MuDTExtrapolationUnit* EU() const { return m_EU; }
94 
96  inline const L1MuDTTrackAssembler* TA() const { return m_TA; }
97 
99  inline const L1MuDTAssignmentUnit* AU(int id) const { return m_AUs[id]; }
100 
102  inline L1MuDTTrack* track(int id) const { return m_TrackCands[id]; }
103 
105  inline L1MuDTTrack* tracK(int id) const { return m_TracKCands[id]; }
106 
107  private:
108 
110  bool anyTrack() const;
111 
112  private:
113 
116 
121  std::vector<L1MuDTAssignmentUnit*> m_AUs;
122 
123  std::vector<L1MuDTTrack*> m_TrackCands;
124  std::vector<L1MuDTTrack*> m_TracKCands;
125 
126 };
127 
128 #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?
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
L1MuDTSectorProcessor(const L1MuDTTrackFinder &, const L1MuDTSecProcId &)
constructor
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?