AliPhysics  cbd2963 (cbd2963)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskPIDconfig.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKPIDconfig_H
2 #define ALIANALYSISTASKPIDconfig_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 /* $Id: AliAnalysisTaskPIDconfig.h */
8 // Author: Naghmeh Mohammadi, 10/07/2014
9 
10 //==============================================================================
11 //
12 //
13 //
14 //
15 //==============================================================================
16 
17 #include <TVectorDfwd.h>
18 
19 #include "AliAnalysisTaskSE.h"
20 #include "AliPID.h"
21 #include "AliPIDResponse.h"
22 #include "AliCentrality.h"
23 #include "TCutG.h"
24 #include "TF2.h"
25 #include "THnSparse.h"
26 
27 
28 
29 
30 class AliESDEvent;
31 class AliAODEvent;
32 class AliESDTrack;
33 class AliAODTrack;
34 class AliPIDResponse;
35 class TList;
36 class AliVEvent;
37 class TH1F;
38 class TH2F;
39 class TH3F;
40 class TH3F;
41 
42 
43 
45 
46 
47 public:
49  AliAnalysisTaskPIDconfig(const char *name);
50  virtual ~AliAnalysisTaskPIDconfig();
51 
52  virtual void UserCreateOutputObjects();
53  virtual void UserExec(Option_t * /*option*/);
54 
60  void SetCentralityTrigger(Int_t b=AliVEvent::kMB){ fTriggerSelection = b;}
61  void SetDCAxyCut(Int_t b){fDCAxyCut = b;}
62  void SetDCAzCut(Int_t b){fDCAzCut = b;}
65  void CheckCentrality(AliVEvent *event,Double_t centrality, Bool_t &centralitypass); //to use only events with the correct centrality....
66  void SetCuts(Bool_t b){fPIDcuts = b;}
67  //void MultiplicityOutlierCut(AliVEvent *event,Bool_t &centralitypass,Int_t ntracks);
68  //void SetPIDcontoursList(TDirectory* b){fCutContourList = b;}
69 
70  void SetPIDPurityFunctions(Float_t PurityLevel);
71 
72 protected:
73 
74 
75 
76 private:
77  AliVEvent *fVevent;
80  AliPIDResponse *fPIDResponse;
81  Int_t fTriggerSelection; // trigger selection
82  Int_t fCentralityPercentileMin; // min centrality
84  Float_t fPurityLevel; //purity level
85  Double_t fFilterBit; // filterbit
86  Double_t fDCAxyCut; // dca cut
87  Double_t fDCAzCut; // dcz z
88  Double_t fLowPtPIDTPCnsigLow_Pion[6]; //nsig low cut Pion
89  Double_t fLowPtPIDTPCnsigHigh_Pion[6]; //nsig high cut Pion
90  Double_t fLowPtPIDTPCnsigLow_Kaon[6]; //nsig low cut Kaon
91  Double_t fLowPtPIDTPCnsigHigh_Kaon[6]; //nsig high cut Kaon
93  Bool_t fData2011; // 2011 data
94  Bool_t fUseCentrality; // use centrality
96  Bool_t fPIDcuts; // pid cuts
97  TString fCentralityEstimator;// cen estimator "V0M","TRK","TKL","ZDC","FMD"
99  TDirectory *fPurityFunctionsList;
105  TH1F *fNoEvents;
106  TH1F *fpVtxZ;
138  THnSparseD *fSparseAll;
139  TF2 *fPurityFunction[180]; //purity functions
140 
141  //qa object initialisation
142  void SetupTPCTOFqa();
143  void SetupEventInfo();
144  //
145 
148 
149  ClassDef(AliAnalysisTaskPIDconfig,4) // Task to properly set the PID response functions of all detectors
150 };
151 
152 #endif
void SetUseCentrality(Bool_t b=kTRUE)
TList * fListQAInfo
List with combined PID from TPC + TOF.
double Double_t
Definition: External.C:58
Definition: External.C:260
Definition: External.C:236
Int_t fTriggerSelection
PID response Handler.
TH1F * fhistCentralityPassAfter
cen histo before
TH1F * fNoEvents
cen histo after
AliPIDResponse * fPIDResponse
aod
TH2F * fHistdEdxvsPTPCafterPIDTPCTOF
another hist
TH1F * fhistProtonEtaDistAfter
another hist
centrality
TH2F * fHistdEdxvsPTPCafterPID_2
another hist
TH1F * fhistPhiDistAfter
another hist
AliAnalysisTaskPIDconfig & operator=(const AliAnalysisTaskPIDconfig &other)
TH2F * fHistPion_dEdxvsPTPCafterPIDTPCTOF
another hist
TH1F * fhistPionEtaDistAfter
another hist
TH2F * fHistKaon_dEdxvsPTPCafterPIDTPCTOF
another hist
void SetCentralityTrigger(Int_t b=AliVEvent::kMB)
TH2F * fHistKaon_BetavsPTOFafterPIDTPCTOF
another hist
TH2F * fTPCvsGlobalMultAfterOutliers
another hist
TH1F * fhistEtaDistBefore
another hist
TH2F * fhistTPCnSigmavsP
another hist
TH1F * fhistCentralityPassBefore
list q ainfo
void SetCutTPCmultiplicityOutliersAOD(Bool_t b)
int Int_t
Definition: External.C:63
TH2F * fHistBetavsPTOFafterPIDTPCTOF
another hist
float Float_t
Definition: External.C:68
Bool_t fData2011
All species info.
TH2F * fHistdEdxvsPTPCafterPID
another hist
TH2F * fHistProton_dEdxvsPTPCafterPIDTPCTOF
another hist
TDirectory * fPurityFunctionsList
purity functions file
void CheckCentrality(AliVEvent *event, Double_t centrality, Bool_t &centralitypass)
TH2F * fHistBetavsPTOFafterPID
another hist
TH1F * fhistEtaDistAfter
another hist
TH2F * fHistBetavsPTOFafterPIDTPConly
another hist
TH2F * fHistBetavsPTOFafterPID_2
another hist
TH2F * fTPCvsGlobalMultAfter
another hist
TH2F * fHistdEdxvsPTPCbeforePID
another hist
TH2F * fHistProton_BetavsPTOFafterPIDTPCTOF
another hist
TH2F * fHistdEdxvsPTPCafterPIDTPConly
another hist
THnSparseD * fSparseAll
another hist
virtual void UserExec(Option_t *)
const char Option_t
Definition: External.C:48
TH2F * fHistBetavsPTOFbeforePID
another hist
TH1F * fhistKaonEtaDistAfter
another hist
void SetPIDPurityFunctions(Float_t PurityLevel)
bool Bool_t
Definition: External.C:53
TList * fListQAtpctof
List of all lists.
TList * fListQA
purity functions list
TH2F * fhistTOFnSigmavsP
another hist
TF2 * fPurityFunction[180]
All species info.
TH2F * fhistDCAAfter
dca after hist
TH2F * fTPCvsGlobalMultBeforeOutliers
another hist
TH2F * fHistPion_BetavsPTOFafterPIDTPCTOF
another hist
TH1F * fhistPhiDistBefore
another hist