CMS 3D CMS Logo

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 public:
56  typedef std::pair<Extrapolation, unsigned int> SEUId;
57  typedef std::map<SEUId, L1MuBMSEU*, std::less<SEUId> > SEUmap;
58 
61 
63  ~L1MuBMExtrapolationUnit() override;
64 
66  void run(const edm::EventSetup& c) override;
67 
69  void reset() override;
70 
72  void reset(Extrapolation ext, unsigned int startAdr, unsigned int relAdr);
73 
75  unsigned short int getAddress(Extrapolation ext, unsigned int startAdr, int id) const;
76 
78  unsigned short int getQuality(Extrapolation ext, unsigned int startAdr, int id) const;
79 
81  const std::bitset<12>& getEXTable(Extrapolation ext, unsigned int startAdr) const;
82 
84  const std::bitset<12>& getQSTable(Extrapolation ext, unsigned int startAdr) const;
85 
87  int numberOfExt() const;
88 
90  void print(int level = 0) const;
91 
93  static std::pair<int, int> which_ext(Extrapolation ext);
94 
95 private:
96  const L1MuBMSectorProcessor& m_sp; // reference to Sector Processor
97 
98  mutable SEUmap m_SEUs; // Single Extrapolation Units
99 
100  //edm::ESHandle< L1MuDTTFParameters > pars;
103 };
104 
105 #endif
personalPlayback.level
level
Definition: personalPlayback.py:22
ext
Definition: memstream.h:15
L1MuBMExtrapolationUnit::getEXTable
const std::bitset< 12 > & getEXTable(Extrapolation ext, unsigned int startAdr) const
get Extrapolator table for a given SEU
Definition: L1MuBMExtrapolationUnit.cc:213
ESHandle.h
L1AbstractProcessor.h
L1TMuonBarrelParams.h
L1MuBMExtrapolationUnit::getQuality
unsigned short int getQuality(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation quality from a given ERS
Definition: L1MuBMExtrapolationUnit.cc:192
L1MuBMExtrapolationUnit::pars
L1MuDTTFParameters pars
Definition: L1MuBMExtrapolationUnit.h:102
L1MuBMExtrapolationUnit::getAddress
unsigned short int getAddress(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation address from a given ERS
Definition: L1MuBMExtrapolationUnit.cc:171
L1MuBMSectorProcessor
Definition: L1MuBMSectorProcessor.h:54
L1MuBMExtrapolationUnit::reset
void reset() override
reset Extrapolation Unit
Definition: L1MuBMExtrapolationUnit.cc:148
L1MuBMExtrapolationUnit::m_sp
const L1MuBMSectorProcessor & m_sp
Definition: L1MuBMExtrapolationUnit.h:96
L1MuBMExtrapolationUnit::bmtfParamsHandle
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle
Definition: L1MuBMExtrapolationUnit.h:101
Extrapolation
Extrapolation
Definition: L1MuDTExtParam.h:22
L1MuBMExtrapolationUnit::~L1MuBMExtrapolationUnit
~L1MuBMExtrapolationUnit() override
destructor
Definition: L1MuBMExtrapolationUnit.cc:79
edm::ESHandle< L1TMuonBarrelParams >
L1AbstractProcessor
Definition: L1AbstractProcessor.h:34
L1MuBMExtrapolationUnit::getQSTable
const std::bitset< 12 > & getQSTable(Extrapolation ext, unsigned int startAdr) const
get Quality Sorter table for a given SEU
Definition: L1MuBMExtrapolationUnit.cc:226
L1MuDTExtParam.h
L1TMuonBarrelParamsRcd.h
L1AbstractProcessor::run
virtual void run()
run processor logic
Definition: L1AbstractProcessor.h:40
L1MuBMExtrapolationUnit::numberOfExt
int numberOfExt() const
return number of successful extrapolations
Definition: L1MuBMExtrapolationUnit.cc:239
L1MuBMExtrapolationUnit::SEUId
std::pair< Extrapolation, unsigned int > SEUId
Definition: L1MuBMExtrapolationUnit.h:56
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
L1MuBMExtrapolationUnit::L1MuBMExtrapolationUnit
L1MuBMExtrapolationUnit(const L1MuBMSectorProcessor &)
constructor
Definition: L1MuBMExtrapolationUnit.cc:55
L1MuBMExtrapolationUnit::SEUmap
std::map< SEUId, L1MuBMSEU *, std::less< SEUId > > SEUmap
Definition: L1MuBMExtrapolationUnit.h:57
L1MuBMExtrapolationUnit::print
void print(int level=0) const
print all successful extrapolations
Definition: L1MuBMExtrapolationUnit.cc:252
L1MuDTTFParameters
Definition: L1MuDTTFParameters.h:36
L1MuBMExtrapolationUnit::m_SEUs
SEUmap m_SEUs
Definition: L1MuBMExtrapolationUnit.h:98
L1MuBMSEU
Definition: L1MuBMSEU.h:48
L1MuBMExtrapolationUnit::which_ext
static std::pair< int, int > which_ext(Extrapolation ext)
return station of start and target track segment for a given extrapolation
Definition: L1MuBMExtrapolationUnit.cc:296
L1MuBMExtrapolationUnit
Definition: L1MuBMExtrapolationUnit.h:54