AliPhysics  b555aef (b555aef)
AliAnalysisTaskMaterialHistos.h
Go to the documentation of this file.
1 #ifndef AliAnalysisTaskMaterialHistos_cxx
2 #define AliAnalysisTaskMaterialHistos_cxx
3 
4 #include "AliAnalysisTaskSE.h"
6 #include "TH1.h"
7 #include "TH2.h"
8 #include "TH3.h"
9 #include "TTreeStream.h"
10 #include "AliLog.h"
11 #include <vector>
12 #include "AliV0ReaderV1.h"
14 #include "AliConvEventCuts.h"
15 #include "TList.h"
16 #include "TClonesArray.h"
17 
18 
19 using namespace std;
20 
21 
23 
24  public:
25 
27  AliAnalysisTaskMaterialHistos(const char *name);
29 
30  virtual void UserCreateOutputObjects();
31  virtual void UserExec(Option_t *option);
32  virtual void Terminate(Option_t *);
33  void SetIsHeavyIon(Int_t flag) { fIsHeavyIon = flag ;}
34  void SetIsMC(Int_t isMC){fIsMC=isMC;}
35  void SetV0Reader(AliV0ReaderV1 *v0Reader){fV0Reader=v0Reader;}
36  void SetV0ReaderName(TString name){fV0ReaderName=name; return;}
37 
38  void SetEventCutList(Int_t nCuts, TList *CutArray) { fnCuts = nCuts ;
39  fEventCutArray = CutArray ;}
40  void SetConversionCutList(Int_t nCuts, TList *CutArray) { fnCuts = nCuts ;
41  fConversionCutArray = CutArray ;}
42 
43 
44 
45  /* void SetDoTreesForMaterial(Bool_t flag) { fDoTreesForMaterial = flag ;} */
46  /* void SetDoHistosForMaterial(Bool_t flag) { fDoHistosForMaterial = flag ;} */
47  private:
48 
49  void ProcessPhotons();
50  void ProcessMCPhotons();
51  void FillMCTree(Int_t eventPos);
52  Int_t CountTracks0914();
53  Int_t CountTracks09();
54 
57  TClonesArray *fConversionGammas; // Reconstructed Photons;
64  TList** fMCList; //
80  UChar_t fKind; //
83  AliVEvent* fInputEvent; //
84  AliMCEvent* fMCEvent; //
87  TH1F** hNEvents ;
93  TH1F** hESDConversionR;
113 
115  TH1F** hMCConversionR;
125  TH1F** hMCAllGammaPt;
146 
168  // Bool_t fDoHistosForMaterial; // flag for using Trees for Material Budget evaluation
169 
171  AliAnalysisTaskMaterialHistos& operator=(const AliAnalysisTaskMaterialHistos&); // not implemented
172 
173 
174  ClassDef(AliAnalysisTaskMaterialHistos, 10);
175 };
176 
177 #endif
Definition: External.C:260
void SetV0Reader(AliV0ReaderV1 *v0Reader)
Definition: External.C:236
void SetEventCutList(Int_t nCuts, TList *CutArray)
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
Bool_t isMC
void SetConversionCutList(Int_t nCuts, TList *CutArray)
const char Option_t
Definition: External.C:48