]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/SPECTRA/ChargedHadrons/dNdPt/macros/plots/runMacro.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / ChargedHadrons / dNdPt / macros / plots / runMacro.C
1 //------------------------------------------------------------------------------
2 // runMacro.C
3 //
4 // steering macro to create figures for paper 3
5 // settings are in settings.C
6 //------------------------------------------------------------------------------
7
8
9 {
10 //
11 // Init
12 //
13 using namespace std;
14 gROOT->Reset();
15 gROOT->SetStyle("Plain");
16
17 //
18 // load Settings & define Variables
19 //
20 gROOT->LoadMacro("settings.C");
21 gROOT->LoadMacro("defineVariables.C");
22 cout << "---------------------------------------------------------" << endl;
23 cout << "using fit function (nsd) " << endl;
24 cout << fitNsd->GetExpFormula() << endl;
25 cout << "---------------------------------------------------------" << endl;
26
27
28 //
29 // graphics and plot options
30 //
31 gStyle->SetTextFont(textFont);
32 gStyle->SetTitleFont(titleFont);
33 gStyle->SetTitleFont(titleFont,"xy");
34 gStyle->SetLabelFont(labelFont,"xyz");
35 gStyle->SetLabelSize(labelSize);
36 gStyle->SetTitleSize(titleSize);
37 gStyle->SetTitleFontSize(titleFontSize);
38 gStyle->SetMarkerSize(markerSize);
39 gStyle->SetHatchesSpacing(0.8);
40 gStyle->SetHatchesLineWidth(2.0);
41
42 //
43 // load macros
44 //
45 gROOT->LoadMacro("divide.C");
46 gROOT->LoadMacro("setAttrib.C");
47 gROOT->LoadMacro("logoPrelim.C");
48
49 gROOT->LoadMacro("readAliceNsd.C");
50 gROOT->LoadMacro("readAliceInel.C");
51 gROOT->LoadMacro("readAliceYield.C");
52 gROOT->LoadMacro("readAtlas.C");
53 gROOT->LoadMacro("readCms.C");
54 gROOT->LoadMacro("readUa1.C");
55 gROOT->LoadMacro("readPhojet.C");
56 gROOT->LoadMacro("readPythia109.C");
57 gROOT->LoadMacro("readPythia306.C");
58 gROOT->LoadMacro("readPythia320.C");
59
60 gROOT->LoadMacro("makePlotsAlice3.C");
61 gROOT->LoadMacro("makeCompNSD.C");
62 gROOT->LoadMacro("makeCompYield.C");
63 gROOT->LoadMacro("makeCompInel.C");
64
65 gROOT->LoadMacro("storeOutput.C");
66
67
68 //
69 // read data
70 //
71 readAliceNsd();
72 readAliceInel();
73 readAliceYield();
74
75 readAtlas();
76 readCms();
77 readUa1();
78 readPhojet();
79 readPythia109();
80 readPythia306();
81 readPythia320();
82
83 //
84 // pt range to plot
85 //
86 Double_t minPt = 0.1;
87 Double_t maxPt = 10;
88
89 //
90 // generate plots & store output
91 //
92 makePlotsAlice3(); // figure 2 in paper
93 makeCompYield(); // figure 3 (b)
94 makeCompInel(); // figure 5
95
96 // different pt range for atlas comparison
97 maxPt = 20; 
98 makeCompNSD(); // figure 3 (a)
99
100 storeOutput();
101
102
103 }