CMS 3D CMS Logo

L1MuBMSectorProcessor.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
18 //
19 //--------------------------------------------------
20 #ifndef L1MUBM_SECTOR_PROCESSOR_H
21 #define L1MUBM_SECTOR_PROCESSOR_H
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 #include <vector>
28 
29 //----------------------
30 // Base Class Headers --
31 //----------------------
32 
35 
36 //------------------------------------
37 // Collaborating Class Declarations --
38 //------------------------------------
39 
43 class L1MuBMDataBuffer;
47 class L1MuBMTrackFinder;
48 class L1MuBMTrack;
51 
52 // ---------------------
53 // -- Class Interface --
54 // ---------------------
55 
57 public:
60 
62  virtual ~L1MuBMSectorProcessor();
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 L1MuBMSectorProcessor* neighbour() const;
75 
77  inline const L1MuBMSecProcId& id() const { return m_spid; }
78 
80  inline const L1MuBMTrackFinder& 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 L1MuBMDataBuffer* data() const { return m_DataBuffer; }
90  inline L1MuBMDataBuffer* data() { return m_DataBuffer; }
91 
93  inline const L1MuBMExtrapolationUnit* EU() const { return m_EU; }
94 
96  inline const L1MuBMTrackAssembler* TA() const { return m_TA; }
97 
99  inline const L1MuBMAssignmentUnit* AU(int id) const { return m_AUs[id]; }
100 
102  inline L1MuBMTrack* track(int id) const { return m_TrackCands[id]; }
103 
105  inline L1MuBMTrack* tracK(int id) const { return m_TracKCands[id]; }
106 
107 private:
109  bool anyTrack() const;
110 
111 private:
114 
120  std::vector<L1MuBMAssignmentUnit*> m_AUs;
121 
122  std::vector<L1MuBMTrack*> m_TrackCands;
123  std::vector<L1MuBMTrack*> m_TracKCands;
124 };
125 
126 #endif
const L1MuBMSecProcId & id() const
return Sector Processor identifier
L1MuBMTrack * track(int id) const
return pointer to muon candidate, index [0,1]
L1MuBMDataBuffer * data()
bool anyTrack() const
are there any non-empty muon candidates?
virtual ~L1MuBMSectorProcessor()
destructor
const L1MuBMSectorProcessor * neighbour() const
return pointer to the next wheel neighbour
std::vector< L1MuBMTrack * > m_TracKCands
const L1MuBMAssignmentUnit * AU(int id) const
return pointer to Assignment Unit, index [0,1]
const L1MuBMExtrapolationUnit * EU() const
return pointer to Extrapolation Unit
const edm::ESGetToken< L1TMuonBarrelParams, L1TMuonBarrelParamsRcd > m_bmtfParamsToken
void print() const
print muon candidates found by the Sector Processor
bool ovl() const
is it an overlap region Sector Processor?
const L1MuBMDataBuffer * data() const
return pointer to Data Buffer
std::vector< L1MuBMTrack * > m_TrackCands
const L1MuBMTrackFinder & m_tf
const L1MuBMTrackAssembler * TA() const
return pointer to Track Assembler
L1MuBMTrack * tracK(int id) const
return pointer to muon candidate, index [0,1]
L1MuBMSectorProcessor(const L1MuBMTrackFinder &, const L1MuBMSecProcId &, edm::ConsumesCollector &&)
constructor
bool ovl() const
is it an overlap region Sector Processor?
L1MuBMSectorReceiver * m_SectorReceiver
bool brl() const
is it a barrel-only Sector Processor?
L1MuBMTrackAssembler * m_TA
L1MuBMDataBuffer * m_DataBuffer
std::vector< L1MuBMAssignmentUnit * > m_AUs
L1MuBMExtrapolationUnit * m_EU
virtual void run(int bx, const edm::Event &e, const edm::EventSetup &c)
run the Sector Processor
virtual void reset()
reset the Sector Processor
const L1MuBMTrackFinder & tf() const
return reference to barrel MTTF