AliPhysics  8d00e07 (8d00e07)
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 SetLogBinningXTH2(TH2* histoRebin);
33  virtual void Terminate(Option_t *);
34  void SetIsHeavyIon(Int_t flag) {fIsHeavyIon = flag;}
35  void SetIsMC(Int_t isMC) {fIsMC=isMC;}
36  void SetV0Reader(AliV0ReaderV1 *v0Reader) {fV0Reader=v0Reader;}
37  void SetV0ReaderName(TString name) {fV0ReaderName=name; return;}
38 
39  void SetEventCutList(Int_t nCuts, TList *CutArray) {fnCuts = nCuts;
40  fEventCutArray = CutArray;}
41  void SetConversionCutList(Int_t nCuts, TList *CutArray) {fnCuts = nCuts;
42  fConversionCutArray = CutArray;}
43 
44 
45 
46  /* void SetDoTreesForMaterial(Bool_t flag) { fDoTreesForMaterial = flag ;} */
47  /* void SetDoHistosForMaterial(Bool_t flag) { fDoHistosForMaterial = flag ;} */
48  private:
49 
50  void ProcessPhotons();
51  void ProcessMCPhotons();
52  void FillMCHistograms(Int_t eventPos);
53  Int_t CountTracks09();
54  Int_t CountTracks0914();
55 
58  TClonesArray *fConversionGammas; // Reconstructed Photons;
65  TList** fMCList; //
81  UChar_t fKind; //
84  AliVEvent* fInputEvent; //
85  AliMCEvent* fMCEvent; //
88  TH1F** hNEvents;
102 
107 
113  TH1F** hMCAllGammaPt;
124 
131  //Bool_t fDoHistosForMaterial; // flag for using Trees for Material Budget evaluation
132 
134  AliAnalysisTaskMaterialHistos& operator=(const AliAnalysisTaskMaterialHistos&); // not implemented
135 
136 
137  ClassDef(AliAnalysisTaskMaterialHistos, 12);
138 };
139 
140 #endif
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
Definition: External.C:220
void SetConversionCutList(Int_t nCuts, TList *CutArray)
const char Option_t
Definition: External.C:48