6 |
|
|
7 |
|
#define FITMODE 1 |
8 |
|
|
9 |
+ |
|
10 |
|
void histoAlgo::initialize() |
11 |
|
{ |
12 |
< |
|
13 |
< |
pGen_histo = new TH1D("p (GeV) at generator","p (GeV) at generator",200,0.,500.); |
14 |
< |
ptGen_histo = new TH1D("pt (GeV) at generator","pt (GeV) at generator",200,0.,160.); |
15 |
< |
etaGen_histo = new TH1D("pseudo-rapidity at generator","pseudo-rapidity at generator",200,-3.,+3.); |
16 |
< |
phiGen_histo = new TH1D("azimutal angle (rad) at generator","azimutal angle (rad) at generator",200,-3.6,+3.6); |
17 |
< |
mzGen_histo = new TH1D("#mu^{#pm} invariant mass (GeV) at generator","#mu^{#pm} invariant mass (GeV) at generator" ,200,65.,115.); |
18 |
< |
|
19 |
< |
p_histo = new TH1D("p (GeV)","p (GeV)",200,0.,500.); |
20 |
< |
pt_histo = new TH1D("pt (GeV)","pt (GeV)",200,0.,160.); |
21 |
< |
eta_histo = new TH1D("pseudo-rapidity","pseudo-rapidity",200,-3.,+3.); |
22 |
< |
phi_histo = new TH1D("azimutal angle (rad)","azimutal angle (rad)",200,-3.6,+3.6); |
23 |
< |
mz_histo = new TH1D("#mu^{#pm} invariant mass (GeV)","#mu^{#pm} invariant mass (GeV)" ,200,65.,115.); |
24 |
< |
|
25 |
< |
rp_histo = new TH1D("p resolution","p resolution",200,-0.2,+0.2); |
26 |
< |
rpt_histo = new TH1D("pT resolution","pT resolution",200,-0.2,+0.2); |
27 |
< |
reta_histo = new TH1D("pseudo-rapidity resolution","pseudo-rapidity resolution",200,-0.2,+0.2); |
28 |
< |
rphi_histo = new TH1D("azimutal angle resolution","azimutal angle resolution",200,-0.2,+0.2); |
29 |
< |
rmz_histo = new TH1D("#mu^{#pm} invariant mass (GeV)","#mu^{#pm} invariant mass (GeV)" ,200,-0.2,+0.2); |
30 |
< |
|
31 |
< |
} |
12 |
> |
std::string name; |
13 |
> |
name = "p (GeV) at generator"; |
14 |
> |
pGen_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,0.,500.); |
15 |
> |
name = "pt (GeV) at generator"; |
16 |
> |
ptGen_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,0.,160.); |
17 |
> |
name = "pseudo-rapidity at generator"; |
18 |
> |
etaGen_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,-3.,+3.); |
19 |
> |
name = "azimutal angle (rad) at generator"; |
20 |
> |
phiGen_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,-3.6,+3.6); |
21 |
> |
name = "#mu^{#pm} invariant mass (GeV) at generator"; |
22 |
> |
mzGen_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str() ,200,65.,115.); |
23 |
> |
name = "p (GeV)"; |
24 |
> |
p_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,0.,500.); |
25 |
> |
name = "pt (GeV)"; |
26 |
> |
pt_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,0.,160.); |
27 |
> |
name = "pseudo-rapidity"; |
28 |
> |
eta_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,-3.,+3.); |
29 |
> |
name = "azimutal angle (rad)"; |
30 |
> |
phi_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,-3.6,+3.6); |
31 |
> |
name = "#mu^{#pm} invariant mass (GeV)"; |
32 |
> |
mz_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,65.,115.); |
33 |
> |
|
34 |
> |
name = "p resolution"; |
35 |
> |
rp_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,-0.2,+0.2); |
36 |
> |
|
37 |
> |
name = "pT resolution"; |
38 |
> |
rpt_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,-0.2,+0.2); |
39 |
> |
|
40 |
> |
name = "pseudo-rapidity resolution"; |
41 |
> |
reta_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,-0.2,+0.2); |
42 |
> |
name = "azimutal angle resolution"; |
43 |
> |
rphi_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str(),200,-0.2,+0.2); |
44 |
> |
name = "Z mass resolution"; |
45 |
> |
rmz_histo = new TH1D((name+"_"+algoName).c_str(),name.c_str() ,200,-0.2,+0.2); |
46 |
> |
|
47 |
> |
} |