]>
Commit | Line | Data |
---|---|---|
ca91a3e1 | 1 | #ifndef AliAnalysisTaskMaterial_cxx |
2 | #define AliAnalysisTaskMaterial_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 AliAnalysisTaskMaterial : public AliAnalysisTaskSE{ | |
22 | ||
a280ac15 | 23 | public: |
24 | ||
25 | AliAnalysisTaskMaterial(const char *name); | |
26 | virtual ~AliAnalysisTaskMaterial(); | |
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 | void ProcessMCPhotons(); | |
42 | void FillMCTree(Int_t stackPos); | |
43 | Int_t CountESDTracks14(); | |
44 | Int_t CountESDTracks0914(); | |
45 | Int_t CountESDTracks09(); | |
46 | ||
47 | AliV0ReaderV1 *fV0Reader; | |
48 | TClonesArray *fConversionGammas; //Reconstructed Photons; | |
49 | AliConversionCuts *fConversionCuts; // Cuts used by the V0Reader | |
50 | TTreeSRedirector *fStreamMaterial; | |
51 | TTreeSRedirector *fStreamResolution; | |
52 | Bool_t fIsHeavyIon; | |
53 | TList *fOutputList; | |
54 | AliESDEvent *fESDEvent; | |
55 | AliMCEvent *fMCEvent; | |
56 | ||
57 | AliAnalysisTaskMaterial(const AliAnalysisTaskMaterial&); // not implemented | |
58 | AliAnalysisTaskMaterial& operator=(const AliAnalysisTaskMaterial&); // not implemented | |
59 | ||
60 | ||
61 | ClassDef(AliAnalysisTaskMaterial, 0); | |
ca91a3e1 | 62 | }; |
63 | ||
64 | #endif |