CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuBMExtrapolationUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
19 //
20 //--------------------------------------------------
21 #ifndef L1MUBM_EXTRAPOLATION_UNIT_H
22 #define L1MUBM_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 
47 class L1MuBMSEU;
48 class L1MuDTTFParameters;
49 
50 // ---------------------
51 // -- Class Interface --
52 // ---------------------
53 
55 
56  public:
57 
58  typedef std::pair<Extrapolation, unsigned int> SEUId;
59  typedef std::map<SEUId, L1MuBMSEU*, std::less<SEUId> > SEUmap;
60 
63 
65  virtual ~L1MuBMExtrapolationUnit();
66 
68  virtual void run(const edm::EventSetup& c);
69 
71  virtual void reset();
72 
74  void reset(Extrapolation ext, unsigned int startAdr, unsigned int relAdr );
75 
77  unsigned short int getAddress(Extrapolation ext, unsigned int startAdr, int id) const;
78 
80  unsigned short int getQuality(Extrapolation ext, unsigned int startAdr, int id) const;
81 
83  const std::bitset<12>& getEXTable(Extrapolation ext, unsigned int startAdr) const;
84 
86  const std::bitset<12>& getQSTable(Extrapolation ext, unsigned int startAdr) const;
87 
89  int numberOfExt() const;
90 
92  void print(int level=0) const;
93 
95  static std::pair<int,int> which_ext(Extrapolation ext);
96 
97  private:
98 
99  const L1MuBMSectorProcessor& m_sp; // reference to Sector Processor
100 
101  mutable SEUmap m_SEUs; // Single Extrapolation Units
102 
103  //edm::ESHandle< L1MuDTTFParameters > pars;
106 
107 };
108 
109 #endif
static std::pair< int, int > which_ext(Extrapolation ext)
return station of start and target track segment for a given extrapolation
virtual ~L1MuBMExtrapolationUnit()
destructor
unsigned short int getQuality(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation quality from a given ERS
virtual void run()
run processor logic
virtual void reset()
reset Extrapolation Unit
unsigned short int getAddress(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation address from a given ERS
const std::bitset< 12 > & getQSTable(Extrapolation ext, unsigned int startAdr) const
get Quality Sorter table for a given SEU
const L1MuBMSectorProcessor & m_sp
Extrapolation
int numberOfExt() const
return number of successful extrapolations
std::pair< Extrapolation, unsigned int > SEUId
void print(int level=0) const
print all successful extrapolations
std::map< SEUId, L1MuBMSEU *, std::less< SEUId > > SEUmap
const std::bitset< 12 > & getEXTable(Extrapolation ext, unsigned int startAdr) const
get Extrapolator table for a given SEU
tuple level
Definition: testEve_cfg.py:34
L1MuBMExtrapolationUnit(const L1MuBMSectorProcessor &)
constructor
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle