changed Resolution, Material, and PhotonQA task to be able to run on the grid
[u/mrichter/AliRoot.git] / PWGGA / GammaConv / AliAnalysisTaskConversionQA.h
CommitLineData
2bb2434e 1#ifndef AliAnalysisConversionQA_cxx
2#define AliAnalysisConversionQA_cxx
3
4#include "AliAnalysisTaskSE.h"
5#include "AliConversionPhotonBase.h"
6#include "TH1.h"
7#include "TH2.h"
8#include "TTreeStream.h"
9#include "AliLog.h"
10#include <vector>
11#include "AliV0ReaderV1.h"
12#include "AliConversionCuts.h"
13#include "TList.h"
14#include "AliStack.h"
15#include "TClonesArray.h"
16
17
18using namespace std;
19
20
21class AliAnalysisTaskConversionQA : public AliAnalysisTaskSE{
22
a280ac15 23 public:
ae947965 24
25 AliAnalysisTaskConversionQA();
a280ac15 26 AliAnalysisTaskConversionQA(const char *name);
27 virtual ~AliAnalysisTaskConversionQA();
2bb2434e 28
a280ac15 29 virtual void UserCreateOutputObjects();
11c1e680 30 virtual Bool_t Notify();
a280ac15 31 virtual void UserExec(Option_t *option);
32 virtual void Terminate(Option_t *);
2bb2434e 33
a280ac15 34 void SetV0Reader(AliV0ReaderV1 *v0Reader){fV0Reader=v0Reader;}
35 void SetConversionCuts(AliConversionCuts* conversionCuts,Bool_t IsHeavyIon ){
36 fConversionCuts=conversionCuts;
37 fIsHeavyIon = IsHeavyIon;
38 }
39 void FillType(Bool_t fillTree, Bool_t fillHistorams){
40 ffillTree = fillTree;
41 ffillHistograms = fillHistorams;
42 }
ae947965 43 void SetIsMC(Bool_t isMC){fIsMC = isMC;}
44
a280ac15 45 private:
46
47 AliAnalysisTaskConversionQA(const AliAnalysisTaskConversionQA&); // Prevent copy-construction
48 AliAnalysisTaskConversionQA &operator=(const AliAnalysisTaskConversionQA&); // Prevent assignment
2bb2434e 49
a280ac15 50 void ProcessQATree(AliAODConversionPhoton *gamma);
51 void ProcessQA(AliAODConversionPhoton *gamma);
ae947965 52 void RelabelAODPhotonCandidates(Bool_t mode);
53 void ProcessTrueQAESD(AliAODConversionPhoton *TruePhotonCandidate, AliESDtrack *elec, AliESDtrack *posi);
54 void ProcessTrueQAAOD(AliAODConversionPhoton *TruePhotonCandidate, AliAODTrack *elec, AliAODTrack *posi);
4803eb1f 55 UInt_t IsTruePhotonESD(AliAODConversionPhoton *TruePhotonCandidate);
56 UInt_t IsTruePhotonAOD(AliAODConversionPhoton *TruePhotonCandidate);
ae947965 57 void CountTracks();
58
e5b6e8a6 59
a280ac15 60 AliV0ReaderV1 *fV0Reader;
61 TClonesArray *fConversionGammas;
62 AliConversionCuts *fConversionCuts; // Cuts used by the V0Reader
63 AliVEvent *fInputEvent;
64 Int_t fNumberOfESDTracks;
65 AliMCEvent *fMCEvent;
66 AliStack *fMCStack;
72395bd9 67 TTree *fTreeQA;
a280ac15 68 Bool_t fIsHeavyIon;
69 Bool_t ffillTree;
70 Bool_t ffillHistograms;
71 TList *fOutputList;
72395bd9 72 TList *fTreeList;
a280ac15 73 TList *fESDList;
74 TH1F *hVertexZ;
75 TH1I *hNGoodESDTracks;
76 TH1I *hNV0Tracks;
77 TH1I *hNContributorsVertex;
78 TH2F *hITSClusterPhi;
79 TH1F *hGammaPt;
80 TH1F *hGammaPhi;
81 TH1F *hGammaEta;
82 TH1F *hGammaChi2perNDF;
83 TH1F *hGammaPsiPair;
84 TH1F *hGammaQt;
85 TH1F *hGammaCosinePointingAngle;
86 TH2F *hGammaXY;
87 TH2F *hGammaZR;
88 TH2F *hElecPt;
89 TH2F *hElecEta;
90 TH2F *hElecPhi;
91 TH1F *hElecNfindableClsTPC;
92 TH1F *hPosiNfindableClsTPC;
4803eb1f 93 TH2F *hElecAsymP;
a280ac15 94 TList *fTrueList;
ae947965 95 TH2F *hTrueResolutionR;
96 TH2F *hTrueResolutionZ;
97 TH2F *hTrueResolutionPhi;
a280ac15 98 TH1F *hTrueGammaPt;
99 TH1F *hTrueGammaPhi;
100 TH1F *hTrueGammaEta;
101 TH1F *hTrueGammaMass;
102 TH1F *hTrueGammaChi2perNDF;
103 TH1F *hTrueGammaPsiPair;
104 TH1F *hTrueGammaQt;
105 TH1F *hTrueGammaCosinePointingAngle;
106 TH2F *hTrueGammaXY;
107 TH2F *hTrueGammaZR;
108 TH2F *hTrueElecPt;
109 TH2F *hTrueElecEta;
110 TH2F *hTrueElecPhi;
111 TH1F *hTrueElecNfindableClsTPC;
112 TH1F *hTruePosiNfindableClsTPC;
4803eb1f 113 TH2F *hTrueElecAsymP;
72395bd9 114 Float_t fGammaPt;
115 Float_t fGammaTheta;
116 Float_t fGammaChi2NDF;
117 Float_t fGammaPhotonProp[5];
118 Float_t fGammaConvCoord[5];
119 Float_t fDaughterProp[20];
120 UInt_t fKind;
ae947965 121 Bool_t fIsMC;
122 Int_t fnGammaCandidates;
123 Int_t *fMCStackPos; //[fnGammaCandidates]
124 Int_t *fMCStackNeg; //[fnGammaCandidates]
72395bd9 125 ClassDef(AliAnalysisTaskConversionQA, 3);
2bb2434e 126};
127
128#endif
129