CMS 3D CMS Logo

CSCTFPtMethods.h
Go to the documentation of this file.
1 #ifndef CSCTrackFinder_CSCTFPtMethods_h
2 #define CSCTrackFinder_CSCTFPtMethods_h
3 
5 
7 
9 public:
10  enum { kMaxParameters = 4 };
13 
14  CSCTFPtMethods(const L1MuTriggerPtScale *ptScale = nullptr);
15 
20  static const float AkLowEta_Fit2[kME2andMB2][kMaxParameters];
22 
23  static const float BkLowEta_Fit2[kME2andMB2][kMaxParameters];
25 
28  static const float AkLowEta_Fit1[kME2andMB2][kMaxParameters];
30 
31  static const float kGlobalScaleFactor;
33  static const float FRCorrLowEta[kME2andMB2][2];
34  static const float FRCorrHighEta[kME2andMB2][2];
35 
37  static const double AB_mu12FnoME11[4][15];
38  static const double AB_mu13FnoME11[4][15];
39  static const double AB_mu14FnoME11[4][15];
40  static const double AB_mu12RnoME11[4][15];
41  static const double AB_mu13RnoME11[4][15];
42  static const double AB_mu14RnoME11[4][15];
43  static const double AB_mu12FME11[4][15];
44  static const double AB_mu13FME11[4][15];
45  static const double AB_mu14FME11[4][15];
46  static const double AB_mu12RME11[4][15];
47  static const double AB_mu13RME11[4][15];
48  static const double AB_mu14RME11[4][15];
49  static const double AB_sig12FnoME11[4][15];
50  static const double AB_sig13FnoME11[4][15];
51  static const double AB_sig14FnoME11[4][15];
52  static const double AB_sig12RnoME11[4][15];
53  static const double AB_sig13RnoME11[4][15];
54  static const double AB_sig14RnoME11[4][15];
55  static const double AB_sig12FME11[4][15];
56  static const double AB_sig13FME11[4][15];
57  static const double AB_sig14FME11[4][15];
58  static const double AB_sig12RME11[4][15];
59  static const double AB_sig13RME11[4][15];
60  static const double AB_sig14RME11[4][15];
61 
62  static const double AB_mu12F[4][15];
63  static const double AB_mu13F[4][15];
64  static const double AB_mu14F[4][15];
65  static const double AB_mu12R[4][15];
66  static const double AB_mu13R[4][15];
67  static const double AB_mu14R[4][15];
68  static const double AB_mu23[4][15];
69  static const double AB_mu24[4][15];
70  static const double AB_mu34[4][15];
71  static const double AB_mu51[4][15];
72  static const double AB_mu52[4][15];
73  static const double AB_mu53[4][15];
74  static const double AB_mu5[4][15];
75 
76  static const double AB_sig12F[4][15];
77  static const double AB_sig13F[4][15];
78  static const double AB_sig14F[4][15];
79  static const double AB_sig12R[4][15];
80  static const double AB_sig13R[4][15];
81  static const double AB_sig14R[4][15];
82  static const double AB_sig23[4][15];
83  static const double AB_sig24[4][15];
84  static const double AB_sig34[4][15];
85  static const double AB_sig51[4][15];
86  static const double AB_sig52[4][15];
87  static const double AB_sig53[4][15];
88  static const double AB_sig5[4][15];
89 
90  static const double AB_rho123F[5][15];
91  static const double AB_rho124F[5][15];
92  static const double AB_rho134F[5][15];
93  static const double AB_rho123R[5][15];
94  static const double AB_rho124R[5][15];
95  static const double AB_rho134R[5][15];
96  static const double AB_rho234[5][15];
97  static const double AB_rho512[5][15];
98  static const double AB_rho513[5][15];
99  static const double AB_rho523[5][15];
100  static const double AB_rho51B[5][15];
101  static const double AB_rho52B[5][15];
102  static const double AB_rho53B[5][15];
104  static const double A_mu12Front[4][15];
105  static const double A_sig12Front[3][15];
106  static const double A_mu13Front[4][15];
107  static const double A_sig13Front[3][15];
108  static const double A_mu14Front[4][15];
109  static const double A_sig14Front[3][15];
110 
111  static const double A_mu12Rare[4][15];
112  static const double A_sig12Rare[3][15];
113  static const double A_mu13Rare[4][15];
114  static const double A_sig13Rare[3][15];
115  static const double A_mu14Rare[4][15];
116  static const double A_sig14Rare[3][15];
117 
118  static const double A_mu51[4][15];
119  static const double A_sig51[3][15];
120  static const double A_mu52[4][15];
121  static const double A_sig52[3][15];
122  static const double A_mu53[4][15];
123  static const double A_sig53[3][15];
124 
125  static const double A_mu23[4][15];
126  static const double A_sig23[3][15];
127  static const double A_mu24[4][15];
128  static const double A_sig24[3][15];
129  static const double A_mu34[4][15];
130  static const double A_sig34[3][15];
131 
132  /*
133  static const double A_mu23CSCTF[4][15];
134  static const double A_sig23CSCTF[3][15];
135  static const double A_mu24CSCTF[4][15];
136  static const double A_sig24CSCTF[3][15];
137  static const double A_mu34CSCTF[4][15];
138  static const double A_sig34CSCTF[3][15];
139 */
140  static const double A_rho123FrontCSCTF[5][15];
141  static const double A_rho124FrontCSCTF[5][15];
142  static const double A_rho134FrontCSCTF[5][15];
143 
144  static const double A_rho123RareCSCTF[5][15];
145  static const double A_rho124RareCSCTF[5][15];
146  static const double A_rho134RareCSCTF[5][15];
147 
148  static const double A_rho234CSCTF[5][15];
149 
150  static const double A_rho512[5][15];
151  static const double A_rho513[5][15];
152  static const double A_rho523[5][15];
153 
154  // don't care about Mode 12: 1-2-b1 yet, should add A_mu12CSCTF or A_mu51CSCTF depending how calculate dphi12
155 
157  float Pt2Stn(int type, float eta, float dphi, int fr = -1) const;
158  float Pt2Stn2010(int type, float eta, float dphi, int fr = -1, int method = 11) const;
159  float Pt2Stn2011(int type, float eta, float dphi, int fr = -1, int method = 11, int phiSign = 2) const;
160  float Pt2Stn2012(int type, float eta, float dphi, int PtbyMLH, float &theLH, int fr = -1, int method = 11) const;
161  float Pt2Stn2012_DT(
162  int type, float eta, float dphi, int PtbyMLH, float &theLH, int fr = -1, int method = 11, int phiSign = 2) const;
163  double Likelihood2(double *phi12, double *par_m12, double *par_sig12, double *v) const;
164  double Likelihood2_2011(double *phi12, double *par_m12, double *par_sig12, double *v) const;
165 
167  float Pt3Stn(int type, float eta, float dphi1, float dphi2, int fr = -1) const;
168  float Pt3Stn2010(int type, float eta, float dphi1, float dphi2, int fr = -1, int method = 11) const;
169  float Pt3Stn2011(int type, float eta, float dphi1, float dphi2, int fr = -1, int method = 11) const;
170  float Pt3Stn2012(
171  int type, float eta, float dphi1, float dphi2, int PtbyMLH, float &theLH, int fr = -1, int method = 11) const;
172  float Pt3Stn2012_DT(
173  int type, float eta, float dphi1, float dphi2, int PtbyMLH, float &theLH, int fr = -1, int method = 11) const;
174  double Likelihood(double *phi12,
175  double *phi23,
176  double *par_m12,
177  double *par_m23,
178  double *par_sig12,
179  double *par_sig23,
180  double *par_rho,
181  double *v) const;
182  double Likelihood2011(double *phi12,
183  double *phi23,
184  double *par_m12,
185  double *par_m23,
186  double *par_sig12,
187  double *par_sig23,
188  double *par_rho,
189  double *v) const;
192  static const float ptbins[29];
193  static const float etabins[16];
194  static const float dphifr0[4][15][28];
195  static const float dphifr1[4][15][28];
196  static const float sigmafr0[4][15][28];
197  static const float sigmafr1[4][15][28];
198 
199  float Pt2StnChiSq(int type, float eta, int dphi, int fr) const;
200  float Pt3StnChiSq(int type, float eta, int dphi1, int dphi2, int fr) const;
201 
204  float Pt2StnHybrid(int type, float eta, int dphi, int fr) const;
205  float Pt3StnHybrid(int type, float eta, int dphi1, int dphi2, int fr) const;
206 
217  bool chargeValid(unsigned Pt, unsigned Quality, unsigned Eta, unsigned method) const;
218 
220  float PtEff90(float pt, float eta, int mode) const;
221 
222 private:
224 };
225 
226 #endif
static const double A_sig14Front[3][15]
float Pt3Stn2010(int type, float eta, float dphi1, float dphi2, int fr=-1, int method=11) const
static const float AkHighEta_Fit2[kME2andMB2][kMaxParameters]
static const double AB_sig14FnoME11[4][15]
static const double AB_sig24[4][15]
static const double A_rho123RareCSCTF[5][15]
static const double AB_mu14R[4][15]
static const double AB_sig14RnoME11[4][15]
double Likelihood2(double *phi12, double *par_m12, double *par_sig12, double *v) const
static const double AB_sig52[4][15]
static const double AB_mu12R[4][15]
static const double A_sig13Rare[3][15]
static const double AB_mu13RME11[4][15]
static const double AB_rho523[5][15]
float Pt3Stn2012_DT(int type, float eta, float dphi1, float dphi2, int PtbyMLH, float &theLH, int fr=-1, int method=11) const
static const double AB_sig13F[4][15]
static const double AB_mu24[4][15]
static const double AB_mu13RnoME11[4][15]
static const double AB_mu52[4][15]
float Pt3Stn2012(int type, float eta, float dphi1, float dphi2, int PtbyMLH, float &theLH, int fr=-1, int method=11) const
static const double A_sig12Front[3][15]
static const double AB_mu14RME11[4][15]
static const float FRCorrHighEta[kME2andMB2][2]
static const double AB_sig12FnoME11[4][15]
static const double AB_mu13FnoME11[4][15]
static const double AB_mu14F[4][15]
float Pt2Stn(int type, float eta, float dphi, int fr=-1) const
static const float dphifr1[4][15][28]
bool chargeValid(unsigned Pt, unsigned Quality, unsigned Eta, unsigned method) const
static const double AB_sig13FME11[4][15]
static const double AB_rho513[5][15]
static const double AB_mu51[4][15]
static const float AkLowEta_Fit1[kME2andMB2][kMaxParameters]
static const double AB_sig12FME11[4][15]
static const double AB_mu23[4][15]
static const double AB_sig12R[4][15]
static const double AB_sig51[4][15]
static const float BkLowEta_Fit2[kME2andMB2][kMaxParameters]
const L1MuTriggerPtScale * trigger_scale
static const float dphifr0[4][15][28]
static const double AB_mu14FME11[4][15]
static const double AB_sig53[4][15]
float Pt3StnChiSq(int type, float eta, int dphi1, int dphi2, int fr) const
static const double A_sig34[3][15]
static const double AB_mu14RnoME11[4][15]
static const double A_sig53[3][15]
static const double A_mu53[4][15]
static const double AB_rho512[5][15]
static const double AB_sig14R[4][15]
double Likelihood(double *phi12, double *phi23, double *par_m12, double *par_m23, double *par_sig12, double *par_sig23, double *par_rho, double *v) const
static const double A_mu24[4][15]
static const float AkHighEta_Fit1[kME2andMB2][kMaxParameters]
static const double AB_mu12RnoME11[4][15]
static const float sigmafr0[4][15][28]
static const double A_sig23[3][15]
static const double AB_mu12FnoME11[4][15]
static const double AB_mu13R[4][15]
static const double A_rho134RareCSCTF[5][15]
static const double AB_rho134F[5][15]
double Likelihood2011(double *phi12, double *phi23, double *par_m12, double *par_m23, double *par_sig12, double *par_sig23, double *par_rho, double *v) const
static const double AB_sig34[4][15]
CSCTFPtMethods(const L1MuTriggerPtScale *ptScale=nullptr)
static const float BkHighEta_Fit2[kME2andMB2][kMaxParameters]
float Pt2StnHybrid(int type, float eta, int dphi, int fr) const
static const double AB_mu12RME11[4][15]
static const float kGlobalScaleFactor
static const double A_mu14Front[4][15]
float Pt3Stn(int type, float eta, float dphi1, float dphi2, int fr=-1) const
static const double A_mu23[4][15]
static const double A_rho512[5][15]
DT correlation.
float Pt2Stn2010(int type, float eta, float dphi, int fr=-1, int method=11) const
static const double A_sig14Rare[3][15]
static const double AB_rho52B[5][15]
static const double A_sig12Rare[3][15]
static const double A_sig51[3][15]
static const double AB_mu12FME11[4][15]
static const double A_rho523[5][15]
static const double A_mu52[4][15]
float Pt2Stn2011(int type, float eta, float dphi, int fr=-1, int method=11, int phiSign=2) const
static const double A_mu13Front[4][15]
float Pt3StnHybrid(int type, float eta, int dphi1, int dphi2, int fr) const
static const double A_rho134FrontCSCTF[5][15]
double Likelihood2_2011(double *phi12, double *par_m12, double *par_sig12, double *v) const
static const double A_mu12Rare[4][15]
static const double AB_sig5[4][15]
static const double AB_sig14F[4][15]
static const double AB_sig14FME11[4][15]
static const double A_mu13Rare[4][15]
float Pt2Stn2012(int type, float eta, float dphi, int PtbyMLH, float &theLH, int fr=-1, int method=11) const
static const double A_mu12Front[4][15]
float PtEff90(float pt, float eta, int mode) const
static const double AB_rho124F[5][15]
static const double AB_rho124R[5][15]
static const double A_sig24[3][15]
static const double AB_mu13F[4][15]
float Pt2StnChiSq(int type, float eta, int dphi, int fr) const
const std::vector< double > ptScale
Definition: Utilities.cc:33
static const double AB_rho53B[5][15]
static const double AB_sig13R[4][15]
static const double AB_mu5[4][15]
static const double AB_mu53[4][15]
static const float AkLowEta_Fit2[kME2andMB2][kMaxParameters]
float Pt2Stn2012_DT(int type, float eta, float dphi, int PtbyMLH, float &theLH, int fr=-1, int method=11, int phiSign=2) const
static const double AB_sig13RME11[4][15]
static const double AB_mu14FnoME11[4][15]
static const double AB_rho234[5][15]
static const double AB_sig13FnoME11[4][15]
static const double A_mu14Rare[4][15]
static const double AB_sig23[4][15]
static const double A_rho234CSCTF[5][15]
static const float FRCorrLowEta[kME2andMB2][2]
static const double AB_sig12RnoME11[4][15]
float Pt3Stn2011(int type, float eta, float dphi1, float dphi2, int fr=-1, int method=11) const
static const double AB_rho134R[5][15]
static const double A_sig13Front[3][15]
static const double A_mu51[4][15]
static const double AB_mu34[4][15]
static const float ptbins[29]
static const double A_rho123FrontCSCTF[5][15]
static const double A_rho124FrontCSCTF[5][15]
static const double A_sig52[3][15]
static const double A_rho513[5][15]
static const double A_rho124RareCSCTF[5][15]
static const double AB_rho123F[5][15]
static const double AB_sig13RnoME11[4][15]
static const double AB_sig12F[4][15]
static const double AB_rho51B[5][15]
static const double AB_mu12F[4][15]
static const double AB_sig14RME11[4][15]
static const double A_mu34[4][15]
static const double AB_mu13FME11[4][15]
static const double AB_rho123R[5][15]
static const float sigmafr1[4][15][28]
static const float etabins[16]
static const double AB_sig12RME11[4][15]