AliPhysics  e6c8d43 (e6c8d43)
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 Bool_t Notify();
32  virtual void UserExec(Option_t *option);
33  virtual void SetLogBinningXTH2(TH2* histoRebin);
34  virtual void Terminate(Option_t *);
35  void SetIsHeavyIon(Int_t flag) {fIsHeavyIon = flag;}
36  void SetIsMC(Int_t isMC) {fIsMC=isMC;}
37  void SetV0Reader(AliV0ReaderV1 *v0Reader) {fV0Reader=v0Reader;}
38  void SetV0ReaderName(TString name) {fV0ReaderName=name; return;}
39 
40  void SetEventCutList(Int_t nCuts, TList *CutArray) {fnCuts = nCuts;
41  fEventCutArray = CutArray;}
42  void SetConversionCutList(Int_t nCuts, TList *CutArray) {fnCuts = nCuts;
43  fConversionCutArray = CutArray;}
44 
45 
46 
47  /* void SetDoTreesForMaterial(Bool_t flag) { fDoTreesForMaterial = flag ;} */
48  /* void SetDoHistosForMaterial(Bool_t flag) { fDoHistosForMaterial = flag ;} */
49  private:
50 
51  void ProcessPhotons();
52  void ProcessMCPhotons();
53  void FillMCHistograms(Int_t eventPos);
54  Int_t CountTracks09();
55  Int_t CountTracks0914();
56 
59  TClonesArray *fConversionGammas; // Reconstructed Photons;
66  TList** fMCList; //
82  UChar_t fKind; //
85  AliVEvent* fInputEvent; //
86  AliMCEvent* fMCEvent; //
89  TH1F** hNEvents;
108 
114  TH1F** hMCAllGammaPt;
115 
116 
129 
136  //Bool_t fDoHistosForMaterial; // flag for using Trees for Material Budget evaluation
137 
139  AliAnalysisTaskMaterialHistos& operator=(const AliAnalysisTaskMaterialHistos&); // not implemented
140 
141 
142  ClassDef(AliAnalysisTaskMaterialHistos, 14);
143 };
144 
145 #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
bool Bool_t
Definition: External.C:53