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 #include <memory>
31 
32 //----------------------
33 // Base Class Headers --
34 //----------------------
35 
36 #include <map>
37 
38 //------------------------------------
39 // Collaborating Class Declarations --
40 //------------------------------------
41 
54 
55 class L1MuBMTFConfig;
56 class L1MuBMSecProcMap;
57 class L1MuBMSecProcId;
59 class L1MuBMEtaProcessor;
60 class L1MuBMWedgeSorter;
61 class L1MuBMMuonSorter;
62 class L1MuRegionalCand;
63 class L1MuDTTrack;
64 class L1MuDTTrackSegPhi;
65 class L1MuDTTrackSegEta;
66 
67 // ---------------------
68 // -- Class Interface --
69 // ---------------------
70 
72 public:
76 
79 
81  virtual ~L1MuBMTrackFinder();
82 
85 
87  void run(const edm::Event& e, const edm::EventSetup& c);
88 
90  void reset();
91 
92  inline int setAdd(int ust, int rel_add);
93 
95  const L1MuBMSectorProcessor* sp(const L1MuBMSecProcId&) const;
96 
98  inline const L1MuBMEtaProcessor* ep(int id) const { return m_epvec[id]; }
99 
101  inline const L1MuBMWedgeSorter* ws(int id) const { return m_wsvec[id]; }
102 
104  inline const L1MuBMMuonSorter* ms() const { return m_ms; }
105 
107  int numberOfTracks();
108 
110 
112 
113  void clear();
114 
116  int numberOfTracks(int bx);
117 
119  static const L1MuBMTFConfig* config() { return m_config.get(); }
120 
126 
127 private:
129  virtual void reconstruct(const edm::Event& e, const edm::EventSetup& c) {
130  reset();
131  run(e, c);
132  }
133 
134 private:
140 
142  std::vector<L1MuBMEtaProcessor*> m_epvec;
143  std::vector<L1MuBMWedgeSorter*> m_wsvec;
145 
146  static std::shared_ptr<L1MuBMTFConfig> m_config;
147 
150 };
151 
152 #endif
const L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
get a pointer to a Sector Processor
l1t::RegionalMuonCandBxCollection::iterator TFtracks_iter
L1MuBMTrackCollection & getcache1()
const L1MuBMWedgeSorter * ws(int id) const
get a pointer to a Wedge Sorter, index [0-11]
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
const L1MuBMEtaProcessor * ep(int id) const
get a pointer to an Eta Processor, index [0-11]
std::vector< RegionalMuonCand >::iterator iterator
Definition: BXVector.h:17
L1MuBMMuonSorter * m_ms
BM Muon Sorter.
std::vector< L1MuBMTrack > L1MuBMTrackCollection
Definition: L1MuBMTrack.h:45
L1MuBMTrackSegEtaCollection _cache3
std::vector< RegionalMuonCand >::const_iterator const_iterator
Definition: BXVector.h:18
L1MuBMTrackFinder(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC)
constructor
L1MuBMTrackSegPhiCollection & getcache2()
L1MuBMTrackCollection _cache1
static const L1MuBMTFConfig * config()
return configuration
TFtracks_const_iter begin(int bx)
std::vector< L1MuBMWedgeSorter * > m_wsvec
Wedge Sorters.
const L1MuBMMuonSorter * ms() const
get a pointer to the BM Muon Sorter
std::vector< L1MuBMTrackSegPhi > L1MuBMTrackSegPhiCollection
L1MuBMTrackSegPhiCollection _cache2
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
l1t::RegionalMuonCandBxCollection _cache0
L1MuBMTrackSegEtaCollection & getcache3()
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
std::vector< L1MuBMTrackSegEta > L1MuBMTrackSegEtaCollection
static std::shared_ptr< L1MuBMTFConfig > m_config
Track Finder configuration.
l1t::RegionalMuonCandBxCollection & getcache()
l1t::RegionalMuonCandBxCollection & getcache0()
L1MuBMSecProcMap * m_spmap
Sector Processors.
virtual ~L1MuBMTrackFinder()
destructor
void reset()
reset the barrel MTTF
edm::ESGetToken< L1TMuonBarrelParams, L1TMuonBarrelParamsRcd > m_mbParamsToken