]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/pid/AliAnalysisTaskPhiBayes.h
small bug fixed
[u/mrichter/AliRoot.git] / PWGPP / pid / AliAnalysisTaskPhiBayes.h
CommitLineData
a8ad4709 1#ifndef ALIANALYSISTASKPHIBAYES_H
2#define ALIANALYSISTASKPHIBayes_H
3
4// ROOT includes
5#include <TObject.h>
6#include <TClonesArray.h>
7#include <TList.h>
8#include <TProfile.h>
9#include "AliPIDCombined.h"
10#include "TF1.h"
11
12// AliRoot includes
13#include <AliAnalysisTaskSE.h>
14#include <AliAODEvent.h>
15#include "AliPIDperfContainer.h"
520899fb 16#include "AliPIDperfCut.h"
a8ad4709 17
18class TH1F;
19class TH2F;
20class AliESDtrackCuts;
21
22class AliAnalysisTaskPhiBayes : public AliAnalysisTaskSE {
23 public:
24 AliAnalysisTaskPhiBayes();
25 AliAnalysisTaskPhiBayes(const char *name);
26
27 virtual ~AliAnalysisTaskPhiBayes();
28
29 virtual void UserCreateOutputObjects();
30 virtual void UserExec(Option_t *option);
31 virtual void Terminate(Option_t *);
32
33 Double_t GetVtxCut() { return fVtxCut; }
34 Double_t GetEtaCut() { return fEtaCut; }
35 Double_t GetMinPt() { return fMinPt; }
36
37 virtual void SetVtxCut(Double_t vtxCut){fVtxCut = vtxCut;}
38 virtual void SetEtaCut(Double_t etaCut){fEtaCut = etaCut;}
39 virtual void SetMinPt(Double_t value) {fMinPt = value;}
40
41 virtual void SetMC(Bool_t flag = kTRUE){fIsMC = flag;};
42 virtual void SetQA(Bool_t flag = kTRUE){fQAsw = flag;};
43
44 void SetTPCclusterN(Int_t ncl){fNcluster=ncl;};
45
46 static const Int_t nPtBin = 13; //! # pt phi bins
47
48 void SetFilterBit(Int_t fb){fFilterBit=fb;};
49 Int_t GetFilterBit() const {return fFilterBit;};
50
9c668341 51 void SetTypeCollisions(Int_t type){fTypeCol = type;}; // 0=pp, 1=pPb, 2=PbPb
52 Int_t GetTypeCollisions() const {return fTypeCol;};
53
520899fb 54 void SetPIDuserCut(AliPIDperfCut *usercut){fPIDuserCut = usercut;};
55
a8ad4709 56 private:
57 AliAnalysisTaskPhiBayes(const AliAnalysisTaskPhiBayes &old);
58 AliAnalysisTaskPhiBayes& operator=(const AliAnalysisTaskPhiBayes &source);
59
60 virtual Float_t GetVertex(AliAODEvent* aod) const;
61 virtual void Analyze(AliAODEvent* aodEvent);
62 virtual Int_t IsChannelValid(Float_t etaAbs);
63
64 Double_t fVtxCut; // Vtx cut on z position in cm
65 Double_t fEtaCut; // Eta cut used to select particles
66 Double_t fMinPt; // Min pt - for histogram limits
67
68 Bool_t fIsMC; // if MC
69 Bool_t fQAsw; // if QA
70
71 static const Int_t nCentrBin = 9; //! # cenrality bins
72
73 //
74 // Cuts and options
75 //
76
77 Int_t fNcluster; // Numer of TPC cluster required
78 Int_t fFilterBit; // filter bit to be used
79 TList *fList; //! List for output objects
80 TList *fList2; //! List for output objects
81 TList *fList3; //! List for output objects
82
83 //
84 Float_t fCentrality; //! current centrality for the tree
85 Float_t fPsi; //! current Psi from TPC
86
87 Float_t fPtPhi; //! variable to fill the tree
88 Float_t fPhiPhi; //! variable to fill the tree
89 Float_t fEtaPhi; //! variable to fill the tree
90 Float_t fMassV0; //! variable to fill the tree
91 Float_t fPtKp; //! variable to fill the tree
92 Float_t fPhiKp; //! variable to fill the tree
93 Float_t fEtaKp; //! variable to fill the tree
94 Float_t fPtKn; //! variable to fill the tree
95 Float_t fPhiKn; //! variable to fill the tree
96 Float_t fEtaKn; //! variable to fill the tree
97 Int_t fPidKp; //! variable to fill the tree
98 Int_t fPidKn; //! variable to fill the tree
99
100 TH2F *hMatching[4]; //! matching (all, pi, k ,p)
101 TH2F *hTracking[4]; //! tracking (all, pi, k ,p)
102
103 TH2F *fTOFTPCsignal; //! histo with tof signal
104 TH1F *fCombsignal; //! histo with tof signal
105
106 static Float_t fPtPhiMin[nPtBin];// ptmin bin
107 static Float_t fPtPhiMax[nPtBin];// ptmax bin
108
109 // QA plots
110 TH2F *fPiTPC[nCentrBin];//! TPC dE/dx plot
111 TH2F *fKaTPC[nCentrBin];//! TPC dE/dx plot
112 TH2F *fPrTPC[nCentrBin];//! TPC dE/dx plot
113 TH2F *fElTPC[nCentrBin];//! TPC dE/dx plot
114
115 TH2F *fPiTOF[nCentrBin];//! TPC dE/dx plot
116 TH2F *fKaTOF[nCentrBin];//! TPC dE/dx plot
117 TH2F *fPrTOF[nCentrBin];//! TPC dE/dx plot
118 TH2F *fElTOF[nCentrBin];//! TPC dE/dx plot
119
120 AliESDtrackCuts *fCutsDaughter;
121
122 AliPIDCombined *fPIDCombined; //! PID combined object
123 AliPIDperfContainer* fContPid; //! results for positive
124 AliPIDperfContainer* fContPid2; //! results for negative
520899fb 125 AliPIDperfContainer* fContUser; //! results for positive user cut
126 AliPIDperfContainer* fContUser2; //! results for negative user cut
a8ad4709 127
128 TH1F *fHmismTOF; //! TOF mismatch distribution
129 TH1D *fHchannelTOFdistr; //! TOF channel distance w.r.t. IP
130
9c668341 131 Int_t fTypeCol; // type of collision system (0=pp, 1=pPb, 2=PbPb)
520899fb 132 AliPIDperfCut *fPIDuserCut; // pid user cut to be cheked
9c668341 133
520899fb 134 ClassDef(AliAnalysisTaskPhiBayes, 3); //Analysis task for bayesian (K0s)
a8ad4709 135};
136
137#endif