AliPhysics  9c66e61 (9c66e61)
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  void SetDoDeDxMaps(Int_t flag) { fDoDeDxMaps = flag ;}
40 
41  void SetEventCutList(Int_t nCuts, TList *CutArray) {fnCuts = nCuts;
42  fEventCutArray = CutArray;}
43  void SetConversionCutList(Int_t nCuts, TList *CutArray) {fnCuts = nCuts;
44  fConversionCutArray = CutArray;}
45 
46 
47 
48  /* void SetDoTreesForMaterial(Bool_t flag) { fDoTreesForMaterial = flag ;} */
49  /* void SetDoHistosForMaterial(Bool_t flag) { fDoHistosForMaterial = flag ;} */
50  private:
51 
52  void ProcessPhotons();
53  void ProcessMCPhotons();
54  void FillMCHistograms(Int_t eventPos);
55  Int_t CountTracks09();
56  Int_t CountTracks0914();
57 
60  TClonesArray *fConversionGammas; // Reconstructed Photons;
67  TList** fMCList; //
84  UChar_t fKind; //
87  AliVEvent* fInputEvent; //
88  AliMCEvent* fMCEvent; //
92  TH1F** hNEvents;
111 
117  TH1F** hMCAllGammaPt;
118 
119 
132 
147  //Bool_t fDoHistosForMaterial; // flag for using Trees for Material Budget evaluation
148 
150  AliAnalysisTaskMaterialHistos& operator=(const AliAnalysisTaskMaterialHistos&); // not implemented
151 
152 
153  ClassDef(AliAnalysisTaskMaterialHistos, 15);
154 };
155 
156 #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
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