AliPhysics  a0db429 (a0db429)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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.);}
33  Double_t GetCutsEffErr(Double_t pt) const;
34  Double_t GetMCPtShapeErr(Double_t pt) const;
35  Double_t GetSeleEffErr(Double_t pt) const;
36  Double_t GetPartAntipartErr(Double_t pt) const;
37  Double_t GetPIDEffErr(Double_t pt) const;
38  Double_t GetRawYieldErr(Double_t pt) const;
39  Double_t GetTrackingEffErr(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  }
57  Int_t GetCollisionType() const { return fCollisionType; }
60  void SetCentrality(TString centrality) {
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  }
68  void SetIsLowPtAnalysis(Bool_t flag){
69  fIsLowPtAnalysis = flag;
70  AliInfo("Settings for the low pt analysis");
71  }
72 
73  void SetIsPbPb2010EnergyScan(Bool_t flag) {
74  fIsCentScan = flag;
75  AliInfo(" Settings for the PbPb 2010 energy scan");
76  }
77 
79  void SetRapidity(TString rapidity) {
81  AliInfo(Form(" Settings for rapidity interval %s",fRapidityRange.Data()));
82  }
83  void SetIspPb2011RapidityScan(Bool_t flag){
84  fIsRapidityScan = flag;
85  AliInfo("Settings for the pPb vs y measurement");
86  }
87 
89  void Init(Int_t decay);
90 
96 
99 
105 
111 
118 
125 
132 
138 
144 
150 
155 
160 
165 
170 
175 
180 
185 
190 
195 
196 
197  private:
198 
199  AliHFSystErr(const AliHFSystErr& source);
200  AliHFSystErr& operator=(const AliHFSystErr& source);
201 
202  void InitD0toKpi2010pp();
203  void InitD0toKpi2010ppLowEn();
206  void InitD0toKpi2010PbPb020();
208  void InitD0toKpi2011PbPb3050();
209  void InitD0toKpi2011PbPb010();
210 
211  void InitDplustoKpipi2010pp();
218 
219  void InitDstartoD0pi2010pp();
227 
228  void InitDstoKKpi2010pp();
232 
233  void InitLctopKpi2010pp();
234 
235  void InitD0toKpi2013pPb0100();
240  void InitLctopK0S2010pp();
241 
242 
243  TH1F* ReflectHisto(TH1F *hin) const;
244 
245  TH1F *fNorm;
246  TH1F *fRawYield;
247  TH1F *fTrackingEff;
248  TH1F *fBR;
249  TH1F *fCutsEff;
250  TH1F *fPIDEff;
251  TH1F *fMCPtShape;
253 
254  Int_t fRunNumber;
257  TString fRapidityRange;
259 
260  Bool_t fIsLowEnergy;
262 
263  Bool_t fIsCentScan;
265 
267  ClassDef(AliHFSystErr,6);
268 };
270 
271 #endif
272 
void InitDstartoD0pi2010PbPb2040CentScan()
void InitDstartoD0pi2011PbPb2030CentScan()
void InitDplustoKpipi2011PbPb3040CentScan()
void SetIsLowEnergy(Bool_t flag)
Definition: AliHFSystErr.h:64
void InitDstartoD0pi2013pPb2040ZNA()
void InitD0toKpi2010PbPb6080CentScan()
void InitDplustoKpipi2010ppLowEn()
void InitDplustoKpipi2013pPb020ZNA()
void InitD0toKpi2013pPb0100()
void InitD0toKpi2013pPb60100CL1()
void InitDplustoKpipi2013pPb60100CL1()
void InitDstartoD0pi2013pPb2040V0A()
const char * title
Definition: MakeQAPdf.C:26
TString fRapidityRange
MB:0100, 0-10:010, 0-20:020 ...40-80:4080...
Definition: AliHFSystErr.h:258
void InitDstartoD0pi2010PbPb6080CentScan()
void InitDstartoD0pi2013pPb0100RapScan0104()
void InitDplustoKpipi2011PbPb3050()
void InitDplustoKpipi2013pPb0100RapScan0408()
void InitD0toKpi2013pPb2040CL1()
void InitD0toKpi2013pPb4060CL1()
TH1F * fPIDEff
cuts efficiency
Definition: AliHFSystErr.h:250
void InitDplustoKpipi2011PbPb010()
void InitDstartoD0pi2013pPb60100CL1()
void InitDplustoKpipi2011PbPb010CentScan()
void InitD0toKpi2011PbPb1020CentScan()
Bool_t fIsLowEnergy
Rapidity range fot y measurements.
Definition: AliHFSystErr.h:260
void InitDplustoKpipi2013pPb0100RapScan0401()
void InitDstartoD0pi2011PbPb3040CentScan()
centrality
void SetCentrality(TString centrality)
Definition: AliHFSystErr.h:60
void InitD0toKpi2013pPb0100RapScan0408()
TH1F * fBR
tracking efficiency
Definition: AliHFSystErr.h:248
void InitD0toKpi2010PbPb020()
void InitDstartoD0pi2013pPb0100()
TH1F * fMCPtShape
PID efficiency.
Definition: AliHFSystErr.h:251
void InitDplustoKpipi2013pPb4060V0A()
void InitLctopK0S2010pp()
void InitDstartoD0pi2010PbPb2040()
void InitDstartoD0pi2010PbPb4060CentScan()
void SetIsPbPb2010EnergyScan(Bool_t flag)
Definition: AliHFSystErr.h:73
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 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()
void InitD0toKpi2013pPb2040ZNA()
void InitDstartoD0pi2010ppLowEn()
void InitLctopKpi2010pp()
void InitDstartoD0pi2013pPb020V0A()
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:246
void InitDstartoD0pi2010PbPb5080CentScan()
void InitDplustoKpipi2013pPb2040CL1()
void InitDstartoD0pi2010PbPb4080()
void InitDplustoKpipi2013pPb020V0A()
rapidity
Definition: HFPtSpectrum.C:45
void InitDstartoD0pi2013pPb4060V0A()
AliHFSystErr(const Char_t *name="HFSystErr", const Char_t *title="")
void InitDstartoD0pi2013pPb0100RapScan0101()
void InitDplustoKpipi2010PbPb6080CentScan()
TH1F * fPartAntipart
MC dNdpt.
Definition: AliHFSystErr.h:252
void InitDstartoD0pi2013pPb020ZNA()
Bool_t fIsRapidityScan
flag fot the PbPb centrality scan
Definition: AliHFSystErr.h:264
void InitD0toKpi2013pPb4060V0A()
void InitDstoKKpi2013pPb0100()
void InitDplustoKpipi2013pPb4060ZNA()
TH1F * fTrackingEff
raw yield
Definition: AliHFSystErr.h:247
void InitDplustoKpipi2013pPb0100()
TString fCentralityClass
Collision type: pp=0, PbPb=1.
Definition: AliHFSystErr.h:256
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:261
void SetIsLowPtAnalysis(Bool_t flag)
Definition: AliHFSystErr.h:68
void InitDstoKKpi2011PbPb07half()
void InitD0toKpi2010PbPb4060CentScan()
void Init(Int_t decay)
Function to initialize the variables/histograms.
void SetIspPb2011RapidityScan(Bool_t flag)
Definition: AliHFSystErr.h:83
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()
void DrawErrors(TGraphAsymmErrors *grErrFeeddown=0) const
TH1F * fCutsEff
branching ratio
Definition: AliHFSystErr.h:249
void InitDstoKKpi2011PbPb010()
void SetRapidity(TString rapidity)
Settings of rapidity ranges for pPb 0-100% CC.
Definition: AliHFSystErr.h:79
Double_t GetMCPtShapeErr(Double_t pt) const
Int_t fCollisionType
Run Number (year)
Definition: AliHFSystErr.h:255
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:254
void InitDstartoD0pi2011PbPb3050()
virtual ~AliHFSystErr()
Bool_t fIsCentScan
flag for the low pt analysis (no topological cuts)
Definition: AliHFSystErr.h:263
void InitDplustoKpipi2013pPb60100V0A()
void InitD0toKpi2011PbPb3050InPlane()
void InitDplustoKpipi2010PbPb5080CentScan()
Double_t GetPIDEffErr(Double_t pt) const