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