]>
Commit | Line | Data |
---|---|---|
0233abe6 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
27de2dfb | 16 | /* $Id$ */ |
17 | ||
0233abe6 | 18 | ///////////////////////////////////////////////////////////// |
19 | // | |
20 | // Class to handle systematic errors for charm hadrons | |
21 | // | |
22 | // Usage: | |
5541b811 | 23 | // AliHFSystEff syst; // DECAY = 1 for D0, 2, for D+, 3 for D* |
24 | // syst.SetRunNumber(YEAR); // YEAR = two last numbers of the year (is 10 for 2010) | |
25 | // syst.SetCollisionType(TYPE); // TYPE = 0 is pp, 1 is PbPb | |
26 | // syst.SetCentrality(CENT); // CENT is centrality, 0100 for MB, 020 (4080) for 0-20 (40-80) CC... | |
27 | // syst.Init(DECAY); // DECAY = 1 for D0, 2, for D+, 3 for D* | |
0233abe6 | 28 | // syst.DrawErrors(); // to see a plot of the error contributions |
29 | // syst.GetTotalSystErr(pt); // to get the total err at pt | |
30 | // | |
31 | // Author: A.Dainese, andrea.dainese@pd.infn.it | |
32 | ///////////////////////////////////////////////////////////// | |
33 | ||
34 | #include <TStyle.h> | |
35 | #include <TGraphAsymmErrors.h> | |
36 | #include <TMath.h> | |
37 | #include <TCanvas.h> | |
38 | #include <TH2F.h> | |
39 | #include <TLegend.h> | |
5ad8ad40 | 40 | #include <TColor.h> |
0233abe6 | 41 | |
5541b811 | 42 | #include "AliLog.h" |
0233abe6 | 43 | #include "AliHFSystErr.h" |
44 | ||
45 | ||
46 | ClassImp(AliHFSystErr) | |
47 | ||
48 | //-------------------------------------------------------------------------- | |
49 | AliHFSystErr::AliHFSystErr(const Char_t* name, const Char_t* title) : | |
50 | TNamed(name,title), | |
51 | fNorm(0), | |
52 | fRawYield(0), | |
53 | fTrackingEff(0), | |
54 | fBR(0), | |
55 | fCutsEff(0), | |
56 | fPIDEff(0), | |
57 | fMCPtShape(0), | |
5541b811 | 58 | fPartAntipart(0), |
59 | fRunNumber(10), | |
60 | fCollisionType(0), | |
a8c3295d | 61 | fCentralityClass("0100"), |
62 | fIsLowEnergy(false) | |
0233abe6 | 63 | { |
64 | // | |
65 | // Default Constructor | |
66 | // | |
67 | } | |
5541b811 | 68 | |
0233abe6 | 69 | //-------------------------------------------------------------------------- |
5541b811 | 70 | AliHFSystErr::~AliHFSystErr() { |
71 | // | |
72 | // Default Destructor | |
0233abe6 | 73 | // |
a8c3295d | 74 | /* |
5541b811 | 75 | |
76 | if(fNorm) { delete fNorm; fNorm=0; } | |
77 | if(fRawYield) { delete fRawYield; fRawYield=0; } | |
78 | if(fTrackingEff) { delete fTrackingEff; fTrackingEff=0; } | |
79 | if(fBR) { delete fBR; fBR=0; } | |
80 | if(fCutsEff) { delete fCutsEff; fCutsEff=0; } | |
81 | if(fPIDEff) { delete fPIDEff; fPIDEff=0; } | |
82 | if(fMCPtShape) { delete fMCPtShape; fMCPtShape=0; } | |
83 | if(fPartAntipart) { delete fPartAntipart; fPartAntipart=0; } | |
a8c3295d | 84 | */ |
5541b811 | 85 | } |
86 | ||
87 | //-------------------------------------------------------------------------- | |
88 | void AliHFSystErr::Init(Int_t decay){ | |
89 | // | |
90 | // Variables/histos initialization | |
0233abe6 | 91 | // |
92 | ||
a8c3295d | 93 | if (fRunNumber!=10 && fIsLowEnergy==false) { |
94 | AliError("Only settings for 2010 and the low energy runs are implemented so far"); | |
5541b811 | 95 | } |
aebba8df | 96 | if (fCentralityClass!="020" && fCentralityClass!="4080" && fCentralityClass!="0100"){ |
5541b811 | 97 | AliError("Only settings for MB2010 are implemented so far"); |
98 | } | |
99 | ||
0233abe6 | 100 | switch(decay) { |
101 | case 1: // D0->Kpi | |
a8c3295d | 102 | if (fCollisionType==0) { |
103 | if (fIsLowEnergy) InitD0toKpi2010ppLowEn(); | |
104 | else InitD0toKpi2010pp(); | |
105 | } else if (fCollisionType==1) { | |
aebba8df | 106 | if (fCentralityClass=="020") InitD0toKpi2010PbPb020(); |
107 | else if (fCentralityClass=="4080") InitD0toKpi2010PbPb4080(); | |
5541b811 | 108 | else AliError("Not yet implemented"); |
109 | } | |
a8c3295d | 110 | // else if (fCollisionType==2) InitD0toKpi2010ppLowEn(); |
0233abe6 | 111 | break; |
112 | case 2: // D+->Kpipi | |
a8c3295d | 113 | if (fCollisionType==0) { |
114 | if (fIsLowEnergy) InitDplustoKpipi2010ppLowEn(); | |
115 | else InitDplustoKpipi2010pp(); | |
116 | } else if (fCollisionType==1) { | |
aebba8df | 117 | if (fCentralityClass=="020") InitDplustoKpipi2010PbPb020(); |
118 | else if (fCentralityClass=="4080") InitDplustoKpipi2010PbPb4080(); | |
5541b811 | 119 | else AliError("Not yet implemented"); |
120 | } | |
0233abe6 | 121 | break; |
122 | case 3: // D*->D0pi | |
fa2be30c | 123 | if (fCollisionType==0) { |
124 | if(fIsLowEnergy) InitDstartoD0pi2010ppLowEn(); | |
125 | else InitDstartoD0pi2010pp(); | |
126 | }else if (fCollisionType==1) { | |
127 | if (fCentralityClass=="020") InitDstartoD0pi2010PbPb020(); | |
128 | if (fCentralityClass=="2040") InitDstartoD0pi2010PbPb2040(); | |
129 | if (fCentralityClass=="4080") InitDstartoD0pi2010PbPb4080(); | |
130 | if (fCentralityClass!="4080" && fCentralityClass!="2040" && fCentralityClass!="020") AliError("Not yet implemented"); | |
5541b811 | 131 | } |
0233abe6 | 132 | break; |
66247513 | 133 | case 4: // D+s->KKpi |
134 | if (fCollisionType==0) InitDstoKKpi2010pp(); | |
135 | else AliError("Not yet implemented"); | |
136 | break; | |
137 | ||
0233abe6 | 138 | default: |
139 | printf("Invalid decay type: %d\n",decay); | |
140 | break; | |
141 | } | |
142 | ||
0233abe6 | 143 | } |
5541b811 | 144 | |
0233abe6 | 145 | //-------------------------------------------------------------------------- |
5541b811 | 146 | void AliHFSystErr::InitD0toKpi2010pp() { |
147 | // | |
148 | // D0->Kpi syst errors. Responsible: A. Rossi | |
149 | // 2010 pp sample | |
0233abe6 | 150 | // |
151 | ||
5541b811 | 152 | // Normalization |
f1d72175 | 153 | fNorm = new TH1F("fNorm","fNorm",24,0,24); |
f8bc42d3 | 154 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.04); // 4% error on sigmaV0and |
5541b811 | 155 | |
156 | // Branching ratio | |
f1d72175 | 157 | fBR = new TH1F("fBR","fBR",24,0,24); |
158 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.012); // 1.2% PDG2010 | |
5541b811 | 159 | |
160 | // Tracking efficiency | |
f1d72175 | 161 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24); |
f8bc42d3 | 162 | for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.08); // 8% (4% per track) |
5541b811 | 163 | |
164 | // Raw yield extraction | |
f1d72175 | 165 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); |
5541b811 | 166 | fRawYield->SetBinContent(1,1); |
d2e5959f | 167 | fRawYield->SetBinContent(2,0.22); |
168 | fRawYield->SetBinContent(3,0.1); | |
169 | for(Int_t i=4;i<=7;i++) fRawYield->SetBinContent(i,0.04); | |
170 | for(Int_t i=8;i<=12;i++) fRawYield->SetBinContent(i,0.07); | |
f1d72175 | 171 | for(Int_t i=13;i<=16;i++) fRawYield->SetBinContent(i,0.10); |
172 | for(Int_t i=17;i<=24;i++) fRawYield->SetBinContent(i,1); | |
0233abe6 | 173 | |
5541b811 | 174 | // Cuts efficiency (from cuts variation) |
f1d72175 | 175 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); |
176 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
5541b811 | 177 | |
178 | // PID efficiency (from PID/noPID) | |
f1d72175 | 179 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); |
180 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.03); // 3% | |
dc80fe6b | 181 | fPIDEff->SetBinContent(2,0.05); // 5% |
5541b811 | 182 | |
183 | // MC dN/dpt | |
f1d72175 | 184 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); |
578bfbba | 185 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0); |
186 | fMCPtShape->SetBinContent(1,0.03); | |
187 | fMCPtShape->SetBinContent(2,0.03); | |
5541b811 | 188 | |
189 | // particle-antiparticle | |
f1d72175 | 190 | // fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",24,0,24); |
191 | // fPartAntipart->SetBinContent(1,1); | |
192 | // for(Int_t i=2;i<=24;i++) fPartAntipart->SetBinContent(i,0.05); | |
5541b811 | 193 | |
194 | return; | |
0233abe6 | 195 | } |
196 | //-------------------------------------------------------------------------- | |
5541b811 | 197 | void AliHFSystErr::InitD0toKpi2010PbPb020() { |
0233abe6 | 198 | // |
aebba8df | 199 | // D0->Kpi syst errors. Responsible: A. Rossi |
5541b811 | 200 | // 2010 PbPb sample, 0-20 CC |
0233abe6 | 201 | // |
5541b811 | 202 | |
203 | // Normalization | |
204 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
205 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
206 | ||
207 | // Branching ratio | |
208 | fBR = new TH1F("fBR","fBR",20,0,20); | |
209 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.012); // 1.2% PDG2010 | |
210 | ||
211 | // Tracking efficiency | |
212 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
6c388dee | 213 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.08);//0.05+0.005*(Float_t)i); |
5541b811 | 214 | |
215 | // Raw yield extraction | |
216 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
217 | fRawYield->SetBinContent(1,0); | |
218 | fRawYield->SetBinContent(2,0); | |
6c388dee | 219 | fRawYield->SetBinContent(3,0.08); |
220 | for(Int_t i=4;i<=12;i++) fRawYield->SetBinContent(i,0.06); | |
221 | for(Int_t i=13;i<=16;i++) fRawYield->SetBinContent(i,0.10); | |
5541b811 | 222 | |
223 | // Cuts efficiency (from cuts variation) | |
224 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
aebba8df | 225 | fCutsEff->SetBinContent(1,0.); |
226 | fCutsEff->SetBinContent(2,0.); | |
cc4bb301 | 227 | fCutsEff->SetBinContent(3,0.13); |
228 | fCutsEff->SetBinContent(4,0.11); | |
229 | for(Int_t i=5;i<=16;i++) fCutsEff->SetBinContent(i,0.10); | |
6c388dee | 230 | for(Int_t i=17;i<=20;i++) fCutsEff->SetBinContent(i,0.); |
5541b811 | 231 | |
232 | // PID efficiency (from PID/noPID) | |
233 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
6c388dee | 234 | for(Int_t i=3;i<=16;i++) fPIDEff->SetBinContent(i,0.05); |
5541b811 | 235 | |
236 | // MC dN/dpt | |
237 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
cc4bb301 | 238 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0.01); |
239 | fMCPtShape->SetBinContent(3,0.04); | |
240 | fMCPtShape->SetBinContent(4,0.02); | |
578bfbba | 241 | |
6c388dee | 242 | // // particle-antiparticle |
243 | // fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
244 | // for(Int_t i=3;i<=12;i++) fPartAntipart->SetBinContent(i,0.05); | |
245 | // fPartAntipart->SetBinContent(3,0.10); | |
246 | // fPartAntipart->SetBinContent(4,0.10); | |
247 | // fPartAntipart->SetBinContent(7,0.10); | |
248 | // fPartAntipart->SetBinContent(8,0.10); | |
0233abe6 | 249 | |
5541b811 | 250 | return; |
251 | } | |
252 | //-------------------------------------------------------------------------- | |
253 | void AliHFSystErr::InitD0toKpi2010PbPb4080() { | |
254 | // | |
aebba8df | 255 | // D0->Kpi syst errors. Responsible: A. Rossi |
5541b811 | 256 | // 2010 PbPb sample, 40-80 CC |
257 | // | |
258 | ||
0233abe6 | 259 | // Normalization |
260 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
844405bc | 261 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and |
0233abe6 | 262 | |
263 | // Branching ratio | |
264 | fBR = new TH1F("fBR","fBR",20,0,20); | |
844405bc | 265 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.012); // 1.2% PDG2010 |
0233abe6 | 266 | |
aebba8df | 267 | // Tracking efficiency |
268 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
6c388dee | 269 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.08);//0.5*(0.05+0.005*(Float_t)i)); |
aebba8df | 270 | |
271 | ||
0233abe6 | 272 | // Raw yield extraction |
273 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
5541b811 | 274 | fRawYield->SetBinContent(1,0); |
275 | fRawYield->SetBinContent(2,0); | |
6c388dee | 276 | for(Int_t i=3;i<=16;i++) fRawYield->SetBinContent(i,0.05); |
666cf569 | 277 | //for(Int_t i=13;i<=20;i++) fRawYield->SetBinContent(i,0); |
0233abe6 | 278 | |
279 | // Cuts efficiency (from cuts variation) | |
280 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
aebba8df | 281 | fCutsEff->SetBinContent(1,0.); |
282 | fCutsEff->SetBinContent(2,0.); | |
cc4bb301 | 283 | fCutsEff->SetBinContent(3,0.13); |
284 | fCutsEff->SetBinContent(4,0.11); | |
285 | for(Int_t i=5;i<=16;i++) fCutsEff->SetBinContent(i,0.10); | |
6c388dee | 286 | for(Int_t i=17;i<=20;i++) fCutsEff->SetBinContent(i,0.); |
0233abe6 | 287 | |
288 | // PID efficiency (from PID/noPID) | |
289 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
6c388dee | 290 | // for(Int_t i=3;i<=6;i++) fPIDEff->SetBinContent(i,0.10); |
291 | // for(Int_t i=7;i<=16;i++) fPIDEff->SetBinContent(i,0.05); | |
292 | for(Int_t i=3;i<=16;i++) fPIDEff->SetBinContent(i,0.05); | |
0233abe6 | 293 | |
294 | // MC dN/dpt | |
295 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
cc4bb301 | 296 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0.01); |
297 | // fMCPtShape->SetBinContent(3,0.04); Not set for peripherals (Raa Vs pt is flat) | |
298 | // fMCPtShape->SetBinContent(4,0.02); | |
299 | for(Int_t i=13;i<=16;i++) fMCPtShape->SetBinContent(i,0.03); | |
300 | ||
301 | // // particle-antiparticle | |
302 | // fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
303 | // for(Int_t i=3;i<=12;i++) fPartAntipart->SetBinContent(i,0.05); | |
0233abe6 | 304 | |
305 | return; | |
306 | } | |
a8c3295d | 307 | |
308 | //-------------------------------------------------------------------------- | |
309 | void AliHFSystErr::InitD0toKpi2010ppLowEn() { | |
310 | // | |
311 | // D0->Kpi syst errors. Low energy run | |
312 | // 2011 2.76 TeV pp sample | |
313 | // | |
314 | AliInfo(" Settings for D0 --> K pi, p-p collisions at 2.76 TeV"); | |
315 | ||
316 | // Normalization | |
317 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
f9a85c82 | 318 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.031); // 4% error on sigmaV0and |
a8c3295d | 319 | |
320 | // Branching ratio | |
321 | fBR = new TH1F("fBR","fBR",20,0,20); | |
322 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.012); // 1.2% PDG2010 | |
323 | ||
324 | // Tracking efficiency | |
325 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
f9a85c82 | 326 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.12); //10% (5% per track) |
a8c3295d | 327 | |
328 | // Raw yield extraction | |
329 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
330 | fRawYield->SetBinContent(1,1); | |
f9a85c82 | 331 | for(Int_t i=1;i<=20;i++) fRawYield->SetBinContent(i,0.15); |
a8c3295d | 332 | |
333 | // Cuts efficiency (from cuts variation) | |
334 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
6c388dee | 335 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.10); // 10% |
f9a85c82 | 336 | fCutsEff->SetBinContent(2,0.20); |
337 | for(Int_t i=7;i<=20;i++) fCutsEff->SetBinContent(i,0.15); // 10% | |
338 | ||
a8c3295d | 339 | |
340 | // PID efficiency (from PID/noPID) | |
341 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
f9a85c82 | 342 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.15); // 10% |
343 | // fPIDEff->SetBinContent(2,0.20); | |
344 | for(Int_t i=7;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 10% | |
a8c3295d | 345 | |
346 | // MC dN/dpt | |
347 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
578bfbba | 348 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0); |
f9a85c82 | 349 | // fMCPtShape->SetBinContent(1,0.03); |
350 | // fMCPtShape->SetBinContent(2,0.03); | |
a8c3295d | 351 | |
f9a85c82 | 352 | // // particle-antiparticle |
353 | // fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
354 | // fPartAntipart->SetBinContent(1,1); | |
355 | // fPartAntipart->SetBinContent(2,1); | |
356 | // for(Int_t i=3;i<=6;i++) fPartAntipart->SetBinContent(i,0.08); | |
357 | // for(Int_t i=1;i<=20;i++) fPartAntipart->SetBinContent(i,0.); | |
a8c3295d | 358 | |
359 | return; | |
360 | } | |
361 | ||
0233abe6 | 362 | //-------------------------------------------------------------------------- |
5541b811 | 363 | void AliHFSystErr::InitDplustoKpipi2010pp() { |
0233abe6 | 364 | // |
365 | // D+->Kpipi syst errors. Responsible: R. Bala | |
5541b811 | 366 | // 2010 pp sample |
0233abe6 | 367 | // |
368 | ||
1f91ef56 | 369 | |
370 | // Normalization | |
371 | fNorm = new TH1F("fNorm","fNorm",24,0,24); | |
f8bc42d3 | 372 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.04); // 4% error on sigmaV0and |
626bcf57 | 373 | |
374 | // Branching ratio | |
1f91ef56 | 375 | fBR = new TH1F("fBR","fBR",24,0,24); |
f7c8a2f1 | 376 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.021); // 2.1% PDG2010 |
626bcf57 | 377 | |
378 | // Tracking efficiency | |
1f91ef56 | 379 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24); |
f8bc42d3 | 380 | for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track) |
626bcf57 | 381 | |
382 | ||
383 | // Raw yield extraction | |
1f91ef56 | 384 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); |
d2e5959f | 385 | fRawYield->SetBinContent(1,1); |
1f91ef56 | 386 | fRawYield->SetBinContent(2,0.25); |
387 | fRawYield->SetBinContent(3,0.25); | |
d2e5959f | 388 | fRawYield->SetBinContent(4,0.20); |
1f91ef56 | 389 | fRawYield->SetBinContent(5,0.09); |
390 | fRawYield->SetBinContent(6,0.09); | |
d2e5959f | 391 | for(Int_t i=7;i<=12;i++) fRawYield->SetBinContent(i,0.05); |
392 | for(Int_t i=12;i<=24;i++) fRawYield->SetBinContent(i,0.10); | |
1f91ef56 | 393 | |
626bcf57 | 394 | // Cuts efficiency (from cuts variation) |
1f91ef56 | 395 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); |
396 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
626bcf57 | 397 | |
398 | // PID efficiency (from PID/noPID) | |
1f91ef56 | 399 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); |
400 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.05); // 5% | |
401 | fPIDEff->SetBinContent(1,0.15); // 15% | |
402 | fPIDEff->SetBinContent(2,0.15); // 15% | |
403 | fPIDEff->SetBinContent(3,0.15); // 15% | |
404 | fPIDEff->SetBinContent(4,0.15); // 15% | |
405 | for(Int_t i=12;i<=16;i++) fPIDEff->SetBinContent(i,0.10); // 5% | |
406 | ||
407 | // MC dN/dpt | |
408 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
409 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0); | |
578bfbba | 410 | fMCPtShape->SetBinContent(1,0.03); |
411 | fMCPtShape->SetBinContent(2,0.03); | |
626bcf57 | 412 | |
413 | ||
414 | // particle-antiparticle | |
415 | /* | |
416 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
417 | fPartAntipart->SetBinContent(1,1); | |
418 | fPartAntipart->SetBinContent(2,1); | |
419 | fPartAntipart->SetBinContent(3,0.12); | |
420 | for(Int_t i=4;i<=20;i++) fPartAntipart->SetBinContent(i,0.05); //5 to 12% | |
421 | */ | |
0233abe6 | 422 | return; |
423 | } | |
1f91ef56 | 424 | |
66247513 | 425 | //-------------------------------------------------------------------------- |
426 | void AliHFSystErr::InitDstoKKpi2010pp() { | |
427 | // | |
428 | // D+s->KKpi syst errors. Responsible: G.M. Innocenti | |
429 | // 2010 pp sample | |
430 | // | |
431 | ||
432 | ||
433 | // Normalization | |
434 | fNorm = new TH1F("fNorm","fNorm",12,0,12); | |
435 | for(Int_t i=1;i<=12;i++) fNorm->SetBinContent(i,0.07); // 7% error on sigmaV0and | |
436 | ||
437 | // Branching ratio | |
438 | fBR = new TH1F("fBR","fBR",12,0,12); | |
439 | for(Int_t i=1;i<=12;i++) fBR->SetBinContent(i,0.05); // 5% PDG2010 | |
440 | ||
441 | // Tracking efficiency | |
442 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",12,0,12); | |
443 | for(Int_t i=1;i<=12;i++) fTrackingEff->SetBinContent(i,0.03); // 3% (1% per track) | |
444 | ||
445 | ||
446 | // Raw yield extraction | |
447 | fRawYield = new TH1F("fRawYield","fRawYield",12,0,12); | |
448 | fRawYield->SetBinContent(1,1); | |
449 | fRawYield->SetBinContent(2,1); | |
450 | fRawYield->SetBinContent(3,0.20); | |
451 | fRawYield->SetBinContent(4,0.20); | |
452 | fRawYield->SetBinContent(5,0.15); | |
453 | fRawYield->SetBinContent(6,0.15); | |
454 | fRawYield->SetBinContent(7,0.15); | |
455 | fRawYield->SetBinContent(8,0.15); | |
456 | fRawYield->SetBinContent(9,0.20); | |
457 | fRawYield->SetBinContent(10,0.20); | |
458 | fRawYield->SetBinContent(11,0.20); | |
459 | fRawYield->SetBinContent(12,0.20); | |
460 | ||
461 | // Cuts efficiency (from cuts variation) | |
462 | fCutsEff = new TH1F("fCutsEff","fCutsEff",12,0,12); | |
463 | for(Int_t i=1;i<=12;i++) fCutsEff->SetBinContent(i,0.15); // 15% | |
464 | ||
465 | // PID efficiency (from PID/noPID) | |
466 | fPIDEff = new TH1F("fPIDEff","fPIDEff",12,0,12); | |
467 | for(Int_t i=1;i<=12;i++) fPIDEff->SetBinContent(i,0.07); // 7% | |
468 | ||
469 | // MC dN/dpt (copied from D0 : will update later) | |
470 | //fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",12,0,12); | |
471 | //for(Int_t i=1;i<=12;i++) fMCPtShape->SetBinContent(i,(Float_t)i*0.006); | |
472 | ||
473 | ||
474 | // particle-antiparticle | |
475 | /* | |
476 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",12,0,12); | |
477 | fPartAntipart->SetBinContent(1,1); | |
478 | fPartAntipart->SetBinContent(2,1); | |
479 | fPartAntipart->SetBinContent(3,0.12); | |
480 | for(Int_t i=4;i<=12;i++) fPartAntipart->SetBinContent(i,0.05); //5 to 12% | |
481 | */ | |
482 | return; | |
483 | } | |
484 | ||
485 | ||
0233abe6 | 486 | //-------------------------------------------------------------------------- |
5541b811 | 487 | void AliHFSystErr::InitDplustoKpipi2010PbPb020() { |
488 | // | |
489 | // D+->Kpipi syst errors. Responsible: ?? | |
490 | // 2010 PbPb sample, 0-20 CC | |
491 | // | |
aebba8df | 492 | |
aebba8df | 493 | // Normalization |
494 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
495 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
496 | ||
497 | // Branching ratio | |
498 | fBR = new TH1F("fBR","fBR",20,0,20); | |
f7c8a2f1 | 499 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.021); // 2.1% PDG2010 |
aebba8df | 500 | |
501 | // Tracking efficiency | |
502 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
6c388dee | 503 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track) //i,0.075+0.005*(Float_t)i); |
aebba8df | 504 | |
505 | // Raw yield extraction | |
506 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
6c388dee | 507 | for(Int_t i=1;i<=20;i++) fRawYield->SetBinContent(i,.10); //5 to 10% |
508 | // fRawYield->SetBinContent(5,0.23); | |
509 | //fRawYield->SetBinContent(6,0.23); | |
cb142b90 | 510 | fRawYield->SetBinContent(7,0.20); |
511 | fRawYield->SetBinContent(8,0.20); | |
512 | fRawYield->SetBinContent(9,0.15); | |
513 | fRawYield->SetBinContent(10,0.15); | |
514 | fRawYield->SetBinContent(11,0.15); | |
515 | fRawYield->SetBinContent(12,0.15); | |
aebba8df | 516 | |
517 | // Cuts efficiency (from cuts variation) | |
518 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
666cf569 | 519 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.15); // 10% |
aebba8df | 520 | |
521 | // PID efficiency (from PID/noPID) | |
522 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
523 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 5% | |
aebba8df | 524 | |
f7c8a2f1 | 525 | // MC dN/dpt (2/2/2012) |
aebba8df | 526 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); |
578bfbba | 527 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0.); |
f7c8a2f1 | 528 | for(Int_t iBin=7; iBin<=8; iBin++) fMCPtShape->SetBinContent(iBin,0.01); |
529 | for(Int_t iBin=9; iBin<=12; iBin++) fMCPtShape->SetBinContent(iBin,0.05); | |
530 | for(Int_t iBin=13; iBin<=16; iBin++) fMCPtShape->SetBinContent(iBin,0.05); | |
aebba8df | 531 | |
532 | ||
533 | // particle-antiparticle | |
534 | /* | |
535 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
536 | fPartAntipart->SetBinContent(1,1); | |
537 | fPartAntipart->SetBinContent(2,1); | |
538 | fPartAntipart->SetBinContent(3,0.12); | |
539 | for(Int_t i=4;i<=20;i++) fPartAntipart->SetBinContent(i,0.05); //5 to 12% | |
540 | */ | |
6c388dee | 541 | |
5541b811 | 542 | return; |
543 | } | |
544 | ||
545 | //-------------------------------------------------------------------------- | |
546 | void AliHFSystErr::InitDplustoKpipi2010PbPb4080() { | |
547 | // | |
548 | // D+->Kpipi syst errors. Responsible: ?? | |
549 | // 2010 PbPb sample, 40-80 CC | |
550 | // | |
551 | ||
aebba8df | 552 | |
553 | // Normalization | |
554 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
555 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
556 | ||
557 | // Branching ratio | |
558 | fBR = new TH1F("fBR","fBR",20,0,20); | |
f7c8a2f1 | 559 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.021); // 2.1% |
aebba8df | 560 | |
561 | // Tracking efficiency | |
562 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
d921a376 | 563 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track) |
aebba8df | 564 | |
565 | ||
566 | // Raw yield extraction | |
567 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
568 | fRawYield->SetBinContent(1,1); | |
569 | fRawYield->SetBinContent(2,1); | |
570 | fRawYield->SetBinContent(3,1); | |
6970b225 | 571 | fRawYield->SetBinContent(4,0.15); |
cb142b90 | 572 | fRawYield->SetBinContent(5,0.05); |
573 | fRawYield->SetBinContent(6,0.05); | |
574 | fRawYield->SetBinContent(7,0.15); | |
575 | fRawYield->SetBinContent(8,0.15); | |
6970b225 | 576 | for(Int_t i=9;i<=12;i++) fRawYield->SetBinContent(i,0.15); |
aebba8df | 577 | for(Int_t i=13;i<=20;i++) fRawYield->SetBinContent(i,1); //5 to 10% |
578 | ||
579 | // Cuts efficiency (from cuts variation) | |
580 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
581 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
582 | ||
583 | // PID efficiency (from PID/noPID) | |
584 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
585 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 5% | |
586 | fPIDEff->SetBinContent(3,0.13); // 13% | |
587 | ||
588 | ||
f7c8a2f1 | 589 | // MC dN/dpt (2/2/2012) |
aebba8df | 590 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); |
578bfbba | 591 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0); |
f7c8a2f1 | 592 | for(Int_t iBin=4; iBin<=8; iBin++) fMCPtShape->SetBinContent(iBin,0.01); |
593 | for(Int_t iBin=9; iBin<=12; iBin++) fMCPtShape->SetBinContent(iBin,0.03); | |
594 | for(Int_t iBin=13; iBin<=16; iBin++) fMCPtShape->SetBinContent(iBin,0.03); | |
aebba8df | 595 | |
596 | ||
597 | // particle-antiparticle | |
598 | /* | |
599 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
600 | fPartAntipart->SetBinContent(1,1); | |
601 | fPartAntipart->SetBinContent(2,1); | |
602 | fPartAntipart->SetBinContent(3,0.12); | |
603 | for(Int_t i=4;i<=20;i++) fPartAntipart->SetBinContent(i,0.05); //5 to 12% | |
604 | */ | |
5541b811 | 605 | return; |
606 | } | |
607 | ||
a8c3295d | 608 | //-------------------------------------------------------------------------- |
609 | void AliHFSystErr::InitDplustoKpipi2010ppLowEn() { | |
610 | ||
611 | // | |
612 | // D+->Kpipi syst errors. Responsible: R. Bala | |
613 | // 2011 2.76 TeV pp sample | |
614 | // | |
615 | AliInfo(" Settings for D+ --> K pi pi p-p collisions at 2.76 TeV"); | |
616 | ||
617 | // Normalization | |
618 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
f9a85c82 | 619 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.031); // 10% error on sigmaV0and |
a8c3295d | 620 | |
621 | // Branching ratio | |
622 | fBR = new TH1F("fBR","fBR",20,0,20); | |
f7c8a2f1 | 623 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.021); // 2.1% PDG2010 |
a8c3295d | 624 | |
625 | // Tracking efficiency | |
626 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
f9a85c82 | 627 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.18); // 3% (1% per track) |
a8c3295d | 628 | |
629 | // Raw yield extraction | |
630 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
631 | fRawYield->SetBinContent(1,1); | |
632 | fRawYield->SetBinContent(2,1); | |
f9a85c82 | 633 | for(Int_t i=3;i<=6;i++) fRawYield->SetBinContent(i,0.10); //5 to 10% |
634 | fRawYield->SetBinContent(7,0.15); | |
635 | fRawYield->SetBinContent(8,0.15); | |
636 | for(Int_t i=9;i<=20;i++) fRawYield->SetBinContent(i,0.055); //5 to 10% | |
a8c3295d | 637 | |
638 | // Cuts efficiency (from cuts variation) | |
639 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
f9a85c82 | 640 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.15); // 10% |
a8c3295d | 641 | |
642 | // PID efficiency (from PID/noPID) | |
643 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
644 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 5% | |
f9a85c82 | 645 | fPIDEff->SetBinContent(3,0.10); // 13% |
646 | fPIDEff->SetBinContent(4,0.10); // 13% | |
a8c3295d | 647 | |
648 | // MC dN/dpt (copied from D0 : will update later) | |
649 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
578bfbba | 650 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0.); |
651 | fMCPtShape->SetBinContent(1,0.03); | |
652 | fMCPtShape->SetBinContent(2,0.03); | |
a8c3295d | 653 | |
654 | return; | |
655 | } | |
656 | ||
5541b811 | 657 | //-------------------------------------------------------------------------- |
658 | void AliHFSystErr::InitDstartoD0pi2010pp() { | |
0233abe6 | 659 | // |
2cf98d0d | 660 | // D*+->D0pi syst errors. Responsible: A. Grelli, Y. Wang |
5541b811 | 661 | // 2010 pp sample |
0233abe6 | 662 | // |
663 | ||
2cf98d0d | 664 | // Normalization |
fa2be30c | 665 | fNorm = new TH1F("fNorm","fNorm",24,0,24); |
f8bc42d3 | 666 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.04); // 4% error on sigmaV0and |
fa2be30c | 667 | |
668 | // Branching ratio | |
669 | fBR = new TH1F("fBR","fBR",24,0,24); | |
670 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 | |
671 | ||
672 | // Tracking efficiency | |
673 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24); | |
674 | fTrackingEff->SetBinContent(1,1.0); | |
f8bc42d3 | 675 | fTrackingEff->SetBinContent(2,0.13); // 10% (ITSsa) \oplus 8% (4% per ITSTPC track) |
676 | fTrackingEff->SetBinContent(3,0.12); | |
677 | fTrackingEff->SetBinContent(3,0.12); | |
678 | for(Int_t i=4;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track) | |
fa2be30c | 679 | |
680 | ||
681 | // Raw yield extraction | |
682 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); | |
683 | fRawYield->SetBinContent(1,1.0); | |
d2e5959f | 684 | fRawYield->SetBinContent(2,0.10); |
fa2be30c | 685 | fRawYield->SetBinContent(3,0.04); |
d2e5959f | 686 | fRawYield->SetBinContent(4,0.03); |
fa2be30c | 687 | fRawYield->SetBinContent(5,0.03); |
d2e5959f | 688 | fRawYield->SetBinContent(6,0.05); |
689 | fRawYield->SetBinContent(7,0.05); | |
690 | fRawYield->SetBinContent(8,0.05); | |
691 | for(Int_t i=9;i<=12;i++) fRawYield->SetBinContent(i,0.04); //4% | |
692 | for(Int_t i=13;i<=16;i++) fRawYield->SetBinContent(i,0.09); //4% | |
693 | for(Int_t i=17;i<=24;i++) fRawYield->SetBinContent(i,0.2); //4% | |
fa2be30c | 694 | |
695 | // Cuts efficiency (from cuts variation) | |
696 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); | |
697 | fCutsEff->SetBinContent(2,0.22); | |
698 | for(Int_t i=3;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
699 | ||
700 | // PID efficiency (from PID/noPID) | |
701 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); | |
702 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.04); // 3% | |
703 | ||
704 | ||
705 | // MC dN/dpt (copied from D0 : will update later) | |
706 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
578bfbba | 707 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0); |
708 | fMCPtShape->SetBinContent(1,0.03); | |
709 | fMCPtShape->SetBinContent(2,0.03); | |
fa2be30c | 710 | |
711 | return; | |
712 | ||
713 | ||
714 | } | |
715 | //-------------------------------------------------------------------------- | |
716 | void AliHFSystErr::InitDstartoD0pi2010ppLowEn() { | |
717 | ||
718 | // | |
719 | // D+->Kpipi syst errors. Responsible: A. Grelli | |
720 | // 2011 2.76 TeV pp sample | |
721 | // | |
722 | AliInfo(" Settings for D*+ --> D0 pi p-p collisions at 2.76 TeV"); | |
723 | ||
724 | // Normalization | |
2cf98d0d | 725 | fNorm = new TH1F("fNorm","fNorm",20,0,20); |
f9a85c82 | 726 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.031); // 10% error on sigmaV0and |
2cf98d0d | 727 | |
728 | // Branching ratio | |
729 | fBR = new TH1F("fBR","fBR",20,0,20); | |
8accac87 | 730 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 |
2cf98d0d | 731 | |
732 | // Tracking efficiency | |
733 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
f9a85c82 | 734 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.18); //10% (to be checked!!) |
2cf98d0d | 735 | |
736 | // Raw yield extraction | |
737 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
8accac87 | 738 | fRawYield->SetBinContent(1,1); |
fa2be30c | 739 | fRawYield->SetBinContent(2,1); |
f9a85c82 | 740 | fRawYield->SetBinContent(3,0.14); |
741 | fRawYield->SetBinContent(4,0.14); | |
742 | fRawYield->SetBinContent(5,0.12); | |
743 | fRawYield->SetBinContent(6,0.12); | |
744 | fRawYield->SetBinContent(7,0.06); | |
745 | fRawYield->SetBinContent(8,0.06); | |
746 | fRawYield->SetBinContent(9,0.08); | |
747 | fRawYield->SetBinContent(10,0.08); | |
748 | fRawYield->SetBinContent(11,0.08); | |
749 | fRawYield->SetBinContent(12,0.08); | |
fa2be30c | 750 | for(Int_t i=9;i<=20;i++) fRawYield->SetBinContent(i,0.065); |
2cf98d0d | 751 | |
752 | // Cuts efficiency (from cuts variation) | |
753 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
f9a85c82 | 754 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.10); |
755 | fCutsEff->SetBinContent(3,0.15); | |
756 | fCutsEff->SetBinContent(4,0.15); | |
757 | fCutsEff->SetBinContent(5,0.15); | |
758 | fCutsEff->SetBinContent(6,0.15); | |
759 | fCutsEff->SetBinContent(7,0.10); | |
760 | fCutsEff->SetBinContent(8,0.10); | |
761 | fCutsEff->SetBinContent(9,0.10); | |
762 | fCutsEff->SetBinContent(10,0.10); | |
763 | fCutsEff->SetBinContent(11,0.10); | |
764 | fCutsEff->SetBinContent(12,0.10); | |
2cf98d0d | 765 | |
766 | // PID efficiency (from PID/noPID) | |
767 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
fa2be30c | 768 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 10% |
2cf98d0d | 769 | |
fa2be30c | 770 | // MC dN/dpt |
2cf98d0d | 771 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); |
578bfbba | 772 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0.); |
773 | fMCPtShape->SetBinContent(1,0.03); | |
774 | fMCPtShape->SetBinContent(2,0.03); | |
2cf98d0d | 775 | |
0233abe6 | 776 | return; |
777 | } | |
6c388dee | 778 | |
fa2be30c | 779 | //------------------------------------------------------------------------ |
5541b811 | 780 | void AliHFSystErr::InitDstartoD0pi2010PbPb020() { |
781 | // | |
fa2be30c | 782 | // D*+->D0pi syst errors. Responsible: A. Grelli |
5541b811 | 783 | // 2010 PbPb sample, 0-20 CC |
784 | // | |
785 | ||
fa2be30c | 786 | AliInfo(" Settings for D*+ --> D0pi Pb-Pb collisions at 2.76 TeV - 0-20 centrality - DUMMY"); |
787 | ||
788 | // Normalization | |
789 | fNorm = new TH1F("fNorm","fNorm",24,0,24); | |
790 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
791 | ||
792 | // Branching ratio | |
793 | fBR = new TH1F("fBR","fBR",24,0,24); | |
794 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 | |
795 | ||
796 | // Tracking efficiency | |
797 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24);; | |
6c388dee | 798 | for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track)i,0.075+0.005*(Float_t)i); |
fa2be30c | 799 | |
800 | ||
801 | // Raw yield extraction | |
802 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); | |
6c388dee | 803 | for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.1); //4% |
804 | fRawYield->SetBinContent(3,0.2); | |
805 | fRawYield->SetBinContent(4,0.2); | |
806 | fRawYield->SetBinContent(5,0.2); | |
807 | fRawYield->SetBinContent(6,0.2); | |
fa2be30c | 808 | |
809 | // Cuts efficiency (from cuts variation) | |
810 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); | |
811 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
812 | ||
813 | // PID efficiency (from PID/noPID) | |
814 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); | |
6c388dee | 815 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.05); // 3% |
fa2be30c | 816 | |
817 | ||
818 | // MC dN/dpt (copied from D0 : will update later) | |
819 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
578bfbba | 820 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0.); |
821 | fMCPtShape->SetBinContent(1,0.03); | |
822 | fMCPtShape->SetBinContent(2,0.03); | |
fa2be30c | 823 | |
824 | return; | |
825 | ||
826 | } | |
6c388dee | 827 | |
fa2be30c | 828 | //------------------------------------------------------------------------- |
829 | void AliHFSystErr::InitDstartoD0pi2010PbPb2040() { | |
830 | // | |
831 | // D*+->D0pi syst errors. Responsible: A. Grelli | |
832 | // 2010 PbPb sample, 20-40 CC | |
833 | // | |
834 | ||
835 | AliInfo(" Settings for D*+ --> D0pi Pb-Pb collisions at 2.76 TeV - 20-40 centrality - DUMMY"); | |
836 | ||
837 | // Normalization | |
838 | fNorm = new TH1F("fNorm","fNorm",24,0,24); | |
839 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
840 | ||
841 | // Branching ratio | |
842 | fBR = new TH1F("fBR","fBR",24,0,24); | |
843 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 | |
844 | ||
845 | // Tracking efficiency | |
846 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24);; | |
847 | for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 3% (1% per track) | |
848 | ||
849 | ||
850 | // Raw yield extraction | |
851 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); | |
852 | for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.15); //4% | |
853 | ||
854 | // Cuts efficiency (from cuts variation) | |
855 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); | |
856 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
857 | ||
858 | // PID efficiency (from PID/noPID) | |
859 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); | |
860 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.04); // 3% | |
861 | ||
862 | ||
863 | // MC dN/dpt (copied from D0 : will update later) | |
864 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
578bfbba | 865 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0.); |
866 | fMCPtShape->SetBinContent(1,0.03); | |
867 | fMCPtShape->SetBinContent(2,0.03); | |
fa2be30c | 868 | |
5541b811 | 869 | return; |
fa2be30c | 870 | |
5541b811 | 871 | } |
6c388dee | 872 | |
5541b811 | 873 | //-------------------------------------------------------------------------- |
874 | void AliHFSystErr::InitDstartoD0pi2010PbPb4080() { | |
875 | // | |
fa2be30c | 876 | // D*+->D0pi syst errors. Responsible: A. Grelli |
5541b811 | 877 | // 2010 PbPb sample, 40-80 CC |
878 | // | |
879 | ||
fa2be30c | 880 | AliInfo(" Settings for D*+ --> D0pi Pb-Pb collisions at 2.76 TeV - 40-80 centrality - DUMMY"); |
881 | ||
882 | // Normalization | |
883 | fNorm = new TH1F("fNorm","fNorm",24,0,24); | |
884 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
885 | ||
886 | // Branching ratio | |
887 | fBR = new TH1F("fBR","fBR",24,0,24); | |
888 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 | |
889 | ||
890 | // Tracking efficiency | |
891 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24);; | |
6c388dee | 892 | for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12);//0.5*(0.075+0.005*(Float_t)i)); |
fa2be30c | 893 | |
894 | ||
895 | // Raw yield extraction | |
896 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); | |
6c388dee | 897 | for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.2); //4% |
898 | fRawYield->SetBinContent(1,1); | |
899 | fRawYield->SetBinContent(2,0.15); | |
900 | fRawYield->SetBinContent(3,0.15); | |
901 | fRawYield->SetBinContent(4,0.15); | |
902 | fRawYield->SetBinContent(5,0.15); | |
903 | fRawYield->SetBinContent(6,0.10); | |
904 | fRawYield->SetBinContent(7,0.10); | |
905 | fRawYield->SetBinContent(8,0.10); | |
906 | fRawYield->SetBinContent(9,0.11); | |
907 | fRawYield->SetBinContent(10,0.11); | |
908 | fRawYield->SetBinContent(11,0.11); | |
909 | fRawYield->SetBinContent(12,0.11); | |
910 | fRawYield->SetBinContent(13,0.08); | |
911 | fRawYield->SetBinContent(14,0.08); | |
912 | fRawYield->SetBinContent(15,0.08); | |
913 | fRawYield->SetBinContent(16,0.08); | |
914 | ||
915 | ||
fa2be30c | 916 | // Cuts efficiency (from cuts variation) |
917 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); | |
918 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
919 | ||
920 | // PID efficiency (from PID/noPID) | |
921 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); | |
6c388dee | 922 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.05); // 3% |
fa2be30c | 923 | |
924 | ||
925 | // MC dN/dpt (copied from D0 : will update later) | |
926 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
578bfbba | 927 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0.); |
928 | fMCPtShape->SetBinContent(1,0.03); | |
929 | fMCPtShape->SetBinContent(2,0.03); | |
fa2be30c | 930 | |
5541b811 | 931 | return; |
fa2be30c | 932 | |
5541b811 | 933 | } |
6c388dee | 934 | |
414bc6a5 | 935 | //-------------------------------------------------------------------------- |
936 | void AliHFSystErr::InitD0toKpi2010PbPb010CentScan(){ | |
937 | // define errors for RAA vs. centrality | |
938 | InitD0toKpi2010PbPb020(); | |
939 | } | |
940 | //-------------------------------------------------------------------------- | |
941 | void AliHFSystErr::InitD0toKpi2010PbPb1020CentScan(){ | |
942 | // define errors for RAA vs. centrality | |
943 | InitD0toKpi2010PbPb020(); | |
944 | } | |
945 | //-------------------------------------------------------------------------- | |
946 | void AliHFSystErr::InitD0toKpi2010PbPb2040CentScan(){ | |
947 | // define errors for RAA vs. centrality | |
948 | InitD0toKpi2010PbPb020(); | |
949 | } | |
950 | //-------------------------------------------------------------------------- | |
951 | void AliHFSystErr::InitD0toKpi2010PbPb4060CentScan(){ | |
952 | // define errors for RAA vs. centrality | |
953 | InitD0toKpi2010PbPb4080(); | |
954 | } | |
955 | //-------------------------------------------------------------------------- | |
956 | void AliHFSystErr::InitD0toKpi2010PbPb6080CentScan(){ | |
957 | // define errors for RAA vs. centrality | |
958 | InitD0toKpi2010PbPb4080(); | |
959 | } | |
960 | //-------------------------------------------------------------------------- | |
961 | void AliHFSystErr::InitDplustoKpipi2010PbPb010CentScan(){ | |
962 | // define errors for RAA vs. centrality | |
963 | InitDplustoKpipi2010PbPb020(); | |
964 | } | |
965 | //-------------------------------------------------------------------------- | |
966 | void AliHFSystErr::InitDplustoKpipi2010PbPb1020CentScan(){ | |
967 | // define errors for RAA vs. centrality | |
968 | InitDplustoKpipi2010PbPb020(); | |
969 | } | |
970 | //-------------------------------------------------------------------------- | |
971 | void AliHFSystErr::InitDplustoKpipi2010PbPb2040CentScan(){ | |
972 | // define errors for RAA vs. centrality | |
973 | InitDplustoKpipi2010PbPb020(); | |
974 | } | |
975 | //-------------------------------------------------------------------------- | |
976 | void AliHFSystErr::InitDplustoKpipi2010PbPb4060CentScan(){ | |
977 | // define errors for RAA vs. centrality | |
978 | InitDplustoKpipi2010PbPb4080(); | |
979 | } | |
980 | //-------------------------------------------------------------------------- | |
981 | void AliHFSystErr::InitDplustoKpipi2010PbPb6080CentScan(){ | |
982 | // define errors for RAA vs. centrality | |
983 | InitDplustoKpipi2010PbPb4080(); | |
984 | } | |
985 | ||
986 | //-------------------------------------------------------------------------- | |
987 | void AliHFSystErr::InitDstartoD0pi2010PbPb010CentScan(){ | |
988 | // define errors for RAA vs. centrality | |
989 | InitDstartoD0pi2010PbPb020(); | |
990 | for(Int_t i=7;i<=12;i++) fRawYield->SetBinContent(i,0.16); | |
991 | } | |
992 | //-------------------------------------------------------------------------- | |
993 | void AliHFSystErr::InitDstartoD0pi2010PbPb1020CentScan(){ | |
994 | // define errors for RAA vs. centrality | |
995 | InitDstartoD0pi2010PbPb020(); | |
996 | for(Int_t i=7;i<=12;i++) fRawYield->SetBinContent(i,0.05); | |
997 | } | |
998 | //-------------------------------------------------------------------------- | |
999 | void AliHFSystErr::InitDstartoD0pi2010PbPb2040CentScan(){ | |
1000 | // define errors for RAA vs. centrality | |
1001 | InitDstartoD0pi2010PbPb2040(); | |
1002 | for(Int_t i=7;i<=12;i++) fRawYield->SetBinContent(i,0.10); | |
1003 | } | |
1004 | //-------------------------------------------------------------------------- | |
1005 | void AliHFSystErr::InitDstartoD0pi2010PbPb4060CentScan(){ | |
1006 | // define errors for RAA vs. centrality | |
1007 | InitDstartoD0pi2010PbPb4080(); | |
1008 | for(Int_t i=7;i<=12;i++) fRawYield->SetBinContent(i,0.10); | |
1009 | } | |
1010 | //-------------------------------------------------------------------------- | |
1011 | void AliHFSystErr::InitDstartoD0pi2010PbPb6080CentScan(){ | |
1012 | // define errors for RAA vs. centrality | |
1013 | InitDstartoD0pi2010PbPb4080(); | |
1014 | for(Int_t i=7;i<=12;i++) fRawYield->SetBinContent(i,0.10); | |
1015 | } | |
1016 | ||
1017 | ||
5541b811 | 1018 | //-------------------------------------------------------------------------- |
0233abe6 | 1019 | Double_t AliHFSystErr::GetCutsEffErr(Double_t pt) const { |
1020 | // | |
1021 | // Get error | |
1022 | // | |
1023 | ||
1024 | Int_t bin=fCutsEff->FindBin(pt); | |
1025 | ||
1026 | return fCutsEff->GetBinContent(bin); | |
1027 | } | |
1028 | //-------------------------------------------------------------------------- | |
1029 | Double_t AliHFSystErr::GetMCPtShapeErr(Double_t pt) const { | |
1030 | // | |
1031 | // Get error | |
1032 | // | |
1033 | ||
1034 | Int_t bin=fMCPtShape->FindBin(pt); | |
1035 | ||
1036 | return fMCPtShape->GetBinContent(bin); | |
1037 | } | |
1038 | //-------------------------------------------------------------------------- | |
1039 | Double_t AliHFSystErr::GetSeleEffErr(Double_t pt) const { | |
1040 | // | |
1041 | // Get error | |
1042 | // | |
1043 | ||
1044 | Double_t err=GetCutsEffErr(pt)*GetCutsEffErr(pt)+GetMCPtShapeErr(pt)*GetMCPtShapeErr(pt); | |
1045 | ||
1046 | return TMath::Sqrt(err); | |
1047 | } | |
1048 | //-------------------------------------------------------------------------- | |
1049 | Double_t AliHFSystErr::GetPIDEffErr(Double_t pt) const { | |
1050 | // | |
1051 | // Get error | |
1052 | // | |
1053 | ||
1054 | Int_t bin=fPIDEff->FindBin(pt); | |
1055 | ||
1056 | return fPIDEff->GetBinContent(bin); | |
1057 | } | |
1058 | //-------------------------------------------------------------------------- | |
1059 | Double_t AliHFSystErr::GetTrackingEffErr(Double_t pt) const { | |
1060 | // | |
1061 | // Get error | |
1062 | // | |
1063 | ||
1064 | Int_t bin=fTrackingEff->FindBin(pt); | |
1065 | ||
1066 | return fTrackingEff->GetBinContent(bin); | |
1067 | } | |
1068 | //-------------------------------------------------------------------------- | |
1069 | Double_t AliHFSystErr::GetRawYieldErr(Double_t pt) const { | |
1070 | // | |
1071 | // Get error | |
1072 | // | |
1073 | ||
1074 | Int_t bin=fRawYield->FindBin(pt); | |
1075 | ||
1076 | return fRawYield->GetBinContent(bin); | |
1077 | } | |
1078 | //-------------------------------------------------------------------------- | |
1079 | Double_t AliHFSystErr::GetPartAntipartErr(Double_t pt) const { | |
1080 | // | |
1081 | // Get error | |
1082 | // | |
1083 | ||
1084 | Int_t bin=fPartAntipart->FindBin(pt); | |
1085 | ||
1086 | return fPartAntipart->GetBinContent(bin); | |
1087 | } | |
1088 | //-------------------------------------------------------------------------- | |
1089 | Double_t AliHFSystErr::GetTotalSystErr(Double_t pt,Double_t feeddownErr) const { | |
1090 | // | |
1091 | // Get total syst error (except norm. error) | |
1092 | // | |
1093 | ||
1094 | Double_t err=0.; | |
1095 | ||
1096 | if(fRawYield) err += GetRawYieldErr(pt)*GetRawYieldErr(pt); | |
1097 | if(fTrackingEff) err += GetTrackingEffErr(pt)*GetTrackingEffErr(pt); | |
f9a85c82 | 1098 | // if(fBR) err += GetBRErr()*GetBRErr(); |
0233abe6 | 1099 | if(fCutsEff) err += GetCutsEffErr(pt)*GetCutsEffErr(pt); |
1100 | if(fPIDEff) err += GetPIDEffErr(pt)*GetPIDEffErr(pt); | |
1101 | if(fMCPtShape) err += GetMCPtShapeErr(pt)*GetMCPtShapeErr(pt); | |
1102 | if(fPartAntipart) err += GetPartAntipartErr(pt)*GetPartAntipartErr(pt); | |
1103 | ||
1104 | err += feeddownErr*feeddownErr; | |
1105 | ||
1106 | return TMath::Sqrt(err); | |
1107 | } | |
1108 | //--------------------------------------------------------------------------- | |
5ad8ad40 | 1109 | void AliHFSystErr::DrawErrors(TGraphAsymmErrors *grErrFeeddown) const { |
0233abe6 | 1110 | // |
1111 | // Draw errors | |
1112 | // | |
1113 | gStyle->SetOptStat(0); | |
1114 | ||
a07118d0 | 1115 | TCanvas *cSystErr = new TCanvas("cSystErr","Systematic Errors",300,80,640,500); |
1116 | cSystErr->Range(0.20,-0.5,18.4,0.34); | |
1117 | cSystErr->SetRightMargin(0.318); | |
0233abe6 | 1118 | cSystErr->SetFillColor(0); |
1119 | ||
2ee3afe2 | 1120 | TH2F *hFrame = new TH2F("hFrame","Systematic errors; p_{t} [GeV/c]; Relative Error",20,0,20,100,-1,+1); |
f1d72175 | 1121 | hFrame->SetAxisRange(1.,15.9,"X"); |
a07118d0 | 1122 | hFrame->SetAxisRange(-0.5,0.5,"Y"); |
0233abe6 | 1123 | hFrame->Draw(); |
1124 | ||
a07118d0 | 1125 | TLegend *leg = new TLegend(0.69,0.44,0.98,0.86,NULL,"brNDC"); |
1126 | leg->SetTextSize(0.03601695); | |
0233abe6 | 1127 | leg->SetFillStyle(0); |
1128 | leg->SetBorderSize(0); | |
2ee3afe2 | 1129 | |
f1d72175 | 1130 | TH1F *hTotErr=new TH1F("hTotErr","",24,0,24); |
2ee3afe2 | 1131 | Int_t nbins = fNorm->GetNbinsX(); |
1132 | TGraphAsymmErrors *gTotErr = new TGraphAsymmErrors(nbins); | |
f1d72175 | 1133 | for(Int_t i=1;i<=24;i++) { |
2ee3afe2 | 1134 | Double_t pt = hTotErr->GetBinCenter(i); |
1135 | Double_t ptwidth = hTotErr->GetBinWidth(i); | |
1136 | ||
1137 | if(grErrFeeddown) { | |
1138 | Double_t x=0., y=0., errxl=0., errxh=0., erryl=0., erryh=0.; | |
1139 | Double_t toterryl=0., toterryh=0.; | |
1140 | for(Int_t j=0; j<grErrFeeddown->GetN(); j++) { | |
1141 | grErrFeeddown->GetPoint(j,x,y); | |
1142 | errxh = grErrFeeddown->GetErrorXhigh(j); | |
1143 | errxl = grErrFeeddown->GetErrorXlow(j); | |
a07118d0 | 1144 | if ( ( (x-errxl) <= pt) && ( (x+errxl) >= pt) ) { |
2ee3afe2 | 1145 | erryh = grErrFeeddown->GetErrorYhigh(j); |
1146 | erryl = grErrFeeddown->GetErrorYlow(j); | |
1147 | } | |
1148 | } | |
1149 | if (erryl>=1e-3) toterryl = GetTotalSystErr(pt,erryl); | |
1150 | else toterryl = GetTotalSystErr(pt); | |
1151 | if (erryh>=1e-3) toterryh = GetTotalSystErr(pt,erryh); | |
1152 | else toterryh = GetTotalSystErr(pt); | |
1153 | ||
1154 | hTotErr->SetBinContent(i,toterryh); | |
1155 | gTotErr->SetPoint(i,pt,0.); | |
1156 | gTotErr->SetPointError(i,ptwidth/2.,ptwidth/2.,toterryl,toterryh); // i, exl, exh, eyl, eyh | |
1157 | } | |
1158 | else { | |
1159 | hTotErr->SetBinContent(i,GetTotalSystErr(pt)); | |
1160 | gTotErr->SetPoint(i,pt,0.); | |
1161 | gTotErr->SetPointError(i,ptwidth/2.,ptwidth/2.,GetTotalSystErr(pt),GetTotalSystErr(pt)); // i, exl, exh, eyl, eyh | |
1162 | } | |
1163 | ||
1164 | } | |
f968ef30 | 1165 | gTotErr->SetLineColor(kBlack); |
1166 | gTotErr->SetFillColor(kRed); | |
1167 | gTotErr->SetFillStyle(3002); | |
2ee3afe2 | 1168 | gTotErr->Draw("2"); |
1169 | leg->AddEntry(gTotErr,"Total (excl. norm.)","f"); | |
1170 | // hTotErr->SetLineColor(1); | |
1171 | // hTotErr->SetLineWidth(3); | |
1172 | // hTotErr->Draw("same"); | |
1173 | // leg->AddEntry(hTotErr,"Total (excl. norm.)","l"); | |
1174 | ||
0233abe6 | 1175 | |
e373b9f0 | 1176 | fNorm->SetFillColor(1); |
1177 | fNorm->SetFillStyle(3002); | |
1178 | //fNorm->Draw("same"); | |
1179 | //TH1F *hNormRefl = ReflectHisto(fNorm); | |
1180 | //hNormRefl->Draw("same"); | |
1181 | leg->AddEntry(fNorm,"Normalization (10%)",""); | |
1182 | ||
5ad8ad40 | 1183 | if(grErrFeeddown) { |
1184 | grErrFeeddown->SetFillColor(kTeal-8); | |
1185 | grErrFeeddown->SetFillStyle(3001); | |
1186 | grErrFeeddown->Draw("2"); | |
1187 | leg->AddEntry(grErrFeeddown,"Feed-down from B","f"); | |
1188 | } | |
0233abe6 | 1189 | if(fTrackingEff) { |
5ad8ad40 | 1190 | fTrackingEff->SetFillColor(4); |
1191 | fTrackingEff->SetFillStyle(3006); | |
0233abe6 | 1192 | fTrackingEff->Draw("same"); |
f968ef30 | 1193 | TH1F *hTrackingEffRefl = ReflectHisto(fTrackingEff); |
1194 | hTrackingEffRefl->Draw("same"); | |
0233abe6 | 1195 | leg->AddEntry(fTrackingEff,"Tracking efficiency","f"); |
1196 | } | |
1197 | if(fBR) { | |
1198 | fBR->SetFillColor(6); | |
1199 | fBR->SetFillStyle(3005); | |
5ad8ad40 | 1200 | //fBR->SetFillStyle(3020); |
0233abe6 | 1201 | fBR->Draw("same"); |
f968ef30 | 1202 | TH1F *hBRRefl = ReflectHisto(fBR); |
1203 | hBRRefl->Draw("same"); | |
0233abe6 | 1204 | leg->AddEntry(fBR,"Branching ratio","f"); |
1205 | } | |
1206 | if(fRawYield) { | |
5ad8ad40 | 1207 | Int_t ci; // for color index setting |
1208 | ci = TColor::GetColor("#00cc00"); | |
1209 | fRawYield->SetLineColor(ci); | |
1210 | // fRawYield->SetLineColor(3); | |
0233abe6 | 1211 | fRawYield->SetLineWidth(3); |
1212 | fRawYield->Draw("same"); | |
f968ef30 | 1213 | TH1F *hRawYieldRefl = ReflectHisto(fRawYield); |
1214 | hRawYieldRefl->Draw("same"); | |
844405bc | 1215 | leg->AddEntry(fRawYield,"Yield extraction","l"); |
0233abe6 | 1216 | } |
1217 | if(fCutsEff) { | |
1218 | fCutsEff->SetLineColor(4); | |
1219 | fCutsEff->SetLineWidth(3); | |
1220 | fCutsEff->Draw("same"); | |
f968ef30 | 1221 | TH1F *hCutsEffRefl = ReflectHisto(fCutsEff); |
1222 | hCutsEffRefl->Draw("same"); | |
0233abe6 | 1223 | leg->AddEntry(fCutsEff,"Cuts efficiency","l"); |
1224 | } | |
1225 | if(fPIDEff) { | |
1226 | fPIDEff->SetLineColor(7); | |
1227 | fPIDEff->SetLineWidth(3); | |
1228 | fPIDEff->Draw("same"); | |
f968ef30 | 1229 | TH1F *hPIDEffRefl = ReflectHisto(fPIDEff); |
1230 | hPIDEffRefl->Draw("same"); | |
0233abe6 | 1231 | leg->AddEntry(fPIDEff,"PID efficiency","l"); |
1232 | } | |
1233 | if(fMCPtShape) { | |
5ad8ad40 | 1234 | Int_t ci = TColor::GetColor("#9933ff"); |
1235 | fMCPtShape->SetLineColor(ci); | |
1236 | // fMCPtShape->SetLineColor(8); | |
0233abe6 | 1237 | fMCPtShape->SetLineWidth(3); |
1238 | fMCPtShape->Draw("same"); | |
f968ef30 | 1239 | TH1F *hMCPtShapeRefl = ReflectHisto(fMCPtShape); |
1240 | hMCPtShapeRefl->Draw("same"); | |
0233abe6 | 1241 | leg->AddEntry(fMCPtShape,"MC p_{t} shape","l"); |
1242 | } | |
1243 | if(fPartAntipart) { | |
5ad8ad40 | 1244 | Int_t ci = TColor::GetColor("#ff6600"); |
1245 | fPartAntipart->SetLineColor(ci); | |
1246 | // fPartAntipart->SetLineColor(9); | |
0233abe6 | 1247 | fPartAntipart->SetLineWidth(3); |
1248 | fPartAntipart->Draw("same"); | |
f968ef30 | 1249 | TH1F *hPartAntipartRefl = ReflectHisto(fPartAntipart); |
1250 | hPartAntipartRefl->Draw("same"); | |
0233abe6 | 1251 | leg->AddEntry(fPartAntipart,"D = #bar{D}","l"); |
1252 | } | |
0233abe6 | 1253 | |
0233abe6 | 1254 | |
1255 | leg->Draw(); | |
1256 | ||
5ad8ad40 | 1257 | cSystErr->SaveAs("RelativeSystematics.eps"); |
1258 | ||
0233abe6 | 1259 | return; |
1260 | } | |
f968ef30 | 1261 | //------------------------------------------------------------------------- |
1262 | TH1F* AliHFSystErr::ReflectHisto(TH1F *hin) const { | |
1263 | // | |
1264 | // Clones and reflects histogram | |
1265 | // | |
1266 | TH1F *hout=(TH1F*)hin->Clone("hout"); | |
1267 | hout->Scale(-1.); | |
1268 | ||
1269 | return hout; | |
1270 | } |