CMS 3D CMS Logo

CSCTFPtLUT.h
Go to the documentation of this file.
1 #ifndef CSCTrackFinder_CSCTFPtLUT_h
2 #define CSCTrackFinder_CSCTFPtLUT_h
3 
13 
14 class CSCTFPtLUT {
15 public:
19 
21 
22  CSCTFPtLUT(const CSCTFPtLUT&);
24  if (pt_lut)
25  delete[] pt_lut;
26  pt_lut = nullptr;
27  }
28 
30 
31  ptdat Pt(const ptadd&) const;
32 
33  ptdat Pt(const unsigned&) const;
34 
35  ptdat Pt(const unsigned& delta_phi_12,
36  const unsigned& delta_phi23,
37  const unsigned& track_eta,
38  const unsigned& track_mode,
39  const unsigned& track_fr,
40  const unsigned& delta_phi_sign) const;
41 
42  ptdat Pt(const unsigned& delta_phi_12,
43  const unsigned& track_eta,
44  const unsigned& track_mode,
45  const unsigned& track_fr,
46  const unsigned& delta_phi_sign) const;
47 
48  static const int dPhiNLBMap_5bit[32];
49  static const int dPhiNLBMap_7bit[128];
50  static const int dPhiNLBMap_8bit[256];
51 
52  static const int dEtaCut_Low[24];
53  static const int dEtaCut_Mid[24];
54  static const int dEtaCut_High_A[24];
55  static const int dEtaCut_High_B[24];
56  static const int dEtaCut_High_C[24];
57  static const int dEtaCut_Open[24];
58 
59  static const int getPtbyMLH;
60 
61 private:
62  static ptdat* pt_lut;
63  static bool lut_read_in;
67 
71 
72  ptdat calcPt(const ptadd&) const;
73  //unsigned trackQuality(const unsigned& eta, const unsigned& mode) const;
74  unsigned trackQuality(const unsigned& eta, const unsigned& mode, const unsigned& fr) const;
75  void readLUT();
76 };
77 
78 #endif
CSCTFPtLUT::trigger_ptscale
const L1MuTriggerPtScale * trigger_ptscale
Definition: CSCTFPtLUT.h:65
CSCTFPtLUT::dEtaCut_High_B
static const int dEtaCut_High_B[24]
Definition: CSCTFPtLUT.h:55
CSCTrackFinderDataTypes.h
CSCTFPtLUT::lut_read_in
static bool lut_read_in
Definition: CSCTFPtLUT.h:63
CSCTFPtLUT::operator=
CSCTFPtLUT & operator=(const CSCTFPtLUT &)
CSCTFPtLUT::trigger_scale
const L1MuTriggerScales * trigger_scale
Definition: CSCTFPtLUT.h:64
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
CSCTFPtLUT::dEtaCut_High_C
static const int dEtaCut_High_C[24]
Definition: CSCTFPtLUT.h:56
CSCTFPtLUT::CSCTFPtLUT
CSCTFPtLUT(const edm::EventSetup &c)
KK.
Definition: CSCTFPtLUT.cc:94
CSCTFPtLUT::lowQualityFlag
unsigned lowQualityFlag
Definition: CSCTFPtLUT.h:70
CSCTFPtLUT::dEtaCut_Low
static const int dEtaCut_Low[24]
Definition: CSCTFPtLUT.h:52
CSCTFPtLUT::trackQuality
unsigned trackQuality(const unsigned &eta, const unsigned &mode, const unsigned &fr) const
Definition: CSCTFPtLUT.cc:1345
CSCTFPtLUT::getPtbyMLH
static const int getPtbyMLH
Definition: CSCTFPtLUT.h:59
FileInPath.h
CSCTFPtLUT::dPhiNLBMap_8bit
static const int dPhiNLBMap_8bit[256]
Definition: CSCTFPtLUT.h:50
edm::FileInPath
Definition: FileInPath.h:64
L1MuTriggerPtScale
Definition: L1MuTriggerPtScale.h:33
CSCTFPtLUT::~CSCTFPtLUT
~CSCTFPtLUT()
Definition: CSCTFPtLUT.h:23
PVValHelper::eta
Definition: PVValidationHelpers.h:69
CSCTFPtLUT::dEtaCut_Mid
static const int dEtaCut_Mid[24]
Definition: CSCTFPtLUT.h:53
CSCTFPtLUT::pt_method
unsigned pt_method
Definition: CSCTFPtLUT.h:70
CSCTFPtLUT::isBeamStartConf
bool isBeamStartConf
Definition: CSCTFPtLUT.h:68
CSCTFPtLUT::pt_lut
static ptdat * pt_lut
Definition: CSCTFPtLUT.h:62
ptdat
class pt_data ptdat
edm::ParameterSet
Definition: ParameterSet.h:36
L1MuTriggerPtScale.h
L1MuTriggerScales.h
CSCTFPtLUT::isBinary
bool isBinary
Definition: CSCTFPtLUT.h:68
CSCTFPtLUT::pt_lut_file
edm::FileInPath pt_lut_file
Definition: CSCTFPtLUT.h:69
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
CSCTFPtLUT::dEtaCut_High_A
static const int dEtaCut_High_A[24]
Definition: CSCTFPtLUT.h:54
ptScale
const std::vector< double > ptScale
Definition: Utilities.cc:33
L1MuTriggerScales
Definition: L1MuTriggerScales.h:33
CSCTFPtMethods
Definition: CSCTFPtMethods.h:8
CSCTFPtLUT::dPhiNLBMap_5bit
static const int dPhiNLBMap_5bit[32]
KK.
Definition: CSCTFPtLUT.h:48
CSCTFPtLUT::dEtaCut_Open
static const int dEtaCut_Open[24]
Definition: CSCTFPtLUT.h:57
CSCTFPtMethods.h
CSCTFPtLUT
KK.
Definition: CSCTFPtLUT.h:14
CSCTFPtLUT::readLUT
void readLUT()
Definition: CSCTFPtLUT.cc:1464
EventSetup.h
CSCTFPtLUT::read_pt_lut
bool read_pt_lut
Definition: CSCTFPtLUT.h:68
CSCTFPtLUT::calcPt
ptdat calcPt(const ptadd &) const
Definition: CSCTFPtLUT.cc:230
CSCTFPtLUT::ptMethods
CSCTFPtMethods ptMethods
Definition: CSCTFPtLUT.h:66
ptadd
class pt_address ptadd
ParameterSet.h
CSCTFPtLUT::Pt
ptdat Pt(const ptadd &) const
Definition: CSCTFPtLUT.cc:182
CSCTFPtLUT::dPhiNLBMap_7bit
static const int dPhiNLBMap_7bit[128]
Definition: CSCTFPtLUT.h:49