]>
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.); | |
6c388dee | 227 | for(Int_t i=3;i<=16;i++) fCutsEff->SetBinContent(i,0.10); |
228 | for(Int_t i=17;i<=20;i++) fCutsEff->SetBinContent(i,0.); | |
5541b811 | 229 | |
230 | // PID efficiency (from PID/noPID) | |
231 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
6c388dee | 232 | for(Int_t i=3;i<=16;i++) fPIDEff->SetBinContent(i,0.05); |
5541b811 | 233 | |
234 | // MC dN/dpt | |
235 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
578bfbba | 236 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0); |
237 | fMCPtShape->SetBinContent(1,0.03); | |
238 | fMCPtShape->SetBinContent(2,0.03); | |
239 | ||
6c388dee | 240 | // // particle-antiparticle |
241 | // fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
242 | // for(Int_t i=3;i<=12;i++) fPartAntipart->SetBinContent(i,0.05); | |
243 | // fPartAntipart->SetBinContent(3,0.10); | |
244 | // fPartAntipart->SetBinContent(4,0.10); | |
245 | // fPartAntipart->SetBinContent(7,0.10); | |
246 | // fPartAntipart->SetBinContent(8,0.10); | |
0233abe6 | 247 | |
5541b811 | 248 | return; |
249 | } | |
250 | //-------------------------------------------------------------------------- | |
251 | void AliHFSystErr::InitD0toKpi2010PbPb4080() { | |
252 | // | |
aebba8df | 253 | // D0->Kpi syst errors. Responsible: A. Rossi |
5541b811 | 254 | // 2010 PbPb sample, 40-80 CC |
255 | // | |
256 | ||
0233abe6 | 257 | // Normalization |
258 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
844405bc | 259 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and |
0233abe6 | 260 | |
261 | // Branching ratio | |
262 | fBR = new TH1F("fBR","fBR",20,0,20); | |
844405bc | 263 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.012); // 1.2% PDG2010 |
0233abe6 | 264 | |
aebba8df | 265 | // Tracking efficiency |
266 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
6c388dee | 267 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.08);//0.5*(0.05+0.005*(Float_t)i)); |
aebba8df | 268 | |
269 | ||
0233abe6 | 270 | // Raw yield extraction |
271 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
5541b811 | 272 | fRawYield->SetBinContent(1,0); |
273 | fRawYield->SetBinContent(2,0); | |
6c388dee | 274 | for(Int_t i=3;i<=16;i++) fRawYield->SetBinContent(i,0.05); |
666cf569 | 275 | //for(Int_t i=13;i<=20;i++) fRawYield->SetBinContent(i,0); |
0233abe6 | 276 | |
277 | // Cuts efficiency (from cuts variation) | |
278 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
aebba8df | 279 | fCutsEff->SetBinContent(1,0.); |
280 | fCutsEff->SetBinContent(2,0.); | |
6c388dee | 281 | for(Int_t i=3;i<=16;i++) fCutsEff->SetBinContent(i,0.10); |
282 | for(Int_t i=17;i<=20;i++) fCutsEff->SetBinContent(i,0.); | |
0233abe6 | 283 | |
284 | // PID efficiency (from PID/noPID) | |
285 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
6c388dee | 286 | // for(Int_t i=3;i<=6;i++) fPIDEff->SetBinContent(i,0.10); |
287 | // for(Int_t i=7;i<=16;i++) fPIDEff->SetBinContent(i,0.05); | |
288 | for(Int_t i=3;i<=16;i++) fPIDEff->SetBinContent(i,0.05); | |
0233abe6 | 289 | |
290 | // MC dN/dpt | |
291 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
578bfbba | 292 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0); |
293 | fMCPtShape->SetBinContent(1,0.03); | |
294 | fMCPtShape->SetBinContent(2,0.03); | |
0233abe6 | 295 | |
6c388dee | 296 | // // particle-antiparticle |
297 | // fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
298 | // for(Int_t i=3;i<=12;i++) fPartAntipart->SetBinContent(i,0.05); | |
0233abe6 | 299 | |
300 | return; | |
301 | } | |
a8c3295d | 302 | |
303 | //-------------------------------------------------------------------------- | |
304 | void AliHFSystErr::InitD0toKpi2010ppLowEn() { | |
305 | // | |
306 | // D0->Kpi syst errors. Low energy run | |
307 | // 2011 2.76 TeV pp sample | |
308 | // | |
309 | AliInfo(" Settings for D0 --> K pi, p-p collisions at 2.76 TeV"); | |
310 | ||
311 | // Normalization | |
312 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
6c388dee | 313 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.04); // 4% error on sigmaV0and |
a8c3295d | 314 | |
315 | // Branching ratio | |
316 | fBR = new TH1F("fBR","fBR",20,0,20); | |
317 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.012); // 1.2% PDG2010 | |
318 | ||
319 | // Tracking efficiency | |
320 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
321 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.10); //10% (5% per track) | |
322 | ||
323 | // Raw yield extraction | |
324 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
325 | fRawYield->SetBinContent(1,1); | |
6c388dee | 326 | fRawYield->SetBinContent(2,0.2); |
a8c3295d | 327 | fRawYield->SetBinContent(3,0.2); |
328 | fRawYield->SetBinContent(4,0.2); | |
6c388dee | 329 | fRawYield->SetBinContent(5,0.15); |
330 | fRawYield->SetBinContent(6,0.15); | |
a8c3295d | 331 | fRawYield->SetBinContent(7,0.2); |
332 | fRawYield->SetBinContent(8,0.2); | |
333 | for(Int_t i=9;i<=20;i++) fRawYield->SetBinContent(i,0.065); | |
334 | ||
335 | // Cuts efficiency (from cuts variation) | |
336 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
337 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.18); // 10% | |
6c388dee | 338 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.10); // 10% |
339 | fCutsEff->SetBinContent(2,0.15); | |
340 | fCutsEff->SetBinContent(3,0.05); | |
341 | fCutsEff->SetBinContent(4,0.05); | |
a8c3295d | 342 | |
343 | // PID efficiency (from PID/noPID) | |
344 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
345 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.20); // 10% | |
6c388dee | 346 | fPIDEff->SetBinContent(3,0.20); // 10% |
347 | fPIDEff->SetBinContent(4,0.20); // 10% | |
348 | fPIDEff->SetBinContent(7,0.10); // 10% | |
349 | fPIDEff->SetBinContent(8,0.10); // 10% | |
a8c3295d | 350 | |
351 | // MC dN/dpt | |
352 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
578bfbba | 353 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0); |
354 | fMCPtShape->SetBinContent(1,0.03); | |
355 | fMCPtShape->SetBinContent(2,0.03); | |
a8c3295d | 356 | |
357 | // particle-antiparticle | |
358 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
359 | fPartAntipart->SetBinContent(1,1); | |
360 | fPartAntipart->SetBinContent(2,1); | |
361 | for(Int_t i=3;i<=6;i++) fPartAntipart->SetBinContent(i,0.08); | |
6c388dee | 362 | for(Int_t i=1;i<=20;i++) fPartAntipart->SetBinContent(i,0.); |
a8c3295d | 363 | |
364 | return; | |
365 | } | |
366 | ||
0233abe6 | 367 | //-------------------------------------------------------------------------- |
5541b811 | 368 | void AliHFSystErr::InitDplustoKpipi2010pp() { |
0233abe6 | 369 | // |
370 | // D+->Kpipi syst errors. Responsible: R. Bala | |
5541b811 | 371 | // 2010 pp sample |
0233abe6 | 372 | // |
373 | ||
1f91ef56 | 374 | |
375 | // Normalization | |
376 | fNorm = new TH1F("fNorm","fNorm",24,0,24); | |
f8bc42d3 | 377 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.04); // 4% error on sigmaV0and |
626bcf57 | 378 | |
379 | // Branching ratio | |
1f91ef56 | 380 | fBR = new TH1F("fBR","fBR",24,0,24); |
381 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.04); // 4% PDG2010 | |
626bcf57 | 382 | |
383 | // Tracking efficiency | |
1f91ef56 | 384 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24); |
f8bc42d3 | 385 | for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track) |
626bcf57 | 386 | |
387 | ||
388 | // Raw yield extraction | |
1f91ef56 | 389 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); |
d2e5959f | 390 | fRawYield->SetBinContent(1,1); |
1f91ef56 | 391 | fRawYield->SetBinContent(2,0.25); |
392 | fRawYield->SetBinContent(3,0.25); | |
d2e5959f | 393 | fRawYield->SetBinContent(4,0.20); |
1f91ef56 | 394 | fRawYield->SetBinContent(5,0.09); |
395 | fRawYield->SetBinContent(6,0.09); | |
d2e5959f | 396 | for(Int_t i=7;i<=12;i++) fRawYield->SetBinContent(i,0.05); |
397 | for(Int_t i=12;i<=24;i++) fRawYield->SetBinContent(i,0.10); | |
1f91ef56 | 398 | |
626bcf57 | 399 | // Cuts efficiency (from cuts variation) |
1f91ef56 | 400 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); |
401 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
626bcf57 | 402 | |
403 | // PID efficiency (from PID/noPID) | |
1f91ef56 | 404 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); |
405 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.05); // 5% | |
406 | fPIDEff->SetBinContent(1,0.15); // 15% | |
407 | fPIDEff->SetBinContent(2,0.15); // 15% | |
408 | fPIDEff->SetBinContent(3,0.15); // 15% | |
409 | fPIDEff->SetBinContent(4,0.15); // 15% | |
410 | for(Int_t i=12;i<=16;i++) fPIDEff->SetBinContent(i,0.10); // 5% | |
411 | ||
412 | // MC dN/dpt | |
413 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
414 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0); | |
578bfbba | 415 | fMCPtShape->SetBinContent(1,0.03); |
416 | fMCPtShape->SetBinContent(2,0.03); | |
626bcf57 | 417 | |
418 | ||
419 | // particle-antiparticle | |
420 | /* | |
421 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
422 | fPartAntipart->SetBinContent(1,1); | |
423 | fPartAntipart->SetBinContent(2,1); | |
424 | fPartAntipart->SetBinContent(3,0.12); | |
425 | for(Int_t i=4;i<=20;i++) fPartAntipart->SetBinContent(i,0.05); //5 to 12% | |
426 | */ | |
0233abe6 | 427 | return; |
428 | } | |
1f91ef56 | 429 | |
66247513 | 430 | //-------------------------------------------------------------------------- |
431 | void AliHFSystErr::InitDstoKKpi2010pp() { | |
432 | // | |
433 | // D+s->KKpi syst errors. Responsible: G.M. Innocenti | |
434 | // 2010 pp sample | |
435 | // | |
436 | ||
437 | ||
438 | // Normalization | |
439 | fNorm = new TH1F("fNorm","fNorm",12,0,12); | |
440 | for(Int_t i=1;i<=12;i++) fNorm->SetBinContent(i,0.07); // 7% error on sigmaV0and | |
441 | ||
442 | // Branching ratio | |
443 | fBR = new TH1F("fBR","fBR",12,0,12); | |
444 | for(Int_t i=1;i<=12;i++) fBR->SetBinContent(i,0.05); // 5% PDG2010 | |
445 | ||
446 | // Tracking efficiency | |
447 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",12,0,12); | |
448 | for(Int_t i=1;i<=12;i++) fTrackingEff->SetBinContent(i,0.03); // 3% (1% per track) | |
449 | ||
450 | ||
451 | // Raw yield extraction | |
452 | fRawYield = new TH1F("fRawYield","fRawYield",12,0,12); | |
453 | fRawYield->SetBinContent(1,1); | |
454 | fRawYield->SetBinContent(2,1); | |
455 | fRawYield->SetBinContent(3,0.20); | |
456 | fRawYield->SetBinContent(4,0.20); | |
457 | fRawYield->SetBinContent(5,0.15); | |
458 | fRawYield->SetBinContent(6,0.15); | |
459 | fRawYield->SetBinContent(7,0.15); | |
460 | fRawYield->SetBinContent(8,0.15); | |
461 | fRawYield->SetBinContent(9,0.20); | |
462 | fRawYield->SetBinContent(10,0.20); | |
463 | fRawYield->SetBinContent(11,0.20); | |
464 | fRawYield->SetBinContent(12,0.20); | |
465 | ||
466 | // Cuts efficiency (from cuts variation) | |
467 | fCutsEff = new TH1F("fCutsEff","fCutsEff",12,0,12); | |
468 | for(Int_t i=1;i<=12;i++) fCutsEff->SetBinContent(i,0.15); // 15% | |
469 | ||
470 | // PID efficiency (from PID/noPID) | |
471 | fPIDEff = new TH1F("fPIDEff","fPIDEff",12,0,12); | |
472 | for(Int_t i=1;i<=12;i++) fPIDEff->SetBinContent(i,0.07); // 7% | |
473 | ||
474 | // MC dN/dpt (copied from D0 : will update later) | |
475 | //fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",12,0,12); | |
476 | //for(Int_t i=1;i<=12;i++) fMCPtShape->SetBinContent(i,(Float_t)i*0.006); | |
477 | ||
478 | ||
479 | // particle-antiparticle | |
480 | /* | |
481 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",12,0,12); | |
482 | fPartAntipart->SetBinContent(1,1); | |
483 | fPartAntipart->SetBinContent(2,1); | |
484 | fPartAntipart->SetBinContent(3,0.12); | |
485 | for(Int_t i=4;i<=12;i++) fPartAntipart->SetBinContent(i,0.05); //5 to 12% | |
486 | */ | |
487 | return; | |
488 | } | |
489 | ||
490 | ||
0233abe6 | 491 | //-------------------------------------------------------------------------- |
5541b811 | 492 | void AliHFSystErr::InitDplustoKpipi2010PbPb020() { |
493 | // | |
494 | // D+->Kpipi syst errors. Responsible: ?? | |
495 | // 2010 PbPb sample, 0-20 CC | |
496 | // | |
aebba8df | 497 | |
aebba8df | 498 | // Normalization |
499 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
500 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
501 | ||
502 | // Branching ratio | |
503 | fBR = new TH1F("fBR","fBR",20,0,20); | |
504 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.04); // 4% PDG2010 | |
505 | ||
506 | // Tracking efficiency | |
507 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
6c388dee | 508 | 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 | 509 | |
510 | // Raw yield extraction | |
511 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
6c388dee | 512 | for(Int_t i=1;i<=20;i++) fRawYield->SetBinContent(i,.10); //5 to 10% |
513 | // fRawYield->SetBinContent(5,0.23); | |
514 | //fRawYield->SetBinContent(6,0.23); | |
cb142b90 | 515 | fRawYield->SetBinContent(7,0.20); |
516 | fRawYield->SetBinContent(8,0.20); | |
517 | fRawYield->SetBinContent(9,0.15); | |
518 | fRawYield->SetBinContent(10,0.15); | |
519 | fRawYield->SetBinContent(11,0.15); | |
520 | fRawYield->SetBinContent(12,0.15); | |
aebba8df | 521 | |
522 | // Cuts efficiency (from cuts variation) | |
523 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
666cf569 | 524 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.15); // 10% |
aebba8df | 525 | |
526 | // PID efficiency (from PID/noPID) | |
527 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
528 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 5% | |
aebba8df | 529 | |
530 | // MC dN/dpt (copied from D0 : will update later) | |
531 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
578bfbba | 532 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0.); |
533 | fMCPtShape->SetBinContent(1,0.03); | |
534 | fMCPtShape->SetBinContent(2,0.03); | |
aebba8df | 535 | |
536 | ||
537 | // particle-antiparticle | |
538 | /* | |
539 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
540 | fPartAntipart->SetBinContent(1,1); | |
541 | fPartAntipart->SetBinContent(2,1); | |
542 | fPartAntipart->SetBinContent(3,0.12); | |
543 | for(Int_t i=4;i<=20;i++) fPartAntipart->SetBinContent(i,0.05); //5 to 12% | |
544 | */ | |
6c388dee | 545 | |
5541b811 | 546 | return; |
547 | } | |
548 | ||
549 | //-------------------------------------------------------------------------- | |
550 | void AliHFSystErr::InitDplustoKpipi2010PbPb4080() { | |
551 | // | |
552 | // D+->Kpipi syst errors. Responsible: ?? | |
553 | // 2010 PbPb sample, 40-80 CC | |
554 | // | |
555 | ||
aebba8df | 556 | |
557 | // Normalization | |
558 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
559 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
560 | ||
561 | // Branching ratio | |
562 | fBR = new TH1F("fBR","fBR",20,0,20); | |
563 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.04); // 4% PDG2010 | |
564 | ||
565 | // Tracking efficiency | |
566 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
d921a376 | 567 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track) |
aebba8df | 568 | |
569 | ||
570 | // Raw yield extraction | |
571 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
572 | fRawYield->SetBinContent(1,1); | |
573 | fRawYield->SetBinContent(2,1); | |
574 | fRawYield->SetBinContent(3,1); | |
6970b225 | 575 | fRawYield->SetBinContent(4,0.15); |
cb142b90 | 576 | fRawYield->SetBinContent(5,0.05); |
577 | fRawYield->SetBinContent(6,0.05); | |
578 | fRawYield->SetBinContent(7,0.15); | |
579 | fRawYield->SetBinContent(8,0.15); | |
6970b225 | 580 | for(Int_t i=9;i<=12;i++) fRawYield->SetBinContent(i,0.15); |
aebba8df | 581 | for(Int_t i=13;i<=20;i++) fRawYield->SetBinContent(i,1); //5 to 10% |
582 | ||
583 | // Cuts efficiency (from cuts variation) | |
584 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
585 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
586 | ||
587 | // PID efficiency (from PID/noPID) | |
588 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
589 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 5% | |
590 | fPIDEff->SetBinContent(3,0.13); // 13% | |
591 | ||
592 | ||
593 | // MC dN/dpt (copied from D0 : will update later) | |
594 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
578bfbba | 595 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0); |
596 | fMCPtShape->SetBinContent(1,0.03); | |
597 | fMCPtShape->SetBinContent(2,0.03); | |
aebba8df | 598 | |
599 | ||
600 | // particle-antiparticle | |
601 | /* | |
602 | fPartAntipart = new TH1F("fPartAntipart","fPartAntipart",20,0,20); | |
603 | fPartAntipart->SetBinContent(1,1); | |
604 | fPartAntipart->SetBinContent(2,1); | |
605 | fPartAntipart->SetBinContent(3,0.12); | |
606 | for(Int_t i=4;i<=20;i++) fPartAntipart->SetBinContent(i,0.05); //5 to 12% | |
607 | */ | |
5541b811 | 608 | return; |
609 | } | |
610 | ||
a8c3295d | 611 | //-------------------------------------------------------------------------- |
612 | void AliHFSystErr::InitDplustoKpipi2010ppLowEn() { | |
613 | ||
614 | // | |
615 | // D+->Kpipi syst errors. Responsible: R. Bala | |
616 | // 2011 2.76 TeV pp sample | |
617 | // | |
618 | AliInfo(" Settings for D+ --> K pi pi p-p collisions at 2.76 TeV"); | |
619 | ||
620 | // Normalization | |
621 | fNorm = new TH1F("fNorm","fNorm",20,0,20); | |
622 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
623 | ||
624 | // Branching ratio | |
625 | fBR = new TH1F("fBR","fBR",20,0,20); | |
626 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.04); // 4% PDG2010 | |
627 | ||
628 | // Tracking efficiency | |
629 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
630 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.15); // 3% (1% per track) | |
631 | ||
632 | // Raw yield extraction | |
633 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
634 | fRawYield->SetBinContent(1,1); | |
635 | fRawYield->SetBinContent(2,1); | |
636 | fRawYield->SetBinContent(3,0.20); | |
637 | fRawYield->SetBinContent(4,0.20); | |
638 | for(Int_t i=5;i<=20;i++) fRawYield->SetBinContent(i,0.055); //5 to 10% | |
639 | ||
640 | // Cuts efficiency (from cuts variation) | |
641 | fCutsEff = new TH1F("fCutsEff","fCutsEff",20,0,20); | |
642 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
643 | ||
644 | // PID efficiency (from PID/noPID) | |
645 | fPIDEff = new TH1F("fPIDEff","fPIDEff",20,0,20); | |
646 | for(Int_t i=1;i<=20;i++) fPIDEff->SetBinContent(i,0.05); // 5% | |
647 | fPIDEff->SetBinContent(3,0.15); // 13% | |
648 | fPIDEff->SetBinContent(4,0.15); // 13% | |
649 | ||
650 | // MC dN/dpt (copied from D0 : will update later) | |
651 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",20,0,20); | |
578bfbba | 652 | for(Int_t i=1;i<=20;i++) fMCPtShape->SetBinContent(i,0.); |
653 | fMCPtShape->SetBinContent(1,0.03); | |
654 | fMCPtShape->SetBinContent(2,0.03); | |
a8c3295d | 655 | |
656 | return; | |
657 | } | |
658 | ||
5541b811 | 659 | //-------------------------------------------------------------------------- |
660 | void AliHFSystErr::InitDstartoD0pi2010pp() { | |
0233abe6 | 661 | // |
2cf98d0d | 662 | // D*+->D0pi syst errors. Responsible: A. Grelli, Y. Wang |
5541b811 | 663 | // 2010 pp sample |
0233abe6 | 664 | // |
665 | ||
2cf98d0d | 666 | // Normalization |
fa2be30c | 667 | fNorm = new TH1F("fNorm","fNorm",24,0,24); |
f8bc42d3 | 668 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.04); // 4% error on sigmaV0and |
fa2be30c | 669 | |
670 | // Branching ratio | |
671 | fBR = new TH1F("fBR","fBR",24,0,24); | |
672 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 | |
673 | ||
674 | // Tracking efficiency | |
675 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24); | |
676 | fTrackingEff->SetBinContent(1,1.0); | |
f8bc42d3 | 677 | fTrackingEff->SetBinContent(2,0.13); // 10% (ITSsa) \oplus 8% (4% per ITSTPC track) |
678 | fTrackingEff->SetBinContent(3,0.12); | |
679 | fTrackingEff->SetBinContent(3,0.12); | |
680 | for(Int_t i=4;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 12% (4% per track) | |
fa2be30c | 681 | |
682 | ||
683 | // Raw yield extraction | |
684 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); | |
685 | fRawYield->SetBinContent(1,1.0); | |
d2e5959f | 686 | fRawYield->SetBinContent(2,0.10); |
fa2be30c | 687 | fRawYield->SetBinContent(3,0.04); |
d2e5959f | 688 | fRawYield->SetBinContent(4,0.03); |
fa2be30c | 689 | fRawYield->SetBinContent(5,0.03); |
d2e5959f | 690 | fRawYield->SetBinContent(6,0.05); |
691 | fRawYield->SetBinContent(7,0.05); | |
692 | fRawYield->SetBinContent(8,0.05); | |
693 | for(Int_t i=9;i<=12;i++) fRawYield->SetBinContent(i,0.04); //4% | |
694 | for(Int_t i=13;i<=16;i++) fRawYield->SetBinContent(i,0.09); //4% | |
695 | for(Int_t i=17;i<=24;i++) fRawYield->SetBinContent(i,0.2); //4% | |
fa2be30c | 696 | |
697 | // Cuts efficiency (from cuts variation) | |
698 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); | |
699 | fCutsEff->SetBinContent(2,0.22); | |
700 | for(Int_t i=3;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
701 | ||
702 | // PID efficiency (from PID/noPID) | |
703 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); | |
704 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.04); // 3% | |
705 | ||
706 | ||
707 | // MC dN/dpt (copied from D0 : will update later) | |
708 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
578bfbba | 709 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0); |
710 | fMCPtShape->SetBinContent(1,0.03); | |
711 | fMCPtShape->SetBinContent(2,0.03); | |
fa2be30c | 712 | |
713 | return; | |
714 | ||
715 | ||
716 | } | |
717 | //-------------------------------------------------------------------------- | |
718 | void AliHFSystErr::InitDstartoD0pi2010ppLowEn() { | |
719 | ||
720 | // | |
721 | // D+->Kpipi syst errors. Responsible: A. Grelli | |
722 | // 2011 2.76 TeV pp sample | |
723 | // | |
724 | AliInfo(" Settings for D*+ --> D0 pi p-p collisions at 2.76 TeV"); | |
725 | ||
726 | // Normalization | |
2cf98d0d | 727 | fNorm = new TH1F("fNorm","fNorm",20,0,20); |
728 | for(Int_t i=1;i<=20;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
729 | ||
730 | // Branching ratio | |
731 | fBR = new TH1F("fBR","fBR",20,0,20); | |
8accac87 | 732 | for(Int_t i=1;i<=20;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 |
2cf98d0d | 733 | |
734 | // Tracking efficiency | |
735 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",20,0,20); | |
08ae44d3 | 736 | for(Int_t i=1;i<=20;i++) fTrackingEff->SetBinContent(i,0.15); //10% (to be checked!!) |
2cf98d0d | 737 | |
738 | // Raw yield extraction | |
739 | fRawYield = new TH1F("fRawYield","fRawYield",20,0,20); | |
8accac87 | 740 | fRawYield->SetBinContent(1,1); |
fa2be30c | 741 | fRawYield->SetBinContent(2,1); |
742 | fRawYield->SetBinContent(3,0.2); | |
743 | fRawYield->SetBinContent(4,0.2); | |
08ae44d3 | 744 | fRawYield->SetBinContent(5,0.08); |
745 | fRawYield->SetBinContent(6,0.08); | |
746 | fRawYield->SetBinContent(7,0.1); | |
747 | fRawYield->SetBinContent(8,0.1); | |
fa2be30c | 748 | fRawYield->SetBinContent(9,0.2); |
749 | fRawYield->SetBinContent(10,0.2); | |
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); | |
fa2be30c | 754 | for(Int_t i=1;i<=20;i++) fCutsEff->SetBinContent(i,0.18); |
755 | fCutsEff->SetBinContent(3,0.2); | |
756 | fCutsEff->SetBinContent(4,0.2); | |
757 | fCutsEff->SetBinContent(5,0.1); | |
758 | fCutsEff->SetBinContent(6,0.1); | |
759 | fCutsEff->SetBinContent(7,0.12); | |
760 | fCutsEff->SetBinContent(8,0.12); | |
761 | fCutsEff->SetBinContent(9,0.2); | |
762 | fCutsEff->SetBinContent(10,0.2); | |
066c6b9b | 763 | fCutsEff->SetBinContent(11,0.2); |
764 | fCutsEff->SetBinContent(12,0.2); | |
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 | |
fa2be30c | 776 | |
0233abe6 | 777 | return; |
778 | } | |
6c388dee | 779 | |
fa2be30c | 780 | //------------------------------------------------------------------------ |
5541b811 | 781 | void AliHFSystErr::InitDstartoD0pi2010PbPb020() { |
782 | // | |
fa2be30c | 783 | // D*+->D0pi syst errors. Responsible: A. Grelli |
5541b811 | 784 | // 2010 PbPb sample, 0-20 CC |
785 | // | |
786 | ||
fa2be30c | 787 | AliInfo(" Settings for D*+ --> D0pi Pb-Pb collisions at 2.76 TeV - 0-20 centrality - DUMMY"); |
788 | ||
789 | // Normalization | |
790 | fNorm = new TH1F("fNorm","fNorm",24,0,24); | |
791 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
792 | ||
793 | // Branching ratio | |
794 | fBR = new TH1F("fBR","fBR",24,0,24); | |
795 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 | |
796 | ||
797 | // Tracking efficiency | |
798 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24);; | |
6c388dee | 799 | 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 | 800 | |
801 | ||
802 | // Raw yield extraction | |
803 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); | |
6c388dee | 804 | for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.1); //4% |
805 | fRawYield->SetBinContent(3,0.2); | |
806 | fRawYield->SetBinContent(4,0.2); | |
807 | fRawYield->SetBinContent(5,0.2); | |
808 | fRawYield->SetBinContent(6,0.2); | |
fa2be30c | 809 | |
810 | // Cuts efficiency (from cuts variation) | |
811 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); | |
812 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
813 | ||
814 | // PID efficiency (from PID/noPID) | |
815 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); | |
6c388dee | 816 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.05); // 3% |
fa2be30c | 817 | |
818 | ||
819 | // MC dN/dpt (copied from D0 : will update later) | |
820 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
578bfbba | 821 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0.); |
822 | fMCPtShape->SetBinContent(1,0.03); | |
823 | fMCPtShape->SetBinContent(2,0.03); | |
fa2be30c | 824 | |
825 | return; | |
826 | ||
827 | } | |
6c388dee | 828 | |
fa2be30c | 829 | //------------------------------------------------------------------------- |
830 | void AliHFSystErr::InitDstartoD0pi2010PbPb2040() { | |
831 | // | |
832 | // D*+->D0pi syst errors. Responsible: A. Grelli | |
833 | // 2010 PbPb sample, 20-40 CC | |
834 | // | |
835 | ||
836 | AliInfo(" Settings for D*+ --> D0pi Pb-Pb collisions at 2.76 TeV - 20-40 centrality - DUMMY"); | |
837 | ||
838 | // Normalization | |
839 | fNorm = new TH1F("fNorm","fNorm",24,0,24); | |
840 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
841 | ||
842 | // Branching ratio | |
843 | fBR = new TH1F("fBR","fBR",24,0,24); | |
844 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 | |
845 | ||
846 | // Tracking efficiency | |
847 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24);; | |
848 | for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12); // 3% (1% per track) | |
849 | ||
850 | ||
851 | // Raw yield extraction | |
852 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); | |
853 | for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.15); //4% | |
854 | ||
855 | // Cuts efficiency (from cuts variation) | |
856 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); | |
857 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
858 | ||
859 | // PID efficiency (from PID/noPID) | |
860 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); | |
861 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.04); // 3% | |
862 | ||
863 | ||
864 | // MC dN/dpt (copied from D0 : will update later) | |
865 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
578bfbba | 866 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0.); |
867 | fMCPtShape->SetBinContent(1,0.03); | |
868 | fMCPtShape->SetBinContent(2,0.03); | |
fa2be30c | 869 | |
5541b811 | 870 | return; |
fa2be30c | 871 | |
5541b811 | 872 | } |
6c388dee | 873 | |
5541b811 | 874 | //-------------------------------------------------------------------------- |
875 | void AliHFSystErr::InitDstartoD0pi2010PbPb4080() { | |
876 | // | |
fa2be30c | 877 | // D*+->D0pi syst errors. Responsible: A. Grelli |
5541b811 | 878 | // 2010 PbPb sample, 40-80 CC |
879 | // | |
880 | ||
fa2be30c | 881 | AliInfo(" Settings for D*+ --> D0pi Pb-Pb collisions at 2.76 TeV - 40-80 centrality - DUMMY"); |
882 | ||
883 | // Normalization | |
884 | fNorm = new TH1F("fNorm","fNorm",24,0,24); | |
885 | for(Int_t i=1;i<=24;i++) fNorm->SetBinContent(i,0.10); // 10% error on sigmaV0and | |
886 | ||
887 | // Branching ratio | |
888 | fBR = new TH1F("fBR","fBR",24,0,24); | |
889 | for(Int_t i=1;i<=24;i++) fBR->SetBinContent(i,0.015); // 1.5% PDG2010 | |
890 | ||
891 | // Tracking efficiency | |
892 | fTrackingEff = new TH1F("fTrackingEff","fTrackingEff",24,0,24);; | |
6c388dee | 893 | for(Int_t i=1;i<=24;i++) fTrackingEff->SetBinContent(i,0.12);//0.5*(0.075+0.005*(Float_t)i)); |
fa2be30c | 894 | |
895 | ||
896 | // Raw yield extraction | |
897 | fRawYield = new TH1F("fRawYield","fRawYield",24,0,24); | |
6c388dee | 898 | for(Int_t i=1;i<=24;i++) fRawYield->SetBinContent(i,0.2); //4% |
899 | fRawYield->SetBinContent(1,1); | |
900 | fRawYield->SetBinContent(2,0.15); | |
901 | fRawYield->SetBinContent(3,0.15); | |
902 | fRawYield->SetBinContent(4,0.15); | |
903 | fRawYield->SetBinContent(5,0.15); | |
904 | fRawYield->SetBinContent(6,0.10); | |
905 | fRawYield->SetBinContent(7,0.10); | |
906 | fRawYield->SetBinContent(8,0.10); | |
907 | fRawYield->SetBinContent(9,0.11); | |
908 | fRawYield->SetBinContent(10,0.11); | |
909 | fRawYield->SetBinContent(11,0.11); | |
910 | fRawYield->SetBinContent(12,0.11); | |
911 | fRawYield->SetBinContent(13,0.08); | |
912 | fRawYield->SetBinContent(14,0.08); | |
913 | fRawYield->SetBinContent(15,0.08); | |
914 | fRawYield->SetBinContent(16,0.08); | |
915 | ||
916 | ||
fa2be30c | 917 | // Cuts efficiency (from cuts variation) |
918 | fCutsEff = new TH1F("fCutsEff","fCutsEff",24,0,24); | |
919 | for(Int_t i=1;i<=24;i++) fCutsEff->SetBinContent(i,0.10); // 10% | |
920 | ||
921 | // PID efficiency (from PID/noPID) | |
922 | fPIDEff = new TH1F("fPIDEff","fPIDEff",24,0,24); | |
6c388dee | 923 | for(Int_t i=1;i<=24;i++) fPIDEff->SetBinContent(i,0.05); // 3% |
fa2be30c | 924 | |
925 | ||
926 | // MC dN/dpt (copied from D0 : will update later) | |
927 | fMCPtShape = new TH1F("fMCPtShape","fMCPtShape",24,0,24); | |
578bfbba | 928 | for(Int_t i=1;i<=24;i++) fMCPtShape->SetBinContent(i,0.); |
929 | fMCPtShape->SetBinContent(1,0.03); | |
930 | fMCPtShape->SetBinContent(2,0.03); | |
fa2be30c | 931 | |
5541b811 | 932 | return; |
fa2be30c | 933 | |
5541b811 | 934 | } |
6c388dee | 935 | |
5541b811 | 936 | //-------------------------------------------------------------------------- |
0233abe6 | 937 | Double_t AliHFSystErr::GetCutsEffErr(Double_t pt) const { |
938 | // | |
939 | // Get error | |
940 | // | |
941 | ||
942 | Int_t bin=fCutsEff->FindBin(pt); | |
943 | ||
944 | return fCutsEff->GetBinContent(bin); | |
945 | } | |
946 | //-------------------------------------------------------------------------- | |
947 | Double_t AliHFSystErr::GetMCPtShapeErr(Double_t pt) const { | |
948 | // | |
949 | // Get error | |
950 | // | |
951 | ||
952 | Int_t bin=fMCPtShape->FindBin(pt); | |
953 | ||
954 | return fMCPtShape->GetBinContent(bin); | |
955 | } | |
956 | //-------------------------------------------------------------------------- | |
957 | Double_t AliHFSystErr::GetSeleEffErr(Double_t pt) const { | |
958 | // | |
959 | // Get error | |
960 | // | |
961 | ||
962 | Double_t err=GetCutsEffErr(pt)*GetCutsEffErr(pt)+GetMCPtShapeErr(pt)*GetMCPtShapeErr(pt); | |
963 | ||
964 | return TMath::Sqrt(err); | |
965 | } | |
966 | //-------------------------------------------------------------------------- | |
967 | Double_t AliHFSystErr::GetPIDEffErr(Double_t pt) const { | |
968 | // | |
969 | // Get error | |
970 | // | |
971 | ||
972 | Int_t bin=fPIDEff->FindBin(pt); | |
973 | ||
974 | return fPIDEff->GetBinContent(bin); | |
975 | } | |
976 | //-------------------------------------------------------------------------- | |
977 | Double_t AliHFSystErr::GetTrackingEffErr(Double_t pt) const { | |
978 | // | |
979 | // Get error | |
980 | // | |
981 | ||
982 | Int_t bin=fTrackingEff->FindBin(pt); | |
983 | ||
984 | return fTrackingEff->GetBinContent(bin); | |
985 | } | |
986 | //-------------------------------------------------------------------------- | |
987 | Double_t AliHFSystErr::GetRawYieldErr(Double_t pt) const { | |
988 | // | |
989 | // Get error | |
990 | // | |
991 | ||
992 | Int_t bin=fRawYield->FindBin(pt); | |
993 | ||
994 | return fRawYield->GetBinContent(bin); | |
995 | } | |
996 | //-------------------------------------------------------------------------- | |
997 | Double_t AliHFSystErr::GetPartAntipartErr(Double_t pt) const { | |
998 | // | |
999 | // Get error | |
1000 | // | |
1001 | ||
1002 | Int_t bin=fPartAntipart->FindBin(pt); | |
1003 | ||
1004 | return fPartAntipart->GetBinContent(bin); | |
1005 | } | |
1006 | //-------------------------------------------------------------------------- | |
1007 | Double_t AliHFSystErr::GetTotalSystErr(Double_t pt,Double_t feeddownErr) const { | |
1008 | // | |
1009 | // Get total syst error (except norm. error) | |
1010 | // | |
1011 | ||
1012 | Double_t err=0.; | |
1013 | ||
1014 | if(fRawYield) err += GetRawYieldErr(pt)*GetRawYieldErr(pt); | |
1015 | if(fTrackingEff) err += GetTrackingEffErr(pt)*GetTrackingEffErr(pt); | |
1016 | if(fBR) err += GetBRErr()*GetBRErr(); | |
1017 | if(fCutsEff) err += GetCutsEffErr(pt)*GetCutsEffErr(pt); | |
1018 | if(fPIDEff) err += GetPIDEffErr(pt)*GetPIDEffErr(pt); | |
1019 | if(fMCPtShape) err += GetMCPtShapeErr(pt)*GetMCPtShapeErr(pt); | |
1020 | if(fPartAntipart) err += GetPartAntipartErr(pt)*GetPartAntipartErr(pt); | |
1021 | ||
1022 | err += feeddownErr*feeddownErr; | |
1023 | ||
1024 | return TMath::Sqrt(err); | |
1025 | } | |
1026 | //--------------------------------------------------------------------------- | |
5ad8ad40 | 1027 | void AliHFSystErr::DrawErrors(TGraphAsymmErrors *grErrFeeddown) const { |
0233abe6 | 1028 | // |
1029 | // Draw errors | |
1030 | // | |
1031 | gStyle->SetOptStat(0); | |
1032 | ||
a07118d0 | 1033 | TCanvas *cSystErr = new TCanvas("cSystErr","Systematic Errors",300,80,640,500); |
1034 | cSystErr->Range(0.20,-0.5,18.4,0.34); | |
1035 | cSystErr->SetRightMargin(0.318); | |
0233abe6 | 1036 | cSystErr->SetFillColor(0); |
1037 | ||
2ee3afe2 | 1038 | TH2F *hFrame = new TH2F("hFrame","Systematic errors; p_{t} [GeV/c]; Relative Error",20,0,20,100,-1,+1); |
f1d72175 | 1039 | hFrame->SetAxisRange(1.,15.9,"X"); |
a07118d0 | 1040 | hFrame->SetAxisRange(-0.5,0.5,"Y"); |
0233abe6 | 1041 | hFrame->Draw(); |
1042 | ||
a07118d0 | 1043 | TLegend *leg = new TLegend(0.69,0.44,0.98,0.86,NULL,"brNDC"); |
1044 | leg->SetTextSize(0.03601695); | |
0233abe6 | 1045 | leg->SetFillStyle(0); |
1046 | leg->SetBorderSize(0); | |
2ee3afe2 | 1047 | |
f1d72175 | 1048 | TH1F *hTotErr=new TH1F("hTotErr","",24,0,24); |
2ee3afe2 | 1049 | Int_t nbins = fNorm->GetNbinsX(); |
1050 | TGraphAsymmErrors *gTotErr = new TGraphAsymmErrors(nbins); | |
f1d72175 | 1051 | for(Int_t i=1;i<=24;i++) { |
2ee3afe2 | 1052 | Double_t pt = hTotErr->GetBinCenter(i); |
1053 | Double_t ptwidth = hTotErr->GetBinWidth(i); | |
1054 | ||
1055 | if(grErrFeeddown) { | |
1056 | Double_t x=0., y=0., errxl=0., errxh=0., erryl=0., erryh=0.; | |
1057 | Double_t toterryl=0., toterryh=0.; | |
1058 | for(Int_t j=0; j<grErrFeeddown->GetN(); j++) { | |
1059 | grErrFeeddown->GetPoint(j,x,y); | |
1060 | errxh = grErrFeeddown->GetErrorXhigh(j); | |
1061 | errxl = grErrFeeddown->GetErrorXlow(j); | |
a07118d0 | 1062 | if ( ( (x-errxl) <= pt) && ( (x+errxl) >= pt) ) { |
2ee3afe2 | 1063 | erryh = grErrFeeddown->GetErrorYhigh(j); |
1064 | erryl = grErrFeeddown->GetErrorYlow(j); | |
1065 | } | |
1066 | } | |
1067 | if (erryl>=1e-3) toterryl = GetTotalSystErr(pt,erryl); | |
1068 | else toterryl = GetTotalSystErr(pt); | |
1069 | if (erryh>=1e-3) toterryh = GetTotalSystErr(pt,erryh); | |
1070 | else toterryh = GetTotalSystErr(pt); | |
1071 | ||
1072 | hTotErr->SetBinContent(i,toterryh); | |
1073 | gTotErr->SetPoint(i,pt,0.); | |
1074 | gTotErr->SetPointError(i,ptwidth/2.,ptwidth/2.,toterryl,toterryh); // i, exl, exh, eyl, eyh | |
1075 | } | |
1076 | else { | |
1077 | hTotErr->SetBinContent(i,GetTotalSystErr(pt)); | |
1078 | gTotErr->SetPoint(i,pt,0.); | |
1079 | gTotErr->SetPointError(i,ptwidth/2.,ptwidth/2.,GetTotalSystErr(pt),GetTotalSystErr(pt)); // i, exl, exh, eyl, eyh | |
1080 | } | |
1081 | ||
1082 | } | |
f968ef30 | 1083 | gTotErr->SetLineColor(kBlack); |
1084 | gTotErr->SetFillColor(kRed); | |
1085 | gTotErr->SetFillStyle(3002); | |
2ee3afe2 | 1086 | gTotErr->Draw("2"); |
1087 | leg->AddEntry(gTotErr,"Total (excl. norm.)","f"); | |
1088 | // hTotErr->SetLineColor(1); | |
1089 | // hTotErr->SetLineWidth(3); | |
1090 | // hTotErr->Draw("same"); | |
1091 | // leg->AddEntry(hTotErr,"Total (excl. norm.)","l"); | |
1092 | ||
0233abe6 | 1093 | |
e373b9f0 | 1094 | fNorm->SetFillColor(1); |
1095 | fNorm->SetFillStyle(3002); | |
1096 | //fNorm->Draw("same"); | |
1097 | //TH1F *hNormRefl = ReflectHisto(fNorm); | |
1098 | //hNormRefl->Draw("same"); | |
1099 | leg->AddEntry(fNorm,"Normalization (10%)",""); | |
1100 | ||
5ad8ad40 | 1101 | if(grErrFeeddown) { |
1102 | grErrFeeddown->SetFillColor(kTeal-8); | |
1103 | grErrFeeddown->SetFillStyle(3001); | |
1104 | grErrFeeddown->Draw("2"); | |
1105 | leg->AddEntry(grErrFeeddown,"Feed-down from B","f"); | |
1106 | } | |
0233abe6 | 1107 | if(fTrackingEff) { |
5ad8ad40 | 1108 | fTrackingEff->SetFillColor(4); |
1109 | fTrackingEff->SetFillStyle(3006); | |
0233abe6 | 1110 | fTrackingEff->Draw("same"); |
f968ef30 | 1111 | TH1F *hTrackingEffRefl = ReflectHisto(fTrackingEff); |
1112 | hTrackingEffRefl->Draw("same"); | |
0233abe6 | 1113 | leg->AddEntry(fTrackingEff,"Tracking efficiency","f"); |
1114 | } | |
1115 | if(fBR) { | |
1116 | fBR->SetFillColor(6); | |
1117 | fBR->SetFillStyle(3005); | |
5ad8ad40 | 1118 | //fBR->SetFillStyle(3020); |
0233abe6 | 1119 | fBR->Draw("same"); |
f968ef30 | 1120 | TH1F *hBRRefl = ReflectHisto(fBR); |
1121 | hBRRefl->Draw("same"); | |
0233abe6 | 1122 | leg->AddEntry(fBR,"Branching ratio","f"); |
1123 | } | |
1124 | if(fRawYield) { | |
5ad8ad40 | 1125 | Int_t ci; // for color index setting |
1126 | ci = TColor::GetColor("#00cc00"); | |
1127 | fRawYield->SetLineColor(ci); | |
1128 | // fRawYield->SetLineColor(3); | |
0233abe6 | 1129 | fRawYield->SetLineWidth(3); |
1130 | fRawYield->Draw("same"); | |
f968ef30 | 1131 | TH1F *hRawYieldRefl = ReflectHisto(fRawYield); |
1132 | hRawYieldRefl->Draw("same"); | |
844405bc | 1133 | leg->AddEntry(fRawYield,"Yield extraction","l"); |
0233abe6 | 1134 | } |
1135 | if(fCutsEff) { | |
1136 | fCutsEff->SetLineColor(4); | |
1137 | fCutsEff->SetLineWidth(3); | |
1138 | fCutsEff->Draw("same"); | |
f968ef30 | 1139 | TH1F *hCutsEffRefl = ReflectHisto(fCutsEff); |
1140 | hCutsEffRefl->Draw("same"); | |
0233abe6 | 1141 | leg->AddEntry(fCutsEff,"Cuts efficiency","l"); |
1142 | } | |
1143 | if(fPIDEff) { | |
1144 | fPIDEff->SetLineColor(7); | |
1145 | fPIDEff->SetLineWidth(3); | |
1146 | fPIDEff->Draw("same"); | |
f968ef30 | 1147 | TH1F *hPIDEffRefl = ReflectHisto(fPIDEff); |
1148 | hPIDEffRefl->Draw("same"); | |
0233abe6 | 1149 | leg->AddEntry(fPIDEff,"PID efficiency","l"); |
1150 | } | |
1151 | if(fMCPtShape) { | |
5ad8ad40 | 1152 | Int_t ci = TColor::GetColor("#9933ff"); |
1153 | fMCPtShape->SetLineColor(ci); | |
1154 | // fMCPtShape->SetLineColor(8); | |
0233abe6 | 1155 | fMCPtShape->SetLineWidth(3); |
1156 | fMCPtShape->Draw("same"); | |
f968ef30 | 1157 | TH1F *hMCPtShapeRefl = ReflectHisto(fMCPtShape); |
1158 | hMCPtShapeRefl->Draw("same"); | |
0233abe6 | 1159 | leg->AddEntry(fMCPtShape,"MC p_{t} shape","l"); |
1160 | } | |
1161 | if(fPartAntipart) { | |
5ad8ad40 | 1162 | Int_t ci = TColor::GetColor("#ff6600"); |
1163 | fPartAntipart->SetLineColor(ci); | |
1164 | // fPartAntipart->SetLineColor(9); | |
0233abe6 | 1165 | fPartAntipart->SetLineWidth(3); |
1166 | fPartAntipart->Draw("same"); | |
f968ef30 | 1167 | TH1F *hPartAntipartRefl = ReflectHisto(fPartAntipart); |
1168 | hPartAntipartRefl->Draw("same"); | |
0233abe6 | 1169 | leg->AddEntry(fPartAntipart,"D = #bar{D}","l"); |
1170 | } | |
0233abe6 | 1171 | |
0233abe6 | 1172 | |
1173 | leg->Draw(); | |
1174 | ||
5ad8ad40 | 1175 | cSystErr->SaveAs("RelativeSystematics.eps"); |
1176 | ||
0233abe6 | 1177 | return; |
1178 | } | |
f968ef30 | 1179 | //------------------------------------------------------------------------- |
1180 | TH1F* AliHFSystErr::ReflectHisto(TH1F *hin) const { | |
1181 | // | |
1182 | // Clones and reflects histogram | |
1183 | // | |
1184 | TH1F *hout=(TH1F*)hin->Clone("hout"); | |
1185 | hout->Scale(-1.); | |
1186 | ||
1187 | return hout; | |
1188 | } |