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;
49 
50 // ---------------------
51 // -- Class Interface --
52 // ---------------------
53 
55 public:
58 
60  virtual ~L1MuBMSectorProcessor();
61 
63  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
64 
66  virtual void reset();
67 
69  void print() const;
70 
72  const L1MuBMSectorProcessor* neighbour() const;
73 
75  inline const L1MuBMSecProcId& id() const { return m_spid; }
76 
78  inline const L1MuBMTrackFinder& tf() const { return m_tf; }
79 
81  inline bool brl() const { return !m_spid.ovl(); }
82 
84  inline bool ovl() const { return m_spid.ovl(); }
85 
87  inline const L1MuBMDataBuffer* data() const { return m_DataBuffer; }
88  inline L1MuBMDataBuffer* data() { return m_DataBuffer; }
89 
91  inline const L1MuBMExtrapolationUnit* EU() const { return m_EU; }
92 
94  inline const L1MuBMTrackAssembler* TA() const { return m_TA; }
95 
97  inline const L1MuBMAssignmentUnit* AU(int id) const { return m_AUs[id]; }
98 
100  inline L1MuBMTrack* track(int id) const { return m_TrackCands[id]; }
101 
103  inline L1MuBMTrack* tracK(int id) const { return m_TracKCands[id]; }
104 
105 private:
107  bool anyTrack() const;
108 
109 private:
112 
117  std::vector<L1MuBMAssignmentUnit*> m_AUs;
118 
119  std::vector<L1MuBMTrack*> m_TrackCands;
120  std::vector<L1MuBMTrack*> m_TracKCands;
121 };
122 
123 #endif
const L1MuBMTrackFinder & tf() const
return reference to barrel MTTF
const L1MuBMSectorProcessor * neighbour() const
return pointer to the next wheel neighbour
bool anyTrack() const
are there any non-empty muon candidates?
L1MuBMDataBuffer * data()
virtual ~L1MuBMSectorProcessor()
destructor
std::vector< L1MuBMTrack * > m_TracKCands
bool ovl() const
is it an overlap region Sector Processor?
const L1MuBMExtrapolationUnit * EU() const
return pointer to Extrapolation Unit
L1MuBMTrack * tracK(int id) const
return pointer to muon candidate, index [0,1]
std::vector< L1MuBMTrack * > m_TrackCands
const L1MuBMTrackFinder & m_tf
const L1MuBMTrackAssembler * TA() const
return pointer to Track Assembler
const L1MuBMSecProcId & id() const
return Sector Processor identifier
L1MuBMTrack * track(int id) const
return pointer to muon candidate, index [0,1]
void print() const
print muon candidates found by the Sector Processor
bool ovl() const
is it an overlap region Sector Processor?
L1MuBMSectorProcessor(const L1MuBMTrackFinder &, const L1MuBMSecProcId &, edm::ConsumesCollector &&)
constructor
bool brl() const
is it a barrel-only Sector Processor?
L1MuBMSectorReceiver * m_SectorReceiver
L1MuBMTrackAssembler * m_TA
const L1MuBMDataBuffer * data() const
return pointer to Data Buffer
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
const L1MuBMAssignmentUnit * AU(int id) const
return pointer to Assignment Unit, index [0,1]
virtual void reset()
reset the Sector Processor