CMS 3D CMS Logo

L1MuDTExtrapolationUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
19 //
20 //--------------------------------------------------
21 #ifndef L1MUDT_EXTRAPOLATION_UNIT_H
22 #define L1MUDT_EXTRAPOLATION_UNIT_H
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 
28 #include <utility>
29 #include <map>
30 #include <bitset>
31 
32 //----------------------
33 // Base Class Headers --
34 //----------------------
35 
37 
38 //------------------------------------
39 // Collaborating Class Declarations --
40 //------------------------------------
41 
45 class L1MuDTSEU;
46 class L1MuDTTFParameters;
47 
48 // ---------------------
49 // -- Class Interface --
50 // ---------------------
51 
53 public:
54  typedef std::pair<Extrapolation, unsigned int> SEUId;
55  typedef std::map<SEUId, L1MuDTSEU*, std::less<SEUId> > SEUmap;
56 
59 
61  ~L1MuDTExtrapolationUnit() override;
62 
64  void run(const edm::EventSetup& c) override;
65 
67  void reset() override;
68 
70  void reset(Extrapolation ext, unsigned int startAdr, unsigned int relAdr);
71 
73  unsigned short int getAddress(Extrapolation ext, unsigned int startAdr, int id) const;
74 
76  unsigned short int getQuality(Extrapolation ext, unsigned int startAdr, int id) const;
77 
79  const std::bitset<12>& getEXTable(Extrapolation ext, unsigned int startAdr) const;
80 
82  const std::bitset<12>& getQSTable(Extrapolation ext, unsigned int startAdr) const;
83 
85  int numberOfExt() const;
86 
88  void print(int level = 0) const;
89 
91  static std::pair<int, int> which_ext(Extrapolation ext);
92 
93 private:
94  const L1MuDTSectorProcessor& m_sp; // reference to Sector Processor
95 
96  mutable SEUmap m_SEUs; // Single Extrapolation Units
97 
99 };
100 
101 #endif
const std::bitset< 12 > & getEXTable(Extrapolation ext, unsigned int startAdr) const
get Extrapolator table for a given SEU
void reset() override
reset Extrapolation Unit
std::pair< Extrapolation, unsigned int > SEUId
unsigned short int getQuality(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation quality from a given ERS
edm::ESHandle< L1MuDTTFParameters > pars
void print(int level=0) const
print all successful extrapolations
const std::bitset< 12 > & getQSTable(Extrapolation ext, unsigned int startAdr) const
get Quality Sorter table for a given SEU
const L1MuDTSectorProcessor & m_sp
L1MuDTExtrapolationUnit(const L1MuDTSectorProcessor &)
constructor
virtual void run()
run processor logic
unsigned short int getAddress(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation address from a given ERS
Extrapolation
~L1MuDTExtrapolationUnit() override
destructor
static std::pair< int, int > which_ext(Extrapolation ext)
return station of start and target track segment for a given extrapolation
int numberOfExt() const
return number of successful extrapolations
std::map< SEUId, L1MuDTSEU *, std::less< SEUId > > SEUmap
Definition: memstream.h:15