CMS 3D CMS Logo

CSCTFPtLUT.h
Go to the documentation of this file.
1 #ifndef CSCTrackFinder_CSCTFPtLUT_h
2 #define CSCTrackFinder_CSCTFPtLUT_h
3 
18 
19 class CSCTFPtLUT {
20 public:
21  struct Tokens {
25  };
26 
28 
30  CSCTFPtLUT(const edm::EventSetup& c, const Tokens& tokens);
32 
34 
35  CSCTFPtLUT(const CSCTFPtLUT&);
37  if (pt_lut)
38  delete[] pt_lut;
39  pt_lut = nullptr;
40  }
41 
43 
44  ptdat Pt(const ptadd&) const;
45 
46  ptdat Pt(const unsigned&) const;
47 
48  ptdat Pt(const unsigned& delta_phi_12,
49  const unsigned& delta_phi23,
50  const unsigned& track_eta,
51  const unsigned& track_mode,
52  const unsigned& track_fr,
53  const unsigned& delta_phi_sign) const;
54 
55  ptdat Pt(const unsigned& delta_phi_12,
56  const unsigned& track_eta,
57  const unsigned& track_mode,
58  const unsigned& track_fr,
59  const unsigned& delta_phi_sign) const;
60 
61  static const int dPhiNLBMap_5bit[32];
62  static const int dPhiNLBMap_7bit[128];
63  static const int dPhiNLBMap_8bit[256];
64 
65  static const int dEtaCut_Low[24];
66  static const int dEtaCut_Mid[24];
67  static const int dEtaCut_High_A[24];
68  static const int dEtaCut_High_B[24];
69  static const int dEtaCut_High_C[24];
70  static const int dEtaCut_Open[24];
71 
72  static const int getPtbyMLH;
73 
74 private:
75  static ptdat* pt_lut;
76  static bool lut_read_in;
80 
84 
85  ptdat calcPt(const ptadd&) const;
86  //unsigned trackQuality(const unsigned& eta, const unsigned& mode) const;
87  unsigned trackQuality(const unsigned& eta, const unsigned& mode, const unsigned& fr) const;
88  void readLUT();
89 };
90 
91 #endif
CSCTFPtMethods ptMethods
Definition: CSCTFPtLUT.h:79
edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > scales
Definition: CSCTFPtLUT.h:23
edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcd > ptScale
Definition: CSCTFPtLUT.h:24
CSCTFPtLUT & operator=(const CSCTFPtLUT &)
const L1MuTriggerScales * trigger_scale
Definition: CSCTFPtLUT.h:77
edm::ESGetToken< L1MuCSCPtLut, L1MuCSCPtLutRcd > ptLUT
Definition: CSCTFPtLUT.h:22
unsigned lowQualityFlag
Definition: CSCTFPtLUT.h:83
bool isBeamStartConf
Definition: CSCTFPtLUT.h:81
static bool lut_read_in
Definition: CSCTFPtLUT.h:76
static const int getPtbyMLH
Definition: CSCTFPtLUT.h:72
unsigned pt_method
Definition: CSCTFPtLUT.h:83
static ptdat * pt_lut
Definition: CSCTFPtLUT.h:75
static const int dEtaCut_High_C[24]
Definition: CSCTFPtLUT.h:69
static Tokens consumes(edm::ConsumesCollector iC)
Definition: CSCTFPtLUT.cc:87
static const int dPhiNLBMap_8bit[256]
Definition: CSCTFPtLUT.h:63
static const int dEtaCut_Mid[24]
Definition: CSCTFPtLUT.h:66
static const int dEtaCut_Low[24]
Definition: CSCTFPtLUT.h:65
unsigned trackQuality(const unsigned &eta, const unsigned &mode, const unsigned &fr) const
Definition: CSCTFPtLUT.cc:1339
void readLUT()
Definition: CSCTFPtLUT.cc:1458
edm::FileInPath pt_lut_file
Definition: CSCTFPtLUT.h:82
static const int dEtaCut_High_A[24]
Definition: CSCTFPtLUT.h:67
class pt_address ptadd
class pt_data ptdat
const std::vector< double > ptScale
Definition: Utilities.cc:33
static const int dEtaCut_Open[24]
Definition: CSCTFPtLUT.h:70
ptdat calcPt(const ptadd &) const
Definition: CSCTFPtLUT.cc:226
static const int dPhiNLBMap_7bit[128]
Definition: CSCTFPtLUT.h:62
bool read_pt_lut
Definition: CSCTFPtLUT.h:81
ptdat Pt(const ptadd &) const
Definition: CSCTFPtLUT.cc:178
bool isBinary
Definition: CSCTFPtLUT.h:81
const L1MuTriggerPtScale * trigger_ptscale
Definition: CSCTFPtLUT.h:78
static const int dEtaCut_High_B[24]
Definition: CSCTFPtLUT.h:68
CSCTFPtLUT(const edm::EventSetup &c, const Tokens &tokens)
KK.
Definition: CSCTFPtLUT.cc:97
static const int dPhiNLBMap_5bit[32]
KK.
Definition: CSCTFPtLUT.h:61