AliPhysics  9b6b435 (9b6b435)
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  void SetDoMultWeights(Int_t flag) { fDoMultWeights = flag ;}
41 
42  void SetEventCutList(Int_t nCuts, TList *CutArray) {fnCuts = nCuts;
43  fEventCutArray = CutArray;}
44  void SetConversionCutList(Int_t nCuts, TList *CutArray) {fnCuts = nCuts;
45  fConversionCutArray = CutArray;}
46 
47 
48 
49  /* void SetDoTreesForMaterial(Bool_t flag) { fDoTreesForMaterial = flag ;} */
50  /* void SetDoHistosForMaterial(Bool_t flag) { fDoHistosForMaterial = flag ;} */
51  private:
52 
53  void ProcessPhotons();
54  void ProcessMCPhotons();
55  void FillMCHistograms(Int_t eventPos);
56  Int_t CountTracks08();
57  Int_t CountTracks0814();
58 
61  TClonesArray *fConversionGammas; // Reconstructed Photons;
68  TList** fMCList; //
85  UChar_t fKind; //
88  AliVEvent* fInputEvent; //
89  AliMCEvent* fMCEvent; //
95  TH1F** hNEvents;
116 
123  TH1F** hMCAllGammaPt;
127 
128 
162  //Bool_t fDoHistosForMaterial; // flag for using Trees for Material Budget evaluation
163 
165  AliAnalysisTaskMaterialHistos& operator=(const AliAnalysisTaskMaterialHistos&); // not implemented
166 
167 
168  ClassDef(AliAnalysisTaskMaterialHistos, 20);
169 };
170 
171 #endif
double Double_t
Definition: External.C:58
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