test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuBMTrackFinder.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
18 //
19 //--------------------------------------------------
20 #ifndef L1MUBM_TRACK_FINDER_H
21 #define L1MUBM_TRACK_FINDER_H
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 #include <vector>
28 #include <iostream>
29 //----------------------
30 // Base Class Headers --
31 //----------------------
32 
33 #include <map>
34 
35 //------------------------------------
36 // Collaborating Class Declarations --
37 //------------------------------------
38 
46 
47 class L1MuBMTFConfig;
48 class L1MuBMSecProcMap;
49 class L1MuBMSecProcId;
51 class L1MuBMEtaProcessor;
52 class L1MuBMWedgeSorter;
53 class L1MuBMMuonSorter;
54 class BMTrackCand;
55 class L1MuRegionalCand;
56 
57 // ---------------------
58 // -- Class Interface --
59 // ---------------------
60 
61 
63 
64  public:
65 
69 
72 
74  virtual ~L1MuBMTrackFinder();
75 
78 
80  void run(const edm::Event& e, const edm::EventSetup& c);
81 
83  void reset();
84 
85  inline int setAdd(int ust, int rel_add);
86 
88  const L1MuBMSectorProcessor* sp(const L1MuBMSecProcId&) const;
89 
91  inline const L1MuBMEtaProcessor* ep(int id) const { return m_epvec[id]; }
92 
94  inline const L1MuBMWedgeSorter* ws(int id) const { return m_wsvec[id]; }
95 
97  inline const L1MuBMMuonSorter* ms() const { return m_ms; }
98 
100  int numberOfTracks();
101 
102  TFtracks_const_iter begin(int bx);
103 
104  TFtracks_const_iter end(int bx);
105 
106  void clear();
107 
109  int numberOfTracks(int bx);
110 
112  static const L1MuBMTFConfig* config() { return m_config; }
113 
114 // std::vector<BMTrackCand>& getcache0() { return _cache0; }
115 
118 
119  private:
120 
122  virtual void reconstruct(const edm::Event& e, const edm::EventSetup& c) { reset(); run(e,c); }
123 
124  private:
125 
129  std::vector<L1MuBMEtaProcessor*> m_epvec;
130  std::vector<L1MuBMWedgeSorter*> m_wsvec;
132 
134 
135  std::map<int,int> eta_map ={
136  {-32, -118}, {-31, -114}, {-30, -111}, {-29, -107}, {-28, -103}, {-27, -99}, {-26, -96}, {-25, -92}, {-24, -88},
137  {-23, -84}, {-22, -81}, {-21, -77}, {-20, -73}, {-19, -69}, {-18, -66}, {-17, -62}, {-16, -58}, {-15, -54}, {-14, -51},
138  {-13, -47}, {-12, -43}, {-11, -39}, {-10, -36}, {-9, -32}, {-8, -28}, {-7, -24}, {-6, -21}, {-5, -17}, {-4, -13},
139  {-3, -9}, {-2, -6}, {-1, -2}, {0, 0}, {1, 6}, {2, 9}, {3, 13}, {4, 17}, {5, 21}, {6, 24},
140  {7, 28}, {8, 32}, {9, 36}, {10, 39}, {11, 43}, {12, 47}, {13, 51}, {14, 54}, {15, 58}, {16, 62},
141  {17, 66}, {18, 69}, {19, 73}, {20, 77}, {21, 81}, {22, 84}, {23, 88}, {24, 92}, {25, 96},
142  {26, 99}, {27, 103}, {28, 107}, {29, 111}, {30, 114}, {31, 118}};
143 
144 
146 
147 
148 };
149 
150 #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]
std::map< int, int > eta_map
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