ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/IPHCalignment2/analysis/histoAlgo.cpp
(Generate patch)

Comparing UserCode/IPHCalignment2/analysis/histoAlgo.cpp (file contents):
Revision 1.1 by econte, Fri Nov 25 16:33:02 2011 UTC vs.
Revision 1.6 by cgoetzma, Wed Nov 30 08:31:34 2011 UTC

# Line 6 | Line 6
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(),100,0.,500.);
15 >  name = "pt (GeV) at generator";
16 >  ptGen_histo   = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,0.,160.);
17 >  name = "pseudo-rapidity at generator";
18 >  etaGen_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,-3.,+3.);
19 >  name = "azimutal angle (rad) at generator";
20 >  phiGen_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,-3.6,+3.6);
21 >  name = "#mu^{+}/#mu^{-} invariant mass (GeV) at generator";
22 >  mzGen_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str() ,100,65.,115.);
23 >  name = "p (GeV)";
24 >  p_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,0.,500.);
25 >  name = "pt (GeV)";
26 >  pt_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,0.,160.);
27 >  name = "pseudo-rapidity";
28 >  eta_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,-3.,+3.);
29 >  name = "azimutal angle (rad)";
30 >  phi_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,-3.6,+3.6);
31 >  name = "#mu^{+}/#mu^{-} invariant mass (GeV)";
32 >  mz_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,65.,115.);
33 >
34 >  name = "p resolution";
35 >  rp_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,-0.2,+0.2);
36 >
37 >  name = "pT resolution";
38 >  rpt_histo   = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,-0.2,+0.2);
39 >
40 >  name = "pseudo-rapidity resolution";
41 >  reta_histo   = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,-0.2,+0.2);
42 >  name = "azimutal angle resolution";
43 >  rphi_histo   = new TH1D((name+"_"+algoName).c_str(),name.c_str(),100,-0.2,+0.2);
44 >  name = "Z mass resolution";
45 >  rmz_histo    = new TH1D((name+"_"+algoName).c_str(),name.c_str() ,100,-0.2,+0.2);
46 >
47 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines