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
CSCTFPtLUT::trigger_ptscale
const L1MuTriggerPtScale * trigger_ptscale
Definition: CSCTFPtLUT.h:78
CSCTFPtLUT::dEtaCut_High_B
static const int dEtaCut_High_B[24]
Definition: CSCTFPtLUT.h:68
CSCTFPtLUT::Tokens::ptScale
edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcd > ptScale
Definition: CSCTFPtLUT.h:24
CSCTrackFinderDataTypes.h
CSCTFPtLUT::lut_read_in
static bool lut_read_in
Definition: CSCTFPtLUT.h:76
CSCTFPtLUT::operator=
CSCTFPtLUT & operator=(const CSCTFPtLUT &)
L1MuTriggerPtScaleRcd.h
CSCTFPtLUT::trigger_scale
const L1MuTriggerScales * trigger_scale
Definition: CSCTFPtLUT.h:77
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
CSCTFPtLUT::dEtaCut_High_C
static const int dEtaCut_High_C[24]
Definition: CSCTFPtLUT.h:69
CSCTFPtLUT::consumes
static Tokens consumes(edm::ConsumesCollector iC)
Definition: CSCTFPtLUT.cc:86
CSCTFPtLUT::lowQualityFlag
unsigned lowQualityFlag
Definition: CSCTFPtLUT.h:83
CSCTFPtLUT::dEtaCut_Low
static const int dEtaCut_Low[24]
Definition: CSCTFPtLUT.h:65
L1MuTriggerScalesRcd.h
CSCTFPtLUT::trackQuality
unsigned trackQuality(const unsigned &eta, const unsigned &mode, const unsigned &fr) const
Definition: CSCTFPtLUT.cc:1340
CSCTFPtLUT::getPtbyMLH
static const int getPtbyMLH
Definition: CSCTFPtLUT.h:72
FileInPath.h
CSCTFPtLUT::dPhiNLBMap_8bit
static const int dPhiNLBMap_8bit[256]
Definition: CSCTFPtLUT.h:63
edm::FileInPath
Definition: FileInPath.h:64
L1MuTriggerPtScale
Definition: L1MuTriggerPtScale.h:33
CSCTFPtLUT::~CSCTFPtLUT
~CSCTFPtLUT()
Definition: CSCTFPtLUT.h:36
PVValHelper::eta
Definition: PVValidationHelpers.h:69
CSCTFPtLUT::dEtaCut_Mid
static const int dEtaCut_Mid[24]
Definition: CSCTFPtLUT.h:66
CSCTFPtLUT::pt_method
unsigned pt_method
Definition: CSCTFPtLUT.h:83
CSCTFPtLUT::isBeamStartConf
bool isBeamStartConf
Definition: CSCTFPtLUT.h:81
CSCTFPtLUT::pt_lut
static ptdat * pt_lut
Definition: CSCTFPtLUT.h:75
ptdat
class pt_data ptdat
edm::ParameterSet
Definition: ParameterSet.h:47
L1MuTriggerPtScale.h
L1MuTriggerScales.h
CSCTFPtLUT::isBinary
bool isBinary
Definition: CSCTFPtLUT.h:81
CSCTFPtLUT::pt_lut_file
edm::FileInPath pt_lut_file
Definition: CSCTFPtLUT.h:82
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:67
ptScale
const std::vector< double > ptScale
Definition: Utilities.cc:33
L1MuTriggerScales
Definition: L1MuTriggerScales.h:33
edm::ESGetToken< L1MuCSCPtLut, L1MuCSCPtLutRcd >
CSCTFPtLUT::Tokens::ptLUT
edm::ESGetToken< L1MuCSCPtLut, L1MuCSCPtLutRcd > ptLUT
Definition: CSCTFPtLUT.h:22
CSCTFPtMethods
Definition: CSCTFPtMethods.h:8
CSCTFPtLUT::dPhiNLBMap_5bit
static const int dPhiNLBMap_5bit[32]
KK.
Definition: CSCTFPtLUT.h:61
CSCTFPtLUT::dEtaCut_Open
static const int dEtaCut_Open[24]
Definition: CSCTFPtLUT.h:70
L1MuCSCPtLut.h
CSCTFPtMethods.h
CSCTFPtLUT::CSCTFPtLUT
CSCTFPtLUT(const edm::EventSetup &c, const Tokens &tokens)
KK.
Definition: CSCTFPtLUT.cc:96
CSCTFPtLUT
KK.
Definition: CSCTFPtLUT.h:19
CSCTFPtLUT::readLUT
void readLUT()
Definition: CSCTFPtLUT.cc:1459
EventSetup.h
CSCTFPtLUT::read_pt_lut
bool read_pt_lut
Definition: CSCTFPtLUT.h:81
CSCTFPtLUT::calcPt
ptdat calcPt(const ptadd &) const
Definition: CSCTFPtLUT.cc:225
CSCTFPtLUT::ptMethods
CSCTFPtMethods ptMethods
Definition: CSCTFPtLUT.h:79
L1MuCSCPtLutRcd.h
ConsumesCollector.h
ptadd
class pt_address ptadd
ParameterSet.h
CSCTFPtLUT::Pt
ptdat Pt(const ptadd &) const
Definition: CSCTFPtLUT.cc:177
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
CSCTFPtLUT::Tokens
Definition: CSCTFPtLUT.h:21
CSCTFPtLUT::Tokens::scales
edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > scales
Definition: CSCTFPtLUT.h:23
CSCTFPtLUT::dPhiNLBMap_7bit
static const int dPhiNLBMap_7bit[128]
Definition: CSCTFPtLUT.h:62