CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTTrackFinder.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
20 //
21 //--------------------------------------------------
22 #ifndef L1MUDT_TRACK_FINDER_H
23 #define L1MUDT_TRACK_FINDER_H
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 
29 #include <vector>
30 
31 //----------------------
32 // Base Class Headers --
33 //----------------------
34 
35 
36 //------------------------------------
37 // Collaborating Class Declarations --
38 //------------------------------------
39 
42 class L1MuDTTFConfig;
43 class L1MuDTSecProcMap;
44 class L1MuDTSecProcId;
46 class L1MuDTEtaProcessor;
47 class L1MuDTWedgeSorter;
48 class L1MuDTMuonSorter;
49 class L1MuDTTrackCand;
50 class L1MuRegionalCand;
51 
52 // ---------------------
53 // -- Class Interface --
54 // ---------------------
55 
56 
58 
59  public:
60 
62  typedef std::vector<L1MuRegionalCand>::const_iterator TFtracks_const_iter;
63  typedef std::vector<L1MuRegionalCand>::iterator TFtracks_iter;
64 
67 
69  virtual ~L1MuDTTrackFinder();
70 
72  void setup();
73 
75  void run(const edm::Event& e, const edm::EventSetup& c);
76 
78  void reset();
79 
81  const L1MuDTSectorProcessor* sp(const L1MuDTSecProcId&) const;
82 
84  inline const L1MuDTEtaProcessor* ep(int id) const { return m_epvec[id]; }
85 
87  inline const L1MuDTWedgeSorter* ws(int id) const { return m_wsvec[id]; }
88 
90  inline const L1MuDTMuonSorter* ms() const { return m_ms; }
91 
93  int numberOfTracks();
94 
96 
98 
99  void clear();
100 
102  int numberOfTracks(int bx);
103 
105  static L1MuDTTFConfig* config() { return m_config; }
106 
107  std::vector<L1MuDTTrackCand>& getcache0() { return _cache0; }
108 
109  std::vector<L1MuRegionalCand>& getcache() { return _cache; }
110 
111  private:
112 
114  virtual void reconstruct(const edm::Event& e, const edm::EventSetup& c) { reset(); run(e,c); }
115 
116  private:
117 
118  std::vector<L1MuDTTrackCand> _cache0;
119  std::vector<L1MuRegionalCand> _cache;
121  std::vector<L1MuDTEtaProcessor*> m_epvec;
122  std::vector<L1MuDTWedgeSorter*> m_wsvec;
124 
126 
127 };
128 
129 #endif
TFtracks_const_iter begin()
const L1MuDTMuonSorter * ms() const
get a pointer to the DT Muon Sorter
L1MuDTSecProcMap * m_spmap
Sector Processors.
L1MuDTMuonSorter * m_ms
DT Muon Sorter.
TFtracks_const_iter end()
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
const L1MuDTSectorProcessor * sp(const L1MuDTSecProcId &) const
get a pointer to a Sector Processor
const L1MuDTEtaProcessor * ep(int id) const
get a pointer to an Eta Processor, index [0-11]
std::vector< L1MuDTTrackCand > _cache0
L1MuDTTrackFinder(const edm::ParameterSet &ps)
constructor
virtual ~L1MuDTTrackFinder()
destructor
void reset()
reset the barrel MTTF
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
std::vector< L1MuDTTrackCand > & getcache0()
std::vector< L1MuRegionalCand > _cache
std::vector< L1MuRegionalCand > & getcache()
std::vector< L1MuDTEtaProcessor * > m_epvec
Eta Processors.
virtual void reconstruct(const edm::Event &e, const edm::EventSetup &c)
run Track Finder and store candidates in cache
static L1MuDTTFConfig * config()
return configuration
std::vector< L1MuRegionalCand >::const_iterator TFtracks_const_iter
container for muon candidates
std::vector< L1MuRegionalCand >::iterator TFtracks_iter
void setup()
build the structure of the barrel MTTF
const L1MuDTWedgeSorter * ws(int id) const
get a pointer to a Wedge Sorter, index [0-11]
static L1MuDTTFConfig * m_config
Track Finder configuration.
std::vector< L1MuDTWedgeSorter * > m_wsvec
Wedge Sorters.