AliPhysics  master (3d17d9d)
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  fIsMLAnalysis = flag;
106  if(flag) AliInfo("Settings for the Lc ML analysis");
107  }
108 
110  fIsCentScan = flag;
111  if(flag) AliInfo(" Settings for the PbPb 2010 energy scan");
112  }
113 
117  AliInfo(Form(" Settings for rapidity interval %s",fRapidityRange.Data()));
118  }
120  fIsRapidityScan = flag;
121  if(flag) AliInfo("Settings for the pPb vs y measurement");
122  }
123 
125  void Init(Int_t decay);
126 
132 
135 
141 
147 
154 
161 
168 
174 
180 
186 
191 
196 
202 
207 
212 
217 
223 
228 
233 
238 
243 
252 
253  private:
254 
255  AliHFSystErr(const AliHFSystErr& source);
256  AliHFSystErr& operator=(const AliHFSystErr& source);
257 
258  void InitD0toKpi2010pp();
259  void InitD0toKpi2010ppLowEn();
261  void InitD0toKpi2010ppPass4();
262  void InitD0toKpi2015pp5TeV();
263  void InitD0toKpi2017pp5TeV();
267  void InitD0toKpi2016pp13TeV();
272  void InitD0toKpi2010PbPb020();
275  void InitD0toKpi2011PbPb010();
276  void InitD0toKpi2013pPb0100();
277  void InitD0toKpi2016pPb0100();
281 
282  void InitDplustoKpipi2010pp();
285  void InitDplustoKpipi2012pp();
298 
299  void InitDstartoD0pi2010pp();
301  void InitDstartoD0pi2012pp();
315 
316  void InitDstoKKpi2010pp();
318  void InitDstoKKpi2017pp5TeV();
329 
330  void InitLctopKpi2010pp();
331  void InitLctopKpi2010ppBDT();
332  void InitLctopKpi2013pPb();
333  void InitLctopKpi2013pPbBDT();
334  void InitLctopKpi2016pPb();
335  void InitLctopKpi2017pp();
337 
338  void InitLctopK0S2010pp();
339  void InitLctopK0S2013pPb();
340  void InitLctopK0S2013pPbBDT();
341  void InitLctopK0S2016pPb();
342  void InitLctopK0S2016pPbBDT();
343  void InitLctopK0S2017pp5TeV();
344 
351 
352  void InitD0toKpi2015PbPb010();
355 
359 
362 
370 
374 
377 
378  void InitD0toKpi2018PbPb010();
381 
382  TH1F* ReflectHisto(TH1F *hin) const;
383 
384  TH1F *fNorm;
385  TH1F *fRawYield;
386  TH1F *fTrackingEff;
387  TH1F *fBR;
388  TH1F *fCutsEff;
389  TH1F *fPIDEff;
390  TH1F *fMCPtShape;
392 
398 
408 
410  ClassDef(AliHFSystErr,12);
411 };
413 
414 #endif
void InitDstartoD0pi2010PbPb2040CentScan()
void InitDstartoD0pi2018PbPb010()
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()
Bool_t fIsMLAnalysis
flag for the pPb vs y measurement
Definition: AliHFSystErr.h:407
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 InitDstoKKpi2018PbPb010()
void InitDplustoKpipi2018PbPb3050()
void InitDstoKKpi2015PbPb6080()
Bool_t fIsBDTAnalysis
flag for the pp5TeV analysis
Definition: AliHFSystErr.h:403
void InitDstoKKpi2015PbPb3050()
TString fRapidityRange
MB:0100, 0-10:010, 0-20:020 ...40-80:4080...
Definition: AliHFSystErr.h:397
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:402
TH1F * fPIDEff
cuts efficiency
Definition: AliHFSystErr.h:389
void InitD0toKpi2016pPb60100ZNA()
void InitDstartoD0pi2016pPb0100_fb()
void InitDplustoKpipi2011PbPb010()
void SetIsMLAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:104
void InitDstartoD0pi2013pPb60100CL1()
void InitLctopK0S2013pPbBDT()
void InitD0toKpi2017pp5TeV()
void InitLctopK0S2018PbPb3050ML()
void InitD0toKpi2017pp5TeVLowPtAn()
void InitDplustoKpipi2011PbPb010CentScan()
void InitD0toKpi2011PbPb1020CentScan()
Bool_t fIsLowEnergy
Rapidity range fot y measurements.
Definition: AliHFSystErr.h:399
void InitDstartoD0pi2016pPb60100ZNA()
void InitDplustoKpipi2013pPb0100RapScan0401()
void InitDstoKKpi2018PbPb3050()
void InitD0toKpi2016pPb1020ZNA()
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:387
void InitD0toKpi2010PbPb020()
void InitDstartoD0pi2013pPb0100()
void InitDstartoD0pi2012pp()
void InitDstartoD0pi2016pPb1020ZNA()
TH1F * fMCPtShape
PID efficiency.
Definition: AliHFSystErr.h:390
void InitDplustoKpipi2013pPb4060V0A()
Bool_t fStandardBins
flag fot the PbPb centrality scan
Definition: AliHFSystErr.h:405
void InitLctopK0S2010pp()
void InitDstoKKpi2016pPb140trkl()
void InitDplustoKpipi2015PbPb3050()
void InitDstartoD0pi2010PbPb2040()
void InitDstartoD0pi2010PbPb4060CentScan()
void InitDplustoKpipi2018PbPb010()
void SetIsPbPb2010EnergyScan(Bool_t flag)
Definition: AliHFSystErr.h:109
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 InitD0toKpi2018PbPb010()
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 InitLctopKpi20161718pp13TeV()
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 InitLctopK0S2018PbPb010BDT()
void InitDstartoD0pi2010PbPb010CentScan()
Double_t GetTrackingEffErr(Double_t pt) const
void InitLctopKpi2017pp()
void InitD0toKpi2013pPb60100V0A()
void InitLctopK0S2016pPb()
void InitDstartoD0pi2011PbPb07half()
void InitD0toKpi2011PbPb07half()
void InitDplustoKpipi2016pPb4060ZNA()
void InitDstartoD0pi2013pPb4060ZNA()
void InitD0toKpi2015pp5TeV()
void InitDstartoD0pi2013pPb0100RapScan0401()
TH1F * fRawYield
normalization
Definition: AliHFSystErr.h:385
void InitDstartoD0pi2010PbPb5080CentScan()
void InitDplustoKpipi2013pPb2040CL1()
void InitDstartoD0pi2010PbPb4080()
void InitDplustoKpipi2013pPb020V0A()
void InitLctopKpi2016pPb()
void InitDstartoD0pi2018PbPb3050()
rapidity
Definition: HFPtSpectrum.C:49
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:391
void SetIsPass4Analysis(Bool_t flag)
Definition: AliHFSystErr.h:87
void InitDstartoD0pi2013pPb020ZNA()
Bool_t fIsRapidityScan
flag for the standard bins in pp@5TeV and pPb@5TeV
Definition: AliHFSystErr.h:406
void InitD0toKpi2013pPb4060V0A()
void InitDstoKKpi2013pPb0100()
void InitDstoKKpi2018PbPb010BDT()
void InitDplustoKpipi2013pPb4060ZNA()
TH1F * fTrackingEff
raw yield
Definition: AliHFSystErr.h:386
void InitDplustoKpipi2013pPb0100()
TString fCentralityClass
Collision type: pp=0, PbPb=1.
Definition: AliHFSystErr.h:395
void InitDstoKKpi2016pPb4070trkl()
void InitDplustoKpipi2010pp()
void InitDplustoKpipi2016pPb1020ZNA()
Double_t GetTotalSystErr(Double_t pt, Double_t feeddownErr=0) const
void InitDstartoD0pi2017pp5TeV_finebins()
void InitD0toKpi2011PbPb3040CentScan()
void InitLctopK0S2018PbPb3050()
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:400
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 InitD0toKpi20161718pp13TeVlm()
void ResetPIDEfficErr(Double_t pt, Double_t val)
Definition: AliHFSystErr.h:48
void InitDstoKKpi2015PbPb010()
void InitD0toKpi2010PbPb4060CentScan()
void InitD0toKpi20161718pp13TeVhm()
void InitDstoKKpi2016pp13TeV()
void InitDplustoKpipi2010ppPass4()
decay
Definition: HFPtSpectrum.C:42
void Init(Int_t decay)
Function to initialize the variables/histograms.
void InitLctopK0S2016pPbBDT()
void SetIspPb2011RapidityScan(Bool_t flag)
Definition: AliHFSystErr.h:119
void InitD0toKpi2010PbPb1020CentScan()
void InitDplustoKpipi2016pPb5TeV_finebins()
void InitDstartoD0pi2017pp5TeV()
void InitDstartoD0pi2011PbPb010CentScan()
Double_t GetRawYieldErr(Double_t pt) const
void InitD0toKpi20161718pp13TeVmb()
void InitDstoKKpi2016pPb0100()
void InitDstoKKpi2010pp()
void InitLctopK0S2018PbPb010()
void InitDplustoKpipi2011PbPb1020CentScan()
void InitD0toKpi2016pPb2040ZNA()
void InitDplustoKpipi2013pPb020CL1()
void InitD0toKpi2016pPb4060ZNA()
void InitD0toKpi2010ppLowPtAn()
void InitD0toKpi2010PbPb4080()
void InitLctopK0S2018PbPb010ML()
void InitDplustoKpipi2016pPb2040ZNA()
void InitDstartoD0pi2013pPb2040CL1()
void SetCollisionType(Int_t type)
Definition: AliHFSystErr.h:66
void InitD0toKpi2011PbPb2030CentScan()
void InitDstartoD0pi2016pPb4060ZNA()
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:401
bool Bool_t
Definition: External.C:53
void DrawErrors(TGraphAsymmErrors *grErrFeeddown=0) const
void InitDstoKKpi2017pp5TeV()
TH1F * fCutsEff
branching ratio
Definition: AliHFSystErr.h:388
void InitD0toKpi2016pPb5TeV_finebins()
void InitLctopK0S2018PbPb3050BDT()
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:115
Double_t GetMCPtShapeErr(Double_t pt) const
Int_t fCollisionType
Run Number (year)
Definition: AliHFSystErr.h:394
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:393
void InitDstartoD0pi2011PbPb3050()
void InitDstoKKpi2018PbPb3050BDT()
virtual ~AliHFSystErr()
Bool_t fIsCentScan
flag for the Lc BDT analysis and Ds BDT analysis
Definition: AliHFSystErr.h:404
void InitDplustoKpipi2012pp()
void InitDplustoKpipi2013pPb60100V0A()
void InitD0toKpi2018PbPb3050()
void InitD0toKpi2011PbPb3050InPlane()
void InitD0toKpi2018PbPb010LowPtAn()
void InitDplustoKpipi2010PbPb5080CentScan()
void InitLctopKpi2013pPb()
void InitDstartoD0pi2016pPb2040ZNA()
Double_t GetPIDEffErr(Double_t pt) const