]>
Commit | Line | Data |
---|---|---|
2c03c485 | 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" | |
7ff63eca | 20 | #include "AliPID.h" |
2c03c485 | 21 | #include "AliPIDResponse.h" |
22 | #include "AliCentrality.h" | |
6440143f | 23 | #include "TCutG.h" |
2c03c485 | 24 | |
25 | ||
26 | ||
27 | class AliESDEvent; | |
28 | class AliAODEvent; | |
29 | class AliESDTrack; | |
30 | class AliAODTrack; | |
31 | class AliPIDResponse; | |
32 | class TList; | |
33 | class AliVEvent; | |
34 | class TH1F; | |
35 | class TH2F; | |
7ff63eca | 36 | class TH3F; |
2c03c485 | 37 | class TH3F; |
38 | ||
39 | ||
40 | ||
41 | class AliAnalysisTaskPIDconfig : public AliAnalysisTaskSE { | |
7ff63eca | 42 | |
43 | ||
2c03c485 | 44 | public: |
d802b6ea | 45 | AliAnalysisTaskPIDconfig(); |
46 | AliAnalysisTaskPIDconfig(const char *name); | |
47 | virtual ~AliAnalysisTaskPIDconfig(); | |
7ff63eca | 48 | |
d802b6ea | 49 | virtual void UserCreateOutputObjects(); |
50 | virtual void UserExec(Option_t * /*option*/); | |
7ff63eca | 51 | |
d802b6ea | 52 | void SetFilterBit(Double_t b){fFilterBit = b;} |
53 | void SetCentralityPercentileMin(Int_t b){fCentralityPercentileMin = b;} | |
54 | void SetCentralityPercentileMax(Int_t b){fCentralityPercentileMax = b;} | |
55 | void SetCentralityEstimator(TString b){fCentralityEstimator = b;} | |
56 | void SetUseCentrality(Bool_t b=kTRUE){fUseCentrality = b;} | |
57 | void SetCentralityTrigger(Int_t b=AliVEvent::kMB){ fTriggerSelection = b;} | |
58 | void SetDCAxyCut(Int_t b){fDCAxyCut = b;} | |
59 | void SetDCAzCut(Int_t b){fDCAzCut = b;} | |
60 | void SetCutTPCmultiplicityOutliersAOD(Bool_t b){fCutTPCmultiplicityOutliersAOD = b;} | |
61 | void SetData2011(Bool_t b){fData2011 = b;} | |
62 | void CheckCentrality(AliVEvent *event,Bool_t ¢ralitypass); //to use only events with the correct centrality.... | |
63 | void SetCuts(Bool_t b){fPIDcuts = b;} | |
7ff63eca | 64 | //void MultiplicityOutlierCut(AliVEvent *event,Bool_t ¢ralitypass,Int_t ntracks); |
d802b6ea | 65 | void SetPIDcontoursList(TDirectory* b){fContourCutList = b;} |
7ff63eca | 66 | //TGraph* GetPIDcontours(TString specie, Double_t Plow, Double_t Phigh,Int_t centMin, Int_t centMax){} |
6440143f | 67 | void GetPIDContours(); |
7ff63eca | 68 | |
69 | protected: | |
70 | ||
71 | ||
72 | ||
2c03c485 | 73 | private: |
74 | AliVEvent *fVevent; | |
75 | AliESDEvent *fESD; | |
76 | AliAODEvent *fAOD; | |
77 | AliPIDResponse *fPIDResponse; //! PID response Handler | |
78 | Int_t fTriggerSelection; | |
79 | Int_t fCentralityPercentileMin; | |
80 | Int_t fCentralityPercentileMax; | |
81 | Double_t fFilterBit; | |
82 | Double_t fDCAxyCut; | |
83 | Double_t fDCAzCut; | |
84 | Bool_t fData2011; | |
85 | Bool_t fTriggerMB; | |
86 | Bool_t fTriggerCentral; | |
87 | Bool_t fUseCentrality; | |
88 | Bool_t fCutTPCmultiplicityOutliersAOD; | |
89 | Bool_t fPIDcuts; | |
90 | TString fCentralityEstimator; //"V0M","TRK","TKL","ZDC","FMD" | |
d802b6ea | 91 | TDirectory *fContourCutList; |
2c03c485 | 92 | TList *fListQA; // List of all lists |
93 | TList *fListQAtpctof; //! List with combined PID from TPC + TOF | |
94 | TList *fListQAInfo; | |
95 | TH1F *fhistCentralityPass; | |
96 | TH1F *fNoEvents; | |
97 | TH1F *fpVtxZ; | |
98 | TH2F *fhistDCABefore; | |
99 | TH2F *fhistDCAAfter; | |
100 | TH1F *fhistPhiDistBefore; | |
101 | TH1F *fhistPhiDistAfter; | |
102 | TH1F *fhistEtaDistBefore; | |
103 | TH1F *fhistEtaDistAfter; | |
104 | TH2F *fTPCvsGlobalMultBeforeOutliers; | |
105 | TH2F *fTPCvsGlobalMultAfterOutliers; | |
106 | TH2F *fTPCvsGlobalMultAfter; | |
107 | TH2F *fHistBetavsPTOFbeforePID; | |
7ff63eca | 108 | TH2F *fHistdEdxvsPTPCbeforePID; |
2c03c485 | 109 | TH3F *fhistNsigmaP; |
110 | TH3F *fhistNsigmaPt; | |
7ff63eca | 111 | TH2F *fHistBetavsPTOFafterPID; |
112 | TH2F *fHistdEdxvsPTPCafterPID; | |
113 | TCutG *fContourCut[150]; | |
114 | ||
115 | ||
116 | //qa object initialisation | |
117 | void SetupTPCTOFqa(); | |
118 | void SetupEventInfo(); | |
119 | // | |
120 | ||
121 | AliAnalysisTaskPIDconfig(const AliAnalysisTaskPIDconfig &other); | |
122 | AliAnalysisTaskPIDconfig& operator=(const AliAnalysisTaskPIDconfig &other); | |
123 | ||
124 | ClassDef(AliAnalysisTaskPIDconfig,2) // Task to properly set the PID response functions of all detectors | |
2c03c485 | 125 | }; |
126 | ||
127 | #endif |