AliPhysics  9b6b435 (9b6b435)
AliAnalysisTaskSEDmesonPIDSysProp.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKSEDMESONPIDSYSPROP_H
2 #define ALIANALYSISTASKSEDMESONPIDSYSPROP_H
3 
4 /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. */
5 
7 // \class AliAnalysisTaskSEDmesonPIDSysProp //
8 // \brief analysis task for PID Systematic uncertainty propagation from the single track to the D mesons //
9 // \author: A. M. Barbano, anastasia.maria.barbano@cern.ch //
10 // \author: F. Grosa, fabrizio.grosa@cern.ch //
12 
13 #include "AliAnalysisTaskSE.h"
14 #include "AliRDHFCuts.h"
15 #include "AliPIDResponse.h"
16 #include <TString.h>
17 #include <TH1F.h>
18 #include <TH2F.h>
19 
21 public:
24 
27 
29  AliAnalysisTaskSEDmesonPIDSysProp(int ch, AliRDHFCuts* cuts, TString systfilename);
31 
32  virtual void UserCreateOutputObjects();
33  virtual void Init();
34  virtual void UserExec(Option_t *);
35 
38  void SetPIDStrategy(int PIDst=kStrongPID) {fPIDstrategy=PIDst;}
39  void SetKaonHistoOptions(int tpcopt, int tofopt) {fKaonTPCHistoOpt=tpcopt; fKaonTOFHistoOpt=tofopt;}
40 
41  int GetDecayChannel()const {return fDecayChannel;}
42 
43 private:
44  int LoadEffSystFile();
45  double GetDmesonPIDuncertainty(AliAODTrack *track[], const int nDau, TClonesArray* arrayMC, double ptD);
46  void GetSingleTrackSystAndProb(TH1F* hSingleTrackSyst, TH1F* hSingleTrackEff, int bin, double &syst, double &prob);
47 
49  TH1F *fHistNEvents;
52 
53  TH1F *fHistEffPionTPC[2]; //-> histo for Pion TPC Nsigma syst
54  TH1F *fHistEffPionTOF; //-> histo for Pion TOF Nsigma syst
55  TH1F *fHistEffKaonTPC[2]; //-> histo for Kaon TPC Nsigma syst
56  TH1F *fHistEffKaonTOF; //-> histo for Kaon TOF Nsigma syst
57 
58  TH1F *fHistSystPionTPC[2]; //-> histo for Pion TPC Nsigma syst
59  TH1F *fHistSystPionTOF; //-> histo for Pion TOF Nsigma syst
60  TH1F *fHistSystKaonTPC[2]; //-> histo for Kaon TPC Nsigma syst
61  TH1F *fHistSystKaonTOF; //-> histo for Kaon TOF Nsigma syst
62 
64  AliPIDResponse *fPIDresp;
65 
68  double fnSigma;
69 
73 
75 
76  int fNPtBins;
77  double *fPtLimits;
78 
80 
82 };
83 
84 #endif
const char * filename
Definition: TestFCM.C:1
Definition: External.C:236
double fnSigma
PID strategy (conservative, strong, nsigma..)
int fAODProtection
option for syst on kaon TOF PID efficiency
int fNPtBins
flag to activate protection against AOD-dAOD mismatch.
int fPIDstrategy
Name of file with single track syst. unc.
AliPIDResponse * fPIDresp
string for particle name
int fKaonTOFHistoOpt
option for syst on kaon TPC PID efficiency
int fDecayChannel
number of sigma PID if nsigma strategy enabled
void GetSingleTrackSystAndProb(TH1F *hSingleTrackSyst, TH1F *hSingleTrackEff, int bin, double &syst, double &prob)
TH2F * fHistPtDauVsD
! histo with pT daughters vs pT candidate
TH1F * fHistNEvents
! histo with number of events
TH2F * fHistSystPIDEffD
! histo with PID systematic uncertainty on the D candidate
const char Option_t
Definition: External.C:48
double GetDmesonPIDuncertainty(AliAODTrack *track[], const int nDau, TClonesArray *arrayMC, double ptD)