]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/SPECTRA/PiKaPr/TOF/pPb502/macros/CommonDefs.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / PiKaPr / TOF / pPb502 / macros / CommonDefs.C
CommitLineData
59e49925 1
2#ifndef COMMONDEFS
3#define COMMONDEFS
4
5#define PROTONLEAD 1
6#define LEADLEAD 0
7#define PROTONPROTON 0
8
9/* analysis dependent stuff */
10
11/***** p-Pb *****/
12#if PROTONLEAD
13
14Double_t tofReso = 80.;
15Double_t tofTail = 75.;
16
17Double_t scaletexpreso[5] = {1., 1., 1., 1., 1.};
18Double_t scaletimezerosigma = 1.;
19Double_t forcetimezeroineff = 0.;
20Double_t timezero_spread = 200.;
21
22Int_t acceptEventType = 0;
23Int_t centralityEstimator = 1;
24const Int_t NcentralityBins = 7;
25Double_t centralityBin[NcentralityBins + 1] = {0., 5., 10., 20., 40., 60., 80., 100.};
26
27Float_t rapidityShift = -0.465;
28Float_t rapidityMinCut = 0.0;
29Float_t rapidityMaxCut = 0.5;
30
31/* TZERO corrections */
32Double_t TZEROFILL_shift = 0.;
33Double_t TZEROA_shift = 0.;
34Double_t TZEROC_shift = 0.;
35Double_t TZEROTOF_shift = 0.;
36
37Double_t TZEROvertexCorr = 0.5;
38
39Double_t TZEROA_sigma = 1000.;//247.187;
40Double_t TZEROC_sigma = 1000.;//235.113;
41Double_t TZEROTOF_sigma = 1000.;//234.423;
42
43Double_t TZEROTOF_resoScaleFactor = 1.25;
44
45
46Int_t multcentColor[7] = {
47 kRed,
48 kPink+1,
49 kOrange+1,
50 kYellow+1,
51 kGreen+1,
52 kAzure+1,
53 kViolet+1,
54};
55
56/***** Pb-Pb *****/
57#elif LEADLEAD
58
59Float_t rapidityShift = 0.;
60Float_t rapidityMinCut = -0.5;
61Float_t rapidityMaxCut = 0.5;
62Float_t rapidityCut = 0.5;
63
64Int_t acceptEventType = 0;
65Int_t centralityEstimator = AliAnalysisEvent::kCentEst_V0M;
66const Int_t NcentralityBins = 10;
67Double_t centralityBin[NcentralityBins + 1] = {0., 5., 10., 20., 30., 40., 50., 60., 70., 80., 90.};
68
69/* TZERO corrections */
70Double_t TZEROFILL_shift = 0.;
71Double_t TZEROA_shift = 0.;
72Double_t TZEROC_shift = 0.;
73Double_t TZEROTOF_shift = 0.;
74
75Double_t TZEROvertexCorr = 0.5;
76
77Double_t TZEROA_sigma = 1000.;//247.187;
78Double_t TZEROC_sigma = 1000.;//235.113;
79Double_t TZEROTOF_sigma = 1000.;//234.423;
80
81Double_t TZEROTOF_resoScaleFactor = 1.25;
82
83
84Int_t multcentColor[10] = {
85 kRed,
86 kOrange+1,
87 kOrange,
88 kYellow,
89 kYellow+1,
90 kGreen,
91 kGreen+1,
92 kCyan+1,
93 kBlue,
94 kMagenta,
95 // kMagenta+1
96};
97
98/***** p-p *****/
99#elif PROTONPROTON /* LHC10d, run 126088 */
100
101Float_t rapidityShift = 0.;
102Float_t rapidityMinCut = -0.5;
103Float_t rapidityMaxCut = 0.5;
104Float_t rapidityCut = 0.5;
105
106Int_t acceptEventType = 1;
107Int_t centralityEstimator = 999;
108const Int_t NcentralityBins = 6;
109Double_t centralityBin[NcentralityBins + 1] = {0., 5., 10., 15., 20., 25., 100};
110
111/* TZERO corrections */
112Double_t TZEROFILL_shift = 0.;//-30.6174;
113Double_t TZEROA_shift = -6.5e6;// + -13.8783;
114Double_t TZEROC_shift = -6.5e6;// + -21.7581;
115Double_t TZEROTOF_shift = 0.;//-45.1779;
116
117Double_t TZEROvertexCorr = 0.5;
118
119Double_t TZEROA_sigma = 1000.;//247.187;
120Double_t TZEROC_sigma = 1000.;//235.113;
121Double_t TZEROTOF_sigma = 1000.;//234.423;
122
123Double_t TZEROA_resolution[NcentralityBins] = {86.4697,
124 81.6549,
125 79.0132,
126 76.5572,
127 74.8259,
128 73.3834};
129
130Double_t TZEROC_resolution[NcentralityBins] = {58.0423,
131 52.9241,
132 50.8822,
133 49.05,
134 48.6712,
135 46.5776};
136
137Double_t TZEROAND_resolution[NcentralityBins] = {48.383,
138 51.9983,
139 51.2704,
140 50.1974,
141 51.0198,
142 48.6588};
143
144Double_t TOFTZEROADIFF[NcentralityBins] = {-20.2311,
145 -19.539,
146 -18.8685,
147 -19.5327,
148 -18.4323,
149 -18.0336};
150
151Double_t TOFTZEROCDIFF[NcentralityBins] = {-16.0008,
152 -11.9249,
153 -9.29299,
154 -8.46063,
155 -8.1128,
156 -4.89226};
157
158Double_t TOFTZEROTOFDIFF[NcentralityBins] = {-11.9418,
159 -12.4526,
160 -14.0921,
161 -18.1132,
162 -17.5909,
163 -18.9787};
164
165Double_t TZEROTOF_resoScaleFactor = 1.25;
166
167Double_t TZEROFILL_sigma = 1000.;
168
169Int_t multcentColor[10] = {
170 kRed,
171 kOrange+1,
172 kOrange,
173 kYellow,
174 kYellow+1,
175 kGreen,
176 kGreen+1,
177 kCyan+1,
178 kBlue,
179 kMagenta,
180 // kMagenta+1
181};
182#endif
183
184/* commom binning and similar business */
185
186const Char_t *t0FillOnlineFileName = "T0FillOnline.139465.extended.root";
187Double_t t0Fill_offset = -1.26416e+04;
188
189//const Char_t *enabledChannelsFileName = "enabledChannels.root";
190const Char_t *enabledChannelsFileName = NULL;
191
192const Int_t NptBins = 46;
193Double_t ptBin[NptBins + 1] = {0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0, 4.2, 4.4, 4.6, 4.8, 5.0};
194
195const Int_t NpBins = 46;
196Double_t pBin[NpBins + 1] = {0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0, 4.2, 4.4, 4.6, 4.8, 5.0};
197
198const Int_t NmtBins = 46;
199Double_t mtBin[NmtBins + 1] = {0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0, 4.2, 4.4, 4.6, 4.8, 5.0};
200
201Int_t particleColor[5] = {1, 1, 4, 8, 2};
202Int_t chargeMarker[2] = {20, 25};
203
204const Char_t *partChargeName[5][2] = {"e^{+}", "e^{-}", "#mu^{+}", "#mu^{-}", "#pi^{+}", "#pi^{-}", "K^{+}", "K^{-}", "p", "#bar{p}"};
205
206const Double_t kEpsilon = 0.001;
207
208enum ECharge_t {
209 kPositive,
210 kNegative,
211 kNCharges
212};
213const Char_t *chargeName[kNCharges] = {
214 "positive",
215 "negative"
216};
217
218const Int_t NetaBins = 10;
219Double_t etaMin = -1.;
220Double_t etaMax = 1.;
221Double_t etaStep = (etaMax - etaMin) / NetaBins;
222Double_t etaBin[NetaBins + 1]; /* computed at run-time */
223
224const Int_t NyBins = 20;
225Double_t yMin = -1.;
226Double_t yMax = 1.;
227Double_t yStep = (yMax - yMin) / NyBins;
228Double_t yBin[NyBins + 1]; /* computed at run-time */
229
230const Int_t NphiBins = 10;
231Double_t phiMin = 0.;
232Double_t phiMax = 2. * TMath::Pi();
233Double_t phiStep = (phiMax - phiMin) / NphiBins;
234Double_t phiBin[NphiBins + 1]; /* computed at run-time */
235
236const Int_t NptsubBins = 4;
237Double_t ptsubBin[NptsubBins + 1] = {0.2, 0.5, 1.0, 1.5, 5.0};
238Int_t ptsubBinMin[NptsubBins] = {0, 6, 16, 21};
239Int_t ptsubBinMax[NptsubBins] = {5, 15, 20, 45};
240
241const Int_t NdcaBins = 2000;
242Double_t dcaBin[NdcaBins + 1];
243Double_t dcaMin = -5., dcaMax = 5., dcaStep = (dcaMax - dcaMin) / NdcaBins;
244
245
246
247#endif