changed Resolution, Material, and PhotonQA task to be able to run on the grid
[u/mrichter/AliRoot.git] / PWGGA / GammaConv / AliAnalysisTaskResolution.h
1 #ifndef AliAnalysisTaskResolution_cxx
2 #define AliAnalysisTaskResolution_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
18 using namespace std;
19
20
21 class AliAnalysisTaskResolution : public AliAnalysisTaskSE{
22
23  public:
24    AliAnalysisTaskResolution();
25    AliAnalysisTaskResolution(const char *name);
26    virtual ~AliAnalysisTaskResolution();
27
28    virtual void   UserCreateOutputObjects();
29    virtual void   UserExec(Option_t *option);
30    virtual void   Terminate(Option_t *);
31
32    void SetV0Reader(AliV0ReaderV1 *v0Reader){fV0Reader=v0Reader;}
33    void SetConversionCuts(AliConversionCuts* conversionCuts,Bool_t IsHeavyIon ){
34       fConversionCuts=conversionCuts;
35       fIsHeavyIon = IsHeavyIon;
36    }
37
38  private:
39
40    void ProcessPhotons();
41    Int_t CountTracks0914();
42    Int_t CountTracks09();
43
44    AliV0ReaderV1 *fV0Reader;
45    TClonesArray *fConversionGammas; //Reconstructed Photons;
46    AliConversionCuts *fConversionCuts; // Cuts used by the V0Reader
47    TTree *fTreeEvent;
48    TTree *fTreeResolution;
49    Float_t fPrimVtxZ;
50    Int_t fNContrVtx;
51    Int_t fNESDtracksEta09;
52    Int_t fNESDtracksEta0914;
53    Int_t fNESDtracksEta14;
54    Float_t fGammaRecCoords[5];
55    Float_t fGammaMCCoords[5];
56    Float_t fChi2ndf;
57    Bool_t fIsHeavyIon;
58    TList *fOutputList;
59    TList *fEventList;
60    TList *fResolutionList;
61    AliESDEvent *fESDEvent;
62    AliMCEvent *fMCEvent;
63
64    AliAnalysisTaskResolution(const AliAnalysisTaskResolution&); // not implemented
65    AliAnalysisTaskResolution& operator=(const AliAnalysisTaskResolution&); // not implemented
66
67
68    ClassDef(AliAnalysisTaskResolution, 0);
69 };
70
71 #endif