112{
114
116
119 const int fnQoverPtBins = 100;
120
121 const double eta_bound = 2.5;
122 const double phi_bound =
M_PI;
123 const double p_bound = 0.5;
124 const double pt_bound = 15;
125
126 const double z_bound = 0.4;
127 const double d_bound = 0.15;
128
129 h_DELTA =
new TH1F(
"h_DELTA",
";#delta [GeV]",200,-50,50);
130
131 h_pt =
new TH1F(
"Pt",
"p_{T} of both #mu; p_{T} [GeV]", 100, 0., 100.);
132 h_pt_pos =
new TH1F(
"Pt_Pos",
"p_{T} of #mu^{+}; p_{T} [GeV]", 100, 0., 100.);
133 h_pt_neg =
new TH1F(
"Pt_Neg",
"p_{T} of #mu^{-}; p_{T} [GeV]", 100, 0., 100.);
134
135 h_z0 =
new TH1F(
"h_z0",
"z_{0}: longitudinal impact param.; z_{0} [mm]", 100, -150., 150.);
136 h_z0_pos =
new TH1F(
"h_z0_Pos",
"z_{0} of #mu^{+};z_{0} [mm]",100, -150., 150.);
137 h_z0_neg =
new TH1F(
"h_z0_Neg",
"z_{0} of #mu^{-};z_{0} [mm]",100, -150., 150.);
138 h_d0 =
new TH1F(
"h_d0",
"d_{0}: transvers. impact param.; d_{0} [mm]", 100, -0.08, 0.08);
139 h_d0_pos =
new TH1F(
"h_d0_Pos",
"d_{0} of #mu^{+};d_{0} [mm]",100, -0.08, 0.08);
140 h_d0_neg =
new TH1F(
"h_d0_Neg",
"d_{0} of #mu^{-};d_{0} [mm]",100, -0.08, 0.08);
141
142 h_mass =
new TH1F(
"ZMass",
";Mass [GeV]",100,70,110);
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157 entries =
new TH2F(
"entries",
"Entries per #eta-#phi bin;#eta;#phi;entries", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
158
159 z0delta_vs_etaphi =
new TH3F(
"Delta_z0_VsEtaPhi",
";#eta;#phi;#delta_{z_{0}} [mm]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound, 50,-z_bound,z_bound);
160
161 z0deltacorrections_vs_etaphi =
new TH2D(
"z0CorrectionVsEtaPhi",
";#eta;#phi;#delta_{z_{0}} [mm]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
162
163 z0deltacorrections_vs_etaphi_err =
new TH2D(
"z0CorrectionVsEtaPhi_Err",
";#eta;#phi;#delta_{z_{0}}", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
164
165
166 z0delta =
new TH1D(
"Delta_z0",
";#delta_{z_{0}} [mm]", 100,-z_bound,z_bound);
167
168 z0delta_pos =
new TH1D(
"Delta_z0_Pos",
";#delta_{z_{0}} [mm]", 100,-z_bound,z_bound);
169
170 z0delta_neg =
new TH1D(
"Delta_z0_Neg",
";#delta_{z_{0}} [mm]", 100,-z_bound,z_bound);
171
172 z0delta_etaphi =
new TH1D(
"Delta_z0_etaphi",
";#delta_{z_{0}} [mm]", 100,-z_bound,z_bound);
173
174 z0delta_etaphi_pos =
new TH1D(
"Delta_z0_etaphi_Pos",
";#delta_{z_{0}} [mm]", 100,-z_bound,z_bound);
175
176 z0delta_etaphi_neg =
new TH1D(
"Delta_z0_etaphi_Neg",
";#delta_{z_{0}} [mm]", 100,-z_bound,z_bound);
177
178
179
180 d0delta_vs_etaphi =
new TH3F(
"Delta_d0_VsEtaPhi",
";#eta;#phi;#delta_{d_{0}} [mm]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound, 50,-d_bound, d_bound);
181
182 d0deltacorrections_vs_etaphi =
new TH2D(
"d0CorrectionVsEtaPhi",
";#eta;#phi;#delta_{d_{0}} [mm]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
183
184 d0deltacorrections_vs_etaphi_err =
new TH2D(
"d0CorrectionVsEtaPhi_Err",
";#eta;#phi;#delta_{d_{0}}", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
185
186 d0delta =
new TH1D(
"Delta_d0",
";#delta_{d_{0}} [mm]", 100,-d_bound,d_bound);
187
188 d0delta_pos =
new TH1D(
"Delta_d0_Pos",
";#delta_{d_{0}} [mm]", 100,-d_bound,d_bound);
189
190 d0delta_neg =
new TH1D(
"Delta_d0_Neg",
";#delta_{d_{0}} [mm]", 100,-d_bound,d_bound);
191
192 d0delta_etaphi =
new TH1D(
"Delta_d0_etaphi",
";#delta_{d_{0}} [mm]", 100,-d_bound,d_bound);
193
194 d0delta_etaphi_pos =
new TH1D(
"Delta_d0_etaphi_Pos",
";#delta_{d_{0}} [mm]", 100,-d_bound,d_bound);
195
196 d0delta_etaphi_neg =
new TH1D(
"Delta_d0_etaphi_Neg",
";#delta_{d_{0}} [mm]", 100,-d_bound,d_bound);
197
198
199 delta_vs_etaphi =
new TH3F(
"DeltaPVsEtaPhi",
";#eta;#phi;#delta_{r}", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound, 100,-p_bound,p_bound);
200
201 deltacorrections_vs_etaphi =
new TH2D(
"PCorrectionVsEtaPhi",
";#eta;#phi;#delta_{r}", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
202
203 deltacorrections_vs_etaphi_err =
new TH2D(
"PCorrectionVsEtaPhi_Err",
";#eta;#phi;#delta_{r}", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
204
205
206 lambda_vs_etaphi =
new TH3F(
"LambdaVsEtaPhi",
";#eta;#phi;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound, 100,-pt_bound,pt_bound);
207
208 lambdacorrections_vs_etaphi =
new TH2D(
"LambdaCorrectionVsEtaPhi",
";#eta;#phi;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
209 lambdacorrections_vs_etaphi_err =
new TH2D(
"LambdaCorrectionVsEtaPhi_Err",
";#eta;#phi;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
210 lambdacorrections_vs_etaphi_RMS =
new TH2D(
"LambdaCorrectionVsEtaPhi_RMS",
";#eta;#phi;RMS #delta_{sagitta} [GeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
211
212
213 lambda_vs_eta =
new TH2F(
"LambdaVsEta",
";#eta;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, 100,-pt_bound,pt_bound);
214 lambda_vs_eta_pos =
new TH2F(
"LambdaVsEta_Pos",
";#eta;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, 100,-pt_bound,pt_bound);
215 lambda_vs_eta_neg =
new TH2F(
"LambdaVsEta_Neg",
";#eta;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, 100,-pt_bound,pt_bound);
216
217 lambdacorrections_vs_eta =
new TH1D(
"LambdaCorrectionVsEta",
";#eta;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound);
218
219 lambda =
new TH1D(
"Lambda",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
220 lambda_pos =
new TH1D(
"Lambda_Pos",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
221 lambda_neg =
new TH1D(
"Lambda_Neg",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
222
223 lambda_eta =
new TH1D(
"Lambda_eta",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
224 lambda_eta_pos =
new TH1D(
"Lambda_eta_Pos",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
225 lambda_eta_neg =
new TH1D(
"Lambda_eta_Neg",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
226
227 lambda_etaphi =
new TH1D(
"Lambda_etaphi",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
228 lambda_etaphi_pos =
new TH1D(
"Lambda_etaphi_Pos",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
229 lambda_etaphi_neg =
new TH1D(
"Lambda_etaphi_Neg",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
230
232
233 h_pt_truth =
new TH1D(
"Pt_Truth",
";p_{T} [GeV]",500,0,500);
234 h_pt_pos_truth =
new TH1D(
"Pt_Pos_Truth",
";p_{T} [GeV]",500,0,500);
235 h_pt_neg_truth =
new TH1D(
"Pt_Neg_Truth",
";p_{T} [GeV]",500,0,500);
236
237 delta_vs_etaphi_truth =
new TH3F(
"DeltaPVsEtaPhi_Truth",
";#eta;#phi;#delta_{r}", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound, 100,-p_bound,p_bound);
238 deltacorrections_vs_etaphi_truth =
new TH2D(
"PCorrectionVsEtaPhi_Truth",
";#eta;#phi;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
239 deltacorrections_vs_etaphi_truth_err =
new TH2D(
"PCorrectionVsEtaPhi_Truth_Err",
";#eta;#phi;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
240
241 lambda_vs_etaphi_truth =
new TH3F(
"LambdaVsEtaPhi_Truth",
";#eta;#phi;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound, 100,-pt_bound,pt_bound);
242 lambdacorrections_vs_etaphi_truth =
new TH2D(
"LambdaCorrectionVsEtaPhi_Truth",
";#eta;#phi;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
243 lambdacorrections_vs_etaphi_truth_err =
new TH2D(
"LambdaCorrectionVsEtaPhi_Truth_Err",
";#eta;#phi;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, fnPhiBins,-phi_bound,phi_bound);
244
245 lambda_vs_eta_truth =
new TH2F(
"LambdaVsEta_Truth",
";#eta;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, 100,-pt_bound,pt_bound);
247
248 truth_mom_bias_vs_eta =
new TH2F(
"TruthMomentumBiasVsEta",
";#eta;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, 100,-pt_bound,pt_bound);
250
251 truth_mass_bias_vs_eta =
new TH2F(
"TruthMassBiasVsEta",
";#eta;#delta_{sagitta} [TeV^{-1}]", fnEtaBins,-eta_bound,eta_bound, 100,-pt_bound,pt_bound);
253
254 lambda_truth =
new TH1D(
"Lambda_Truth",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
255 lambda_truth_pos =
new TH1D(
"Lambda_Truth_Pos",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
256 lambda_truth_neg =
new TH1D(
"Lambda_Truth_Neg",
";#delta_{sagitta} [TeV^{-1}]", 100,-pt_bound,pt_bound);
257
258 delta_phi_truth =
new TH1D(
"DeltaPhi_Truth",
";#phi_{Truth} - #phi_{Rec}", 100,-0.01,0.01);
259
260 delta_eta_truth =
new TH1D(
"DeltaEta_Truth",
";#eta_{Truth} - #eta_{Rec}", 100,-0.01,0.01);
261
262 delta_M2_vs_zpt_truth =
new TH2D(
"delta_M2_vs_zpt_truth",
";Z p_{T} [GeV]; #Delta (M^2)", 100,0,100, 100, -1.0, 1.0 );
263 delta_M2_vs_zpt =
new TH2D(
"delta_M2_vs_zpt",
";Z p_{T} [GeV]; #Delta (M^2)", 100,0,100, 100, -1.0, 1.0 );
264
265 delta_M2_vs_etaphi_pos =
new TProfile2D(
"delta_M2_vs_etaphi_pos",
";#eta;#phi; #Delta (M^2)", 20,-2.5,2.5, 20, -3.14, 3.14 );
266 delta_M2_vs_etaphi_neg =
new TProfile2D(
"delta_M2_vs_etaphi_neg",
";#eta;#phi; #Delta (M^2)", 20,-2.5,2.5, 20, -3.14, 3.14 );
267
268 }
269
270
271 h_QoverPt =
new TH2F(
"h_QoverPt",
"q/p_{T} whole ID", 2*fnPhiBins, -phi_bound, phi_bound, fnQoverPtBins, -1/pt_bound, 1/pt_bound);
272 h_QoverPt->GetXaxis()->SetTitle(
"#phi [rad]");
273 h_QoverPt->GetYaxis()->SetTitle(
"q/p_{T} [GeV^{-1}]");
274
275 h_QoverPt3D =
new TH3F(
"h_QoverPt3D",
"q/p_{T} whole ID",
276 fnEtaBins, -eta_bound, eta_bound,
277 2*fnPhiBins, -phi_bound, phi_bound,
278 fnQoverPtBins, -1/pt_bound, 1/pt_bound);
281 h_QoverPt3D->GetZaxis()->SetTitle(
"q/p_{T} [GeV^{-1}]");
282}
TH2 * lambdacorrections_vs_etaphi_truth_err
TH1 * truth_mom_biascorrections_vs_eta
TH2 * deltacorrections_vs_etaphi_err
TH2 * truth_mass_bias_vs_eta
TH1 * lambdacorrections_vs_eta
TH1 * truth_mass_biascorrections_vs_eta
TH2 * d0deltacorrections_vs_etaphi
TH2 * truth_mom_bias_vs_eta
TH2 * lambdacorrections_vs_etaphi_truth
TH2 * d0deltacorrections_vs_etaphi_err
TH2 * lambdacorrections_vs_etaphi_err
TProfile2D * delta_M2_vs_etaphi_neg
TH2 * lambdacorrections_vs_etaphi
TH3 * lambda_vs_etaphi_truth
TH2 * z0deltacorrections_vs_etaphi
TH2 * deltacorrections_vs_etaphi_truth_err
TProfile2D * delta_M2_vs_etaphi_pos
TH2 * lambda_vs_eta_truth
TH3 * delta_vs_etaphi_truth
TH2 * z0deltacorrections_vs_etaphi_err
TH2 * lambdacorrections_vs_etaphi_RMS
TH2 * delta_M2_vs_zpt_truth
TH1 * lambdacorrections_vs_eta_truth
TH2 * deltacorrections_vs_etaphi_truth
TH2 * deltacorrections_vs_etaphi
TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)