AliPhysics  a6017e1 (a6017e1)
AliHFSystErr.h
Go to the documentation of this file.
1 #ifndef ALIHFSYSTERR_H
2 #define ALIHFSYSTERR_H
3 /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
8 //***********************************************************
12 //***********************************************************
13 
14 #include <TNamed.h>
15 #include <TString.h>
16 #include <TH1F.h>
17 #include "AliLog.h"
18 #include "TGraphAsymmErrors.h"
19 
20 
21 class AliHFSystErr : public TNamed
22 {
23  public:
24 
25  AliHFSystErr(const Char_t* name="HFSystErr", const Char_t* title="");
26 
27  virtual ~AliHFSystErr();
28 
29  void DrawErrors(TGraphAsymmErrors *grErrFeeddown=0) const;
30 
31  Double_t GetNormErr() const {return (fNorm ? fNorm->GetBinContent(0) : 0.);}
32  Double_t GetBRErr() const {return (fBR ? fBR->GetBinContent(0) : 0.);}
37  Double_t GetPIDEffErr(Double_t pt) const;
40  Double_t GetTotalSystErr(Double_t pt,Double_t feeddownErr=0) const;
41 
44  void SetRunNumber(Int_t number) {
45  fRunNumber = number;
46  AliInfo(Form(" Settings for run year 20%2d",fRunNumber));
47  }
48  Int_t GetRunNumber() const { return fRunNumber; }
51  void SetCollisionType(Int_t type) {
52  fCollisionType = type;
53  if (fCollisionType==0) { AliInfo(" Settings for p-p collisions"); }
54  else if(fCollisionType==1) { AliInfo(" Settings for Pb-Pb collisions"); }
55  else if(fCollisionType==2) { AliInfo(" Settings for p-Pb collisions"); }
56  }
62  AliInfo(Form(" Settings for centrality class %s",fCentralityClass.Data()));
63  }
64  void SetIsLowEnergy(Bool_t flag) {
65  fIsLowEnergy = flag;
66  if(flag) AliInfo(" Settings for the low energy run");
67  }
69  fIsLowPtAnalysis = flag;
70  if(flag) AliInfo("Settings for the low pt analysis");
71  }
73  fIsPass4Analysis = flag;
74  if(flag) AliInfo("Settings for the pass4 analysis");
75  }
77  fIs5TeVAnalysis = flag;
78  if(flag) AliInfo("Settings for the 5TeV analysis");
79  }
80  void SetStandardBins(Bool_t flag){
81  fStandardBins= flag;
82  }
83 
85  fIsBDTAnalysis = flag;
86  if(flag) AliInfo("Settings for the Lc and Ds BDT analysis");
87  }
88 
90  fIsCentScan = flag;
91  if(flag) AliInfo(" Settings for the PbPb 2010 energy scan");
92  }
93 
97  AliInfo(Form(" Settings for rapidity interval %s",fRapidityRange.Data()));
98  }
100  fIsRapidityScan = flag;
101  if(flag) AliInfo("Settings for the pPb vs y measurement");
102  }
103 
105  void Init(Int_t decay);
106 
112 
115 
121 
127 
134 
141 
148 
154 
160 
166 
171 
176 
179 
184 
189 
194 
197 
202 
207 
212 
217 
223 
224  private:
225 
226  AliHFSystErr(const AliHFSystErr& source);
227  AliHFSystErr& operator=(const AliHFSystErr& source);
228 
229  void InitD0toKpi2010pp();
230  void InitD0toKpi2010ppLowEn();
232  void InitD0toKpi2010ppPass4();
233  void InitD0toKpi2015pp5TeV();
234  void InitD0toKpi2017pp5TeV();
238  void InitD0toKpi2016pp13TeV();
240  void InitD0toKpi2010PbPb020();
242  void InitD0toKpi2011PbPb3050();
243  void InitD0toKpi2011PbPb010();
244  void InitD0toKpi2013pPb0100();
245  void InitD0toKpi2016pPb0100();
248 
249  void InitDplustoKpipi2010pp();
252  void InitDplustoKpipi2012pp();
263 
264  void InitDstartoD0pi2010pp();
266  void InitDstartoD0pi2012pp();
279 
280  void InitDstoKKpi2010pp();
282  void InitDstoKKpi2017pp5TeV();
293 
294  void InitLctopKpi2010pp();
295  void InitLctopKpi2010ppBDT();
296  void InitLctopKpi2013pPb();
297  void InitLctopKpi2013pPbBDT();
298  void InitLctopKpi2016pPb();
299 
300  void InitLctopK0S2010pp();
301  void InitLctopK0S2013pPb();
302  void InitLctopK0S2013pPbBDT();
303  void InitLctopK0S2016pPb();
304  void InitLctopK0S2016pPbBDT();
305  void InitLctopK0S2017pp5TeV();
306 
307  void InitD0toKpi2015PbPb010();
310 
314 
318 
322 
323 
324  TH1F* ReflectHisto(TH1F *hin) const;
325 
326  TH1F *fNorm;
327  TH1F *fRawYield;
328  TH1F *fTrackingEff;
329  TH1F *fBR;
330  TH1F *fCutsEff;
331  TH1F *fPIDEff;
332  TH1F *fMCPtShape;
334 
340 
349 
351  ClassDef(AliHFSystErr,10);
352 };
354 
355 #endif
void InitDstartoD0pi2010PbPb2040CentScan()
void InitDplustoKpipi2016pPb60100ZNA()
void InitDstartoD0pi2011PbPb2030CentScan()
void InitDplustoKpipi2011PbPb3040CentScan()
void InitD0toKpi2010ppPass4()
void SetIsLowEnergy(Bool_t flag)
Definition: AliHFSystErr.h:64
void InitDstartoD0pi2013pPb2040ZNA()
void InitD0toKpi2010PbPb6080CentScan()
void InitDplustoKpipi2010ppLowEn()
void InitDplustoKpipi2013pPb020ZNA()
void InitD0toKpi2017pp5TeV_finebins()
void InitD0toKpi2013pPb0100()
double Double_t
Definition: External.C:58
void InitD0toKpi2013pPb60100CL1()
void InitDplustoKpipi2015pp5TeV()
void InitDplustoKpipi2013pPb60100CL1()
void InitDstartoD0pi2013pPb2040V0A()
const char * title
Definition: MakeQAPdf.C:27
void InitDplustoKpipi2015PbPb010()
void InitDstoKKpi2010ppPass4()
void InitDstoKKpi2015PbPb6080()
Bool_t fIsBDTAnalysis
flag for the pp5TeV analysis
Definition: AliHFSystErr.h:345
void InitDstoKKpi2015PbPb3050()
TString fRapidityRange
MB:0100, 0-10:010, 0-20:020 ...40-80:4080...
Definition: AliHFSystErr.h:339
void InitDstartoD0pi2010PbPb6080CentScan()
void InitD0toKpi2015PbPb6080()
void InitDstartoD0pi2013pPb0100RapScan0104()
void InitDplustoKpipi2011PbPb3050()
void InitDplustoKpipi2013pPb0100RapScan0408()
void InitD0toKpi2013pPb2040CL1()
void InitD0toKpi2013pPb4060CL1()
void InitDplustoKpipi2016pPb4070trkl()
Bool_t fIs5TeVAnalysis
flag for the pass4 analysis
Definition: AliHFSystErr.h:344
TH1F * fPIDEff
cuts efficiency
Definition: AliHFSystErr.h:331
void InitD0toKpi2016pPb60100ZNA()
void InitDplustoKpipi2011PbPb010()
void InitDstartoD0pi2013pPb60100CL1()
void InitLctopK0S2013pPbBDT()
void InitD0toKpi2017pp5TeV()
void InitD0toKpi2017pp5TeVLowPtAn()
void InitDplustoKpipi2011PbPb010CentScan()
void InitD0toKpi2011PbPb1020CentScan()
Bool_t fIsLowEnergy
Rapidity range fot y measurements.
Definition: AliHFSystErr.h:341
void InitDstartoD0pi2016pPb60100ZNA()
void InitDplustoKpipi2013pPb0100RapScan0401()
void InitDstartoD0pi2011PbPb3040CentScan()
centrality
void SetCentrality(TString centrality)
Definition: AliHFSystErr.h:60
char Char_t
Definition: External.C:18
void InitD0toKpi2013pPb0100RapScan0408()
void InitD0toKpi2017pp5TeVLowPtAn_finebins()
TH1F * fBR
tracking efficiency
Definition: AliHFSystErr.h:329
void InitD0toKpi2010PbPb020()
void InitDstartoD0pi2013pPb0100()
void InitDstartoD0pi2012pp()
TH1F * fMCPtShape
PID efficiency.
Definition: AliHFSystErr.h:332
void InitDplustoKpipi2013pPb4060V0A()
Bool_t fStandardBins
flag fot the PbPb centrality scan
Definition: AliHFSystErr.h:347
void InitLctopK0S2010pp()
void InitDstoKKpi2016pPb140trkl()
void InitDplustoKpipi2015PbPb3050()
void InitDstartoD0pi2010PbPb2040()
void InitDstartoD0pi2010PbPb4060CentScan()
void SetIsPbPb2010EnergyScan(Bool_t flag)
Definition: AliHFSystErr.h:89
void InitDplustoKpipi2010PbPb1020CentScan()
void InitDstoKKpi2011PbPb2050()
Double_t GetCutsEffErr(Double_t pt) const
void InitDstartoD0pi2011PbPb010()
void InitDstartoD0pi2010PbPb020()
Double_t GetNormErr() const
Definition: AliHFSystErr.h:31
void InitDstartoD0pi2013pPb60100ZNA()
void InitD0toKpi2016pp13TeV()
void InitDstartoD0pi2015PbPb010()
void InitDplustoKpipi2013pPb0100RapScan0101()
void InitD0toKpi2015PbPb3050()
void InitDstoKKpi2017pp5TeVBDT()
void InitDplustoKpipi2010PbPb020()
void InitDstartoD0pi2013pPb0100RapScan0408()
void InitDstartoKpipi2016pp13TeV()
TH1F * ReflectHisto(TH1F *hin) const
void InitDplustoKpipi2016pPb010ZNA()
void InitD0toKpi2010pp()
void InitD0toKpi2016pPb0100()
void InitD0toKpi2011PbPb010CentScan()
Int_t GetRunNumber() const
Definition: AliHFSystErr.h:48
void InitDplustoKpipi2013pPb60100ZNA()
void SetIsBDTAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:84
void InitDplustoKpipi2013pPb0100RapScan0804()
void InitD0toKpi2011PbPb3050()
Double_t GetBRErr() const
Definition: AliHFSystErr.h:32
void InitDstartoD0pi2011PbPb1020CentScan()
Double_t GetPartAntipartErr(Double_t pt) const
void InitDstartoD0pi2011PbPb4050CentScan()
void InitDplustoKpipi2010PbPb4060CentScan()
void InitD0toKpi2013pPb2040V0A()
void InitDplustoKpipi2010PbPb4080()
void InitD0toKpi2013pPb4060ZNA()
void InitDstartoD0pi2016pPb0100()
void InitD0toKpi2010PbPb2040CentScan()
Double_t GetSeleEffErr(Double_t pt) const
void InitDplustoKpipi2015PbPb6080()
void InitD0toKpi2013pPb0100RapScan0401()
void InitD0toKpi2013pPb020V0A()
void InitD0toKpi2010PbPb010CentScan()
void InitD0toKpi2015PbPb010()
void InitD0toKpi2013pPb0100RapScan0804()
void InitDstartoD0pi2015PbPb6080()
int Int_t
Definition: External.C:63
void InitD0toKpi2013pPb2040ZNA()
void InitLctopKpi2013pPbBDT()
void InitDstartoD0pi2010ppLowEn()
void InitLctopKpi2010pp()
void InitLctopKpi2010ppBDT()
void InitDstartoD0pi2013pPb020V0A()
void InitLctopK0S2013pPb()
void InitD0toKpi2010PbPb5080CentScan()
void InitD0toKpi2013pPb0100RapScan0104()
void InitDstartoD0pi2010PbPb1020CentScan()
void InitD0toKpi2013pPb020CL1()
AliHFSystErr & operator=(const AliHFSystErr &source)
void InitDstartoD0pi2015PbPb3050()
void InitDstartoD0pi2010PbPb010CentScan()
Double_t GetTrackingEffErr(Double_t pt) const
void InitD0toKpi2013pPb60100V0A()
void InitLctopK0S2016pPb()
void InitDstartoD0pi2011PbPb07half()
void InitD0toKpi2011PbPb07half()
void InitDstartoD0pi2013pPb4060ZNA()
void InitD0toKpi2015pp5TeV()
void InitDstartoD0pi2013pPb0100RapScan0401()
TH1F * fRawYield
normalization
Definition: AliHFSystErr.h:327
void InitDstartoD0pi2010PbPb5080CentScan()
void InitDplustoKpipi2013pPb2040CL1()
void InitDstartoD0pi2010PbPb4080()
void InitDplustoKpipi2013pPb020V0A()
void InitLctopKpi2016pPb()
rapidity
Definition: HFPtSpectrum.C:47
void InitDplustoKpipi2016pPb140trkl()
void InitDstartoD0pi2013pPb4060V0A()
AliHFSystErr(const Char_t *name="HFSystErr", const Char_t *title="")
void InitDstartoD0pi2013pPb0100RapScan0101()
void InitDplustoKpipi2010PbPb6080CentScan()
void InitD0toKpi2016pPb0100LowPtAn()
TH1F * fPartAntipart
MC dNdpt.
Definition: AliHFSystErr.h:333
void SetIsPass4Analysis(Bool_t flag)
Definition: AliHFSystErr.h:72
void InitDstartoD0pi2013pPb020ZNA()
Bool_t fIsRapidityScan
flag for the standard bins in pp@5TeV
Definition: AliHFSystErr.h:348
void InitD0toKpi2013pPb4060V0A()
void InitDstoKKpi2013pPb0100()
void InitDplustoKpipi2013pPb4060ZNA()
TH1F * fTrackingEff
raw yield
Definition: AliHFSystErr.h:328
void InitDplustoKpipi2013pPb0100()
TString fCentralityClass
Collision type: pp=0, PbPb=1.
Definition: AliHFSystErr.h:337
void InitDstoKKpi2016pPb4070trkl()
void InitDplustoKpipi2010pp()
Double_t GetTotalSystErr(Double_t pt, Double_t feeddownErr=0) const
void InitDstartoD0pi2017pp5TeV_finebins()
void InitD0toKpi2011PbPb3040CentScan()
void InitDplustoKpipi2010PbPb010CentScan()
void InitDplustoKpipi2011PbPb4050CentScan()
void InitDstoKKpi2016pPb70200trkl()
void InitDstartoD0pi2013pPb020CL1()
void InitD0toKpi2013pPb60100ZNA()
void InitD0toKpi2013pPb020ZNA()
void InitD0toKpi2010ppLowEn()
Bool_t fIsLowPtAnalysis
flag for the low energy (2.76TeV) run
Definition: AliHFSystErr.h:342
void InitDplustoKpipi2017pp5TeV()
void SetIsLowPtAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:68
void InitDstartoD0pi2016pPb010ZNA()
void InitDstoKKpi2011PbPb07half()
void InitDstoKKpi2015PbPb010()
void InitD0toKpi2010PbPb4060CentScan()
void InitDstoKKpi2016pp13TeV()
void InitDplustoKpipi2010ppPass4()
decay
Definition: HFPtSpectrum.C:41
void Init(Int_t decay)
Function to initialize the variables/histograms.
void InitLctopK0S2016pPbBDT()
void SetIspPb2011RapidityScan(Bool_t flag)
Definition: AliHFSystErr.h:99
void InitD0toKpi2010PbPb1020CentScan()
void InitDstartoD0pi2017pp5TeV()
void InitDstartoD0pi2011PbPb010CentScan()
Double_t GetRawYieldErr(Double_t pt) const
void InitDstoKKpi2016pPb0100()
void InitDstoKKpi2010pp()
void InitDplustoKpipi2011PbPb1020CentScan()
void InitDplustoKpipi2013pPb020CL1()
void InitD0toKpi2010ppLowPtAn()
void InitD0toKpi2010PbPb4080()
void InitDstartoD0pi2013pPb2040CL1()
void SetCollisionType(Int_t type)
Definition: AliHFSystErr.h:51
void InitD0toKpi2011PbPb2030CentScan()
void InitDplustoKpipi2011PbPb07half()
void InitDstartoD0pi2010pp()
void InitDplustoKpipi2013pPb2040ZNA()
void InitD0toKpi2011PbPb010()
void InitDplustoKpipi2013pPb2040V0A()
void InitDplustoKpipi2016pPb0100()
void SetIs5TeVAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:76
void InitD0toKpi2011PbPb4050CentScan()
void InitDstartoD0pi2010ppPass4()
void InitDstartoD0pi2013pPb4060CL1()
void InitDplustoKpipi2013pPb4060CL1()
void InitDplustoKpipi2010PbPb2040CentScan()
void InitD0toKpi2013pPb0100RapScan0101()
Bool_t fIsPass4Analysis
flag for the low pt analysis (no topological cuts)
Definition: AliHFSystErr.h:343
bool Bool_t
Definition: External.C:53
void DrawErrors(TGraphAsymmErrors *grErrFeeddown=0) const
void InitDstoKKpi2017pp5TeV()
TH1F * fCutsEff
branching ratio
Definition: AliHFSystErr.h:330
void InitDplustoKpipi2016pp13TeV()
void InitDplustoKpipi2016pPb70200trkl()
void InitDstoKKpi2011PbPb010()
void InitD0toKpi2016pPb010ZNA()
void InitLctopK0S2017pp5TeV()
void SetRapidity(TString rapidity)
Settings of rapidity ranges for pPb 0-100% CC.
Definition: AliHFSystErr.h:95
Double_t GetMCPtShapeErr(Double_t pt) const
Int_t fCollisionType
Run Number (year)
Definition: AliHFSystErr.h:336
void InitDplustoKpipi2013pPb0100RapScan0104()
void SetStandardBins(Bool_t flag)
Definition: AliHFSystErr.h:80
Int_t GetCollisionType() const
Definition: AliHFSystErr.h:57
void InitDstartoD0pi2013pPb60100V0A()
void InitD0toKpi2011PbPb3050OutOfPlane()
void InitDstartoD0pi2013pPb0100RapScan0804()
void InitD0toKpi2013pPb0100LowPtAn()
void InitDplustoKpipi2011PbPb2030CentScan()
void SetRunNumber(Int_t number)
Definition: AliHFSystErr.h:44
Int_t fRunNumber
particle=antiparticle
Definition: AliHFSystErr.h:335
void InitDstartoD0pi2011PbPb3050()
virtual ~AliHFSystErr()
Bool_t fIsCentScan
flag for the Lc BDT analysis and Ds BDT analysis
Definition: AliHFSystErr.h:346
void InitDplustoKpipi2012pp()
void InitDplustoKpipi2013pPb60100V0A()
void InitD0toKpi2011PbPb3050InPlane()
void InitDplustoKpipi2010PbPb5080CentScan()
void InitLctopKpi2013pPb()
Double_t GetPIDEffErr(Double_t pt) const