AliPhysics  abafffd (abafffd)
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 
43  fRawYield->SetBinContent(fRawYield->FindBin(pt),val);
44  }
46  fCutsEff->SetBinContent(fCutsEff->FindBin(pt),val);
47  }
49  fPIDEff->SetBinContent(fPIDEff->FindBin(pt),val);
50  }
52  fMCPtShape->SetBinContent(fMCPtShape->FindBin(pt),val);
53  }
55  fTrackingEff->SetBinContent(fTrackingEff->FindBin(pt),val);
56  }
59  void SetRunNumber(Int_t number) {
60  fRunNumber = number;
61  AliInfo(Form(" Settings for run year 20%2d",fRunNumber));
62  }
63  Int_t GetRunNumber() const { return fRunNumber; }
66  void SetCollisionType(Int_t type) {
67  fCollisionType = type;
68  if (fCollisionType==0) { AliInfo(" Settings for p-p collisions"); }
69  else if(fCollisionType==1) { AliInfo(" Settings for Pb-Pb collisions"); }
70  else if(fCollisionType==2) { AliInfo(" Settings for p-Pb collisions"); }
71  }
77  AliInfo(Form(" Settings for centrality class %s",fCentralityClass.Data()));
78  }
79  void SetIsLowEnergy(Bool_t flag) {
80  fIsLowEnergy = flag;
81  if(flag) AliInfo(" Settings for the low energy run");
82  }
84  fIsLowPtAnalysis = flag;
85  if(flag) AliInfo("Settings for the low pt analysis");
86  }
88  fIsPass4Analysis = flag;
89  if(flag) AliInfo("Settings for the pass4 analysis");
90  }
92  fIs5TeVAnalysis = flag;
93  if(flag) AliInfo("Settings for the 5TeV analysis");
94  }
95  void SetStandardBins(Bool_t flag){
96  fStandardBins= flag;
97  }
98 
100  fIsBDTAnalysis = flag;
101  if(flag) AliInfo("Settings for the Lc and Ds BDT analysis");
102  }
103 
105  fIsCentScan = flag;
106  if(flag) AliInfo(" Settings for the PbPb 2010 energy scan");
107  }
108 
112  AliInfo(Form(" Settings for rapidity interval %s",fRapidityRange.Data()));
113  }
115  fIsRapidityScan = flag;
116  if(flag) AliInfo("Settings for the pPb vs y measurement");
117  }
118 
120  void Init(Int_t decay);
121 
127 
130 
136 
142 
149 
156 
163 
169 
175 
181 
186 
191 
194 
199 
204 
209 
212 
217 
222 
227 
232 
238 
239  private:
240 
241  AliHFSystErr(const AliHFSystErr& source);
242  AliHFSystErr& operator=(const AliHFSystErr& source);
243 
244  void InitD0toKpi2010pp();
245  void InitD0toKpi2010ppLowEn();
247  void InitD0toKpi2010ppPass4();
248  void InitD0toKpi2015pp5TeV();
249  void InitD0toKpi2017pp5TeV();
253  void InitD0toKpi2016pp13TeV();
255  void InitD0toKpi2010PbPb020();
257  void InitD0toKpi2011PbPb3050();
258  void InitD0toKpi2011PbPb010();
259  void InitD0toKpi2013pPb0100();
260  void InitD0toKpi2016pPb0100();
263 
264  void InitDplustoKpipi2010pp();
267  void InitDplustoKpipi2012pp();
279 
280  void InitDstartoD0pi2010pp();
282  void InitDstartoD0pi2012pp();
295 
296  void InitDstoKKpi2010pp();
298  void InitDstoKKpi2017pp5TeV();
309 
310  void InitLctopKpi2010pp();
311  void InitLctopKpi2010ppBDT();
312  void InitLctopKpi2013pPb();
313  void InitLctopKpi2013pPbBDT();
314  void InitLctopKpi2016pPb();
315 
316  void InitLctopK0S2010pp();
317  void InitLctopK0S2013pPb();
318  void InitLctopK0S2013pPbBDT();
319  void InitLctopK0S2016pPb();
320  void InitLctopK0S2016pPbBDT();
321  void InitLctopK0S2017pp5TeV();
322 
323  void InitD0toKpi2015PbPb010();
326 
330 
334 
338 
339 
340  TH1F* ReflectHisto(TH1F *hin) const;
341 
342  TH1F *fNorm;
343  TH1F *fRawYield;
344  TH1F *fTrackingEff;
345  TH1F *fBR;
346  TH1F *fCutsEff;
347  TH1F *fPIDEff;
348  TH1F *fMCPtShape;
350 
356 
365 
367  ClassDef(AliHFSystErr,10);
368 };
370 
371 #endif
void InitDstartoD0pi2010PbPb2040CentScan()
void InitDplustoKpipi2016pPb60100ZNA()
void InitDstartoD0pi2011PbPb2030CentScan()
void InitDplustoKpipi2011PbPb3040CentScan()
void InitD0toKpi2010ppPass4()
void SetIsLowEnergy(Bool_t flag)
Definition: AliHFSystErr.h:79
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:361
void InitDstoKKpi2015PbPb3050()
TString fRapidityRange
MB:0100, 0-10:010, 0-20:020 ...40-80:4080...
Definition: AliHFSystErr.h:355
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:360
TH1F * fPIDEff
cuts efficiency
Definition: AliHFSystErr.h:347
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:357
void InitDstartoD0pi2016pPb60100ZNA()
void InitDplustoKpipi2013pPb0100RapScan0401()
void InitDstartoD0pi2011PbPb3040CentScan()
centrality
void SetCentrality(TString centrality)
Definition: AliHFSystErr.h:75
char Char_t
Definition: External.C:18
void InitD0toKpi2013pPb0100RapScan0408()
void InitD0toKpi2017pp5TeVLowPtAn_finebins()
TH1F * fBR
tracking efficiency
Definition: AliHFSystErr.h:345
void InitD0toKpi2010PbPb020()
void InitDstartoD0pi2013pPb0100()
void InitDstartoD0pi2012pp()
TH1F * fMCPtShape
PID efficiency.
Definition: AliHFSystErr.h:348
void InitDplustoKpipi2013pPb4060V0A()
Bool_t fStandardBins
flag fot the PbPb centrality scan
Definition: AliHFSystErr.h:363
void InitLctopK0S2010pp()
void InitDstoKKpi2016pPb140trkl()
void InitDplustoKpipi2015PbPb3050()
void InitDstartoD0pi2010PbPb2040()
void InitDstartoD0pi2010PbPb4060CentScan()
void SetIsPbPb2010EnergyScan(Bool_t flag)
Definition: AliHFSystErr.h:104
void InitDplustoKpipi2017pp5TeV_finebins()
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:63
void InitDplustoKpipi2013pPb60100ZNA()
void SetIsBDTAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:99
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 ResetCutEfficErr(Double_t pt, Double_t val)
Definition: AliHFSystErr.h:45
void InitLctopKpi2013pPbBDT()
void InitDstartoD0pi2010ppLowEn()
void InitLctopKpi2010pp()
void InitLctopKpi2010ppBDT()
void InitDstartoD0pi2013pPb020V0A()
void InitLctopK0S2013pPb()
void InitD0toKpi2010PbPb5080CentScan()
void InitD0toKpi2013pPb0100RapScan0104()
void InitDstartoD0pi2010PbPb1020CentScan()
void InitD0toKpi2013pPb020CL1()
void ResetRawYieldErr(Double_t pt, Double_t val)
Definition: AliHFSystErr.h:42
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:343
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:349
void SetIsPass4Analysis(Bool_t flag)
Definition: AliHFSystErr.h:87
void InitDstartoD0pi2013pPb020ZNA()
Bool_t fIsRapidityScan
flag for the standard bins in pp@5TeV
Definition: AliHFSystErr.h:364
void InitD0toKpi2013pPb4060V0A()
void InitDstoKKpi2013pPb0100()
void InitDplustoKpipi2013pPb4060ZNA()
TH1F * fTrackingEff
raw yield
Definition: AliHFSystErr.h:344
void InitDplustoKpipi2013pPb0100()
TString fCentralityClass
Collision type: pp=0, PbPb=1.
Definition: AliHFSystErr.h:353
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:358
void InitDplustoKpipi2017pp5TeV()
void SetIsLowPtAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:83
void InitDstartoD0pi2016pPb010ZNA()
void InitDstoKKpi2011PbPb07half()
void ResetMCPtShapeErr(Double_t pt, Double_t val)
Definition: AliHFSystErr.h:51
void ResetPIDEfficErr(Double_t pt, Double_t val)
Definition: AliHFSystErr.h:48
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:114
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:66
void InitD0toKpi2011PbPb2030CentScan()
void InitDplustoKpipi2011PbPb07half()
void InitDstartoD0pi2010pp()
void InitDplustoKpipi2013pPb2040ZNA()
void InitD0toKpi2011PbPb010()
void InitDplustoKpipi2013pPb2040V0A()
void InitDplustoKpipi2016pPb0100()
void SetIs5TeVAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:91
void ResetTrackEfficErr(Double_t pt, Double_t val)
Definition: AliHFSystErr.h:54
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:359
bool Bool_t
Definition: External.C:53
void DrawErrors(TGraphAsymmErrors *grErrFeeddown=0) const
void InitDstoKKpi2017pp5TeV()
TH1F * fCutsEff
branching ratio
Definition: AliHFSystErr.h:346
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:110
Double_t GetMCPtShapeErr(Double_t pt) const
Int_t fCollisionType
Run Number (year)
Definition: AliHFSystErr.h:352
void InitDplustoKpipi2013pPb0100RapScan0104()
void SetStandardBins(Bool_t flag)
Definition: AliHFSystErr.h:95
Int_t GetCollisionType() const
Definition: AliHFSystErr.h:72
void InitDstartoD0pi2013pPb60100V0A()
void InitD0toKpi2011PbPb3050OutOfPlane()
void InitDstartoD0pi2013pPb0100RapScan0804()
void InitD0toKpi2013pPb0100LowPtAn()
void InitDplustoKpipi2011PbPb2030CentScan()
void SetRunNumber(Int_t number)
Definition: AliHFSystErr.h:59
Int_t fRunNumber
particle=antiparticle
Definition: AliHFSystErr.h:351
void InitDstartoD0pi2011PbPb3050()
virtual ~AliHFSystErr()
Bool_t fIsCentScan
flag for the Lc BDT analysis and Ds BDT analysis
Definition: AliHFSystErr.h:362
void InitDplustoKpipi2012pp()
void InitDplustoKpipi2013pPb60100V0A()
void InitD0toKpi2011PbPb3050InPlane()
void InitDplustoKpipi2010PbPb5080CentScan()
void InitLctopKpi2013pPb()
Double_t GetPIDEffErr(Double_t pt) const