AliPhysics  c923f52 (c923f52)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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  AliInfo(" Settings for the low energy run");
67  }
69  fIsLowPtAnalysis = flag;
70  AliInfo("Settings for the low pt analysis");
71  }
73  fIsPass4Analysis = flag;
74  AliInfo("Settings for the pass4 analysis");
75  }
77  fIsBDTAnalysis = flag;
78  AliInfo("Settings for the Lc BDT analysis");
79  }
80 
81 
83  fIsCentScan = flag;
84  AliInfo(" Settings for the PbPb 2010 energy scan");
85  }
86 
90  AliInfo(Form(" Settings for rapidity interval %s",fRapidityRange.Data()));
91  }
93  fIsRapidityScan = flag;
94  AliInfo("Settings for the pPb vs y measurement");
95  }
96 
98  void Init(Int_t decay);
99 
105 
108 
114 
120 
127 
134 
141 
147 
153 
159 
164 
169 
174 
179 
184 
189 
194 
199 
204 
205 
206  private:
207 
208  AliHFSystErr(const AliHFSystErr& source);
209  AliHFSystErr& operator=(const AliHFSystErr& source);
210 
211  void InitD0toKpi2010pp();
212  void InitD0toKpi2010ppLowEn();
214  void InitD0toKpi2010ppPass4();
216  void InitD0toKpi2010PbPb020();
218  void InitD0toKpi2011PbPb3050();
219  void InitD0toKpi2011PbPb010();
220  void InitD0toKpi2013pPb0100();
222 
223  void InitDplustoKpipi2010pp();
226  void InitDplustoKpipi2012pp();
233 
234  void InitDstartoD0pi2010pp();
236  void InitDstartoD0pi2012pp();
244 
245  void InitDstoKKpi2010pp();
251 
252  void InitLctopKpi2010pp();
253  void InitLctopKpi2010ppBDT();
254  void InitLctopKpi2013pPb();
255  void InitLctopKpi2013pPbBDT();
256 
257  void InitLctopK0S2010pp();
258  void InitLctopK0S2013pPb();
259 
260  TH1F* ReflectHisto(TH1F *hin) const;
261 
262  TH1F *fNorm;
263  TH1F *fRawYield;
264  TH1F *fTrackingEff;
265  TH1F *fBR;
266  TH1F *fCutsEff;
267  TH1F *fPIDEff;
268  TH1F *fMCPtShape;
270 
276 
283 
285  ClassDef(AliHFSystErr,8);
286 };
288 
289 #endif
290 
void InitDstartoD0pi2010PbPb2040CentScan()
void InitDstartoD0pi2011PbPb2030CentScan()
void InitDplustoKpipi2011PbPb3040CentScan()
void InitD0toKpi2010ppPass4()
void SetIsLowEnergy(Bool_t flag)
Definition: AliHFSystErr.h:64
void InitDstartoD0pi2013pPb2040ZNA()
void InitD0toKpi2010PbPb6080CentScan()
void InitDplustoKpipi2010ppLowEn()
void InitDplustoKpipi2013pPb020ZNA()
void InitD0toKpi2013pPb0100()
double Double_t
Definition: External.C:58
void InitD0toKpi2013pPb60100CL1()
void InitDplustoKpipi2013pPb60100CL1()
void InitDstartoD0pi2013pPb2040V0A()
const char * title
Definition: MakeQAPdf.C:26
void InitDstoKKpi2010ppPass4()
Bool_t fIsBDTAnalysis
flag for the pass4 analysis
Definition: AliHFSystErr.h:280
TString fRapidityRange
MB:0100, 0-10:010, 0-20:020 ...40-80:4080...
Definition: AliHFSystErr.h:275
void InitDstartoD0pi2010PbPb6080CentScan()
void InitDstartoD0pi2013pPb0100RapScan0104()
void InitDplustoKpipi2011PbPb3050()
void InitDplustoKpipi2013pPb0100RapScan0408()
void InitD0toKpi2013pPb2040CL1()
void InitD0toKpi2013pPb4060CL1()
TH1F * fPIDEff
cuts efficiency
Definition: AliHFSystErr.h:267
void InitDplustoKpipi2011PbPb010()
void InitDstartoD0pi2013pPb60100CL1()
void InitDplustoKpipi2011PbPb010CentScan()
void InitD0toKpi2011PbPb1020CentScan()
Bool_t fIsLowEnergy
Rapidity range fot y measurements.
Definition: AliHFSystErr.h:277
void InitDplustoKpipi2013pPb0100RapScan0401()
void InitDstartoD0pi2011PbPb3040CentScan()
centrality
void SetCentrality(TString centrality)
Definition: AliHFSystErr.h:60
char Char_t
Definition: External.C:18
void InitD0toKpi2013pPb0100RapScan0408()
TH1F * fBR
tracking efficiency
Definition: AliHFSystErr.h:265
void InitD0toKpi2010PbPb020()
void InitDstartoD0pi2013pPb0100()
void InitDstartoD0pi2012pp()
TH1F * fMCPtShape
PID efficiency.
Definition: AliHFSystErr.h:268
void InitDplustoKpipi2013pPb4060V0A()
void InitLctopK0S2010pp()
void InitDstartoD0pi2010PbPb2040()
void InitDstartoD0pi2010PbPb4060CentScan()
void SetIsPbPb2010EnergyScan(Bool_t flag)
Definition: AliHFSystErr.h:82
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 InitDplustoKpipi2013pPb0100RapScan0101()
void InitDplustoKpipi2010PbPb020()
void InitDstartoD0pi2013pPb0100RapScan0408()
TH1F * ReflectHisto(TH1F *hin) const
void InitD0toKpi2010pp()
void InitD0toKpi2011PbPb010CentScan()
Int_t GetRunNumber() const
Definition: AliHFSystErr.h:48
void InitDplustoKpipi2013pPb60100ZNA()
void SetIsBDTAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:76
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 InitD0toKpi2010PbPb2040CentScan()
Double_t GetSeleEffErr(Double_t pt) const
void InitD0toKpi2013pPb0100RapScan0401()
void InitD0toKpi2013pPb020V0A()
void InitD0toKpi2010PbPb010CentScan()
void InitD0toKpi2013pPb0100RapScan0804()
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 InitDstartoD0pi2010PbPb010CentScan()
Double_t GetTrackingEffErr(Double_t pt) const
void InitD0toKpi2013pPb60100V0A()
void InitDstartoD0pi2011PbPb07half()
void InitD0toKpi2011PbPb07half()
void InitDstartoD0pi2013pPb4060ZNA()
void InitDstartoD0pi2013pPb0100RapScan0401()
TH1F * fRawYield
normalization
Definition: AliHFSystErr.h:263
void InitDstartoD0pi2010PbPb5080CentScan()
void InitDplustoKpipi2013pPb2040CL1()
void InitDstartoD0pi2010PbPb4080()
void InitDplustoKpipi2013pPb020V0A()
rapidity
Definition: HFPtSpectrum.C:46
void InitDstartoD0pi2013pPb4060V0A()
AliHFSystErr(const Char_t *name="HFSystErr", const Char_t *title="")
void InitDstartoD0pi2013pPb0100RapScan0101()
void InitDplustoKpipi2010PbPb6080CentScan()
TH1F * fPartAntipart
MC dNdpt.
Definition: AliHFSystErr.h:269
void SetIsPass4Analysis(Bool_t flag)
Definition: AliHFSystErr.h:72
void InitDstartoD0pi2013pPb020ZNA()
Bool_t fIsRapidityScan
flag fot the PbPb centrality scan
Definition: AliHFSystErr.h:282
void InitD0toKpi2013pPb4060V0A()
void InitDstoKKpi2013pPb0100()
void InitDplustoKpipi2013pPb4060ZNA()
TH1F * fTrackingEff
raw yield
Definition: AliHFSystErr.h:264
void InitDplustoKpipi2013pPb0100()
TString fCentralityClass
Collision type: pp=0, PbPb=1.
Definition: AliHFSystErr.h:273
void InitDplustoKpipi2010pp()
Double_t GetTotalSystErr(Double_t pt, Double_t feeddownErr=0) const
void InitD0toKpi2011PbPb3040CentScan()
void InitDplustoKpipi2010PbPb010CentScan()
void InitDplustoKpipi2011PbPb4050CentScan()
void InitDstartoD0pi2013pPb020CL1()
void InitD0toKpi2013pPb60100ZNA()
void InitD0toKpi2013pPb020ZNA()
void InitD0toKpi2010ppLowEn()
Bool_t fIsLowPtAnalysis
flag for the low energy (2.76TeV) run
Definition: AliHFSystErr.h:278
void SetIsLowPtAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:68
void InitDstoKKpi2011PbPb07half()
void InitD0toKpi2010PbPb4060CentScan()
void InitDplustoKpipi2010ppPass4()
decay
Definition: HFPtSpectrum.C:41
void Init(Int_t decay)
Function to initialize the variables/histograms.
void SetIspPb2011RapidityScan(Bool_t flag)
Definition: AliHFSystErr.h:92
void InitD0toKpi2010PbPb1020CentScan()
void InitDstartoD0pi2011PbPb010CentScan()
Double_t GetRawYieldErr(Double_t pt) const
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 InitD0toKpi2011PbPb4050CentScan()
void InitDstartoD0pi2013pPb4060CL1()
void InitDplustoKpipi2013pPb4060CL1()
void InitDplustoKpipi2010PbPb2040CentScan()
void InitD0toKpi2013pPb0100RapScan0101()
Bool_t fIsPass4Analysis
flag for the low pt analysis (no topological cuts)
Definition: AliHFSystErr.h:279
bool Bool_t
Definition: External.C:53
void DrawErrors(TGraphAsymmErrors *grErrFeeddown=0) const
TH1F * fCutsEff
branching ratio
Definition: AliHFSystErr.h:266
void InitDstoKKpi2011PbPb010()
void SetRapidity(TString rapidity)
Settings of rapidity ranges for pPb 0-100% CC.
Definition: AliHFSystErr.h:88
Double_t GetMCPtShapeErr(Double_t pt) const
Int_t fCollisionType
Run Number (year)
Definition: AliHFSystErr.h:272
void InitDplustoKpipi2013pPb0100RapScan0104()
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:271
void InitDstartoD0pi2011PbPb3050()
virtual ~AliHFSystErr()
Bool_t fIsCentScan
flag for the Lc BDT analysis
Definition: AliHFSystErr.h:281
void InitDplustoKpipi2012pp()
void InitDplustoKpipi2013pPb60100V0A()
void InitD0toKpi2011PbPb3050InPlane()
void InitDplustoKpipi2010PbPb5080CentScan()
void InitLctopKpi2013pPb()
Double_t GetPIDEffErr(Double_t pt) const