forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'l1t-muon-pass2-CMSSW_8_0_0_pre5' of github.com:cms-l1t-…
…offline/cmssw into EMTF_Unpacker_dev_800pre5
- Loading branch information
Showing
16 changed files
with
646 additions
and
626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
#ifndef L1MUBM_LUT_H | ||
#define L1MUBM_LUT_H | ||
|
||
//--------------- | ||
// C++ Headers -- | ||
//--------------- | ||
|
||
#include "CondFormats/L1TObjects/interface/L1TMuonBarrelParams.h" | ||
|
||
#include <vector> | ||
#include <map> | ||
|
||
//---------------------- | ||
// Base Class Headers -- | ||
//---------------------- | ||
|
||
|
||
//------------------------------------ | ||
// Collaborating Class Declarations -- | ||
//------------------------------------ | ||
|
||
|
||
// --------------------- | ||
// -- Class Interface -- | ||
// --------------------- | ||
|
||
|
||
class L1MuBMLUTHandler { | ||
|
||
public: | ||
/// constructor | ||
L1MuBMLUTHandler(const L1TMuonBarrelParams &l1params); | ||
|
||
/// destructor | ||
virtual ~L1MuBMLUTHandler(); | ||
|
||
/// print pt-assignment look-up tables | ||
void print_pta_lut() const; | ||
|
||
/// get pt-value for a given address | ||
int getPt(int pta_ind, int address) const; | ||
|
||
/// get pt-assignment LUT threshold | ||
int getPtLutThreshold(int pta_ind) const; | ||
|
||
/// print phi-assignment look-up tables | ||
void print_phi_lut() const; | ||
|
||
/// get delta-phi for a given address (bend-angle) | ||
int getDeltaPhi(int idx, int address) const; | ||
|
||
/// get precision for look-up tables | ||
std::pair<unsigned short, unsigned short> getPrecision() const; | ||
|
||
/// print extrapolation look-up tables | ||
void print_ext_lut() const; | ||
|
||
/// get low_value for a given address | ||
int getLow(int ext_ind, int address) const; | ||
|
||
/// get high_value for a given address | ||
int getHigh(int ext_ind, int address) const; | ||
|
||
|
||
private: | ||
const L1TMuonBarrelParams* l1tbmparams; | ||
|
||
public: | ||
|
||
|
||
|
||
//max. number of Extrapolations | ||
const int MAX_EXT = 12; | ||
|
||
// extrapolation types | ||
enum Extrapolation { EX12, EX13, EX14, EX21, EX23, EX24, EX34, | ||
EX15, EX16, EX25, EX26, EX56 }; | ||
|
||
// maximal number of pt assignment methods | ||
const int MAX_PTASSMETH = 13; | ||
|
||
// pt assignment methods | ||
enum PtAssMethod { PT12L, PT12H, PT13L, PT13H, PT14L, PT14H, | ||
PT23L, PT23H, PT24L, PT24H, PT34L, PT34H, | ||
NODEF }; | ||
|
||
}; | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.