CMS 3D CMS Logo

L1MuBMTrackFinder.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
19 //
20 //--------------------------------------------------
21 #ifndef L1MUBM_TRACK_FINDER_H
22 #define L1MUBM_TRACK_FINDER_H
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 
28 #include <vector>
29 #include <iostream>
30 //----------------------
31 // Base Class Headers --
32 //----------------------
33 
34 #include <map>
35 
36 //------------------------------------
37 // Collaborating Class Declarations --
38 //------------------------------------
39 
47 
48 class L1MuBMTFConfig;
49 class L1MuBMSecProcMap;
50 class L1MuBMSecProcId;
52 class L1MuBMEtaProcessor;
53 class L1MuBMWedgeSorter;
54 class L1MuBMMuonSorter;
55 class BMTrackCand;
56 class L1MuRegionalCand;
57 
58 // ---------------------
59 // -- Class Interface --
60 // ---------------------
61 
62 
64 
65  public:
66 
70 
73 
75  virtual ~L1MuBMTrackFinder();
76 
79 
81  void run(const edm::Event& e, const edm::EventSetup& c);
82 
84  void reset();
85 
86  inline int setAdd(int ust, int rel_add);
87 
89  const L1MuBMSectorProcessor* sp(const L1MuBMSecProcId&) const;
90 
92  inline const L1MuBMEtaProcessor* ep(int id) const { return m_epvec[id]; }
93 
95  inline const L1MuBMWedgeSorter* ws(int id) const { return m_wsvec[id]; }
96 
98  inline const L1MuBMMuonSorter* ms() const { return m_ms; }
99 
101  int numberOfTracks();
102 
103  TFtracks_const_iter begin(int bx);
104 
105  TFtracks_const_iter end(int bx);
106 
107  void clear();
108 
110  int numberOfTracks(int bx);
111 
113  static const L1MuBMTFConfig* config() { return m_config; }
114 
115 // std::vector<BMTrackCand>& getcache0() { return _cache0; }
116 
119 
120  private:
121 
123  virtual void reconstruct(const edm::Event& e, const edm::EventSetup& c) { reset(); run(e,c); }
124 
125  private:
126 
130  std::vector<L1MuBMEtaProcessor*> m_epvec;
131  std::vector<L1MuBMWedgeSorter*> m_wsvec;
133 
135 
136 
137 
139 
140 
141 };
142 
143 #endif
l1t::RegionalMuonCandBxCollection::iterator TFtracks_iter
edm::EDGetTokenT< L1MuDTChambPhContainer > m_DTDigiToken
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
virtual void reconstruct(const edm::Event &e, const edm::EventSetup &c)
run Track Finder and store candidates in cache
L1MuBMMuonSorter * m_ms
BM Muon Sorter.
const L1MuBMMuonSorter * ms() const
get a pointer to the BM Muon Sorter
const L1MuBMWedgeSorter * ws(int id) const
get a pointer to a Wedge Sorter, index [0-11]
L1MuBMTrackFinder(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
constructor
static const L1MuBMTFConfig * config()
return configuration
TFtracks_const_iter begin(int bx)
std::vector< L1MuBMWedgeSorter * > m_wsvec
Wedge Sorters.
const L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
get a pointer to a Sector Processor
std::vector< RegionalMuonCand >::iterator iterator
Definition: BXVector.h:19
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
static L1MuBMTFConfig * m_config
Track Finder configuration.
l1t::RegionalMuonCandBxCollection _cache0
TFtracks_const_iter end(int bx)
std::vector< L1MuBMEtaProcessor * > m_epvec
Eta Processors.
l1t::RegionalMuonCandBxCollection _cache
l1t::RegionalMuonCandBxCollection::const_iterator TFtracks_const_iter
container for muon candidates
int setAdd(int ust, int rel_add)
void setup(edm::ConsumesCollector &&)
build the structure of the barrel MTTF
l1t::RegionalMuonCandBxCollection & getcache()
l1t::RegionalMuonCandBxCollection & getcache0()
const L1MuBMEtaProcessor * ep(int id) const
get a pointer to an Eta Processor, index [0-11]
L1MuBMSecProcMap * m_spmap
Sector Processors.
std::vector< RegionalMuonCand >::const_iterator const_iterator
Definition: BXVector.h:20
virtual ~L1MuBMTrackFinder()
destructor
void reset()
reset the barrel MTTF