AliPhysics  ef3b16e (ef3b16e)
AliAnalysisTaskConversionQA.h
Go to the documentation of this file.
1 #ifndef AliAnalysisConversionQA_cxx
2 #define AliAnalysisConversionQA_cxx
3 
4 #include "AliAnalysisTaskSE.h"
6 #include "TH1.h"
7 #include "TH2.h"
8 #include "TTreeStream.h"
9 #include "AliLog.h"
10 #include <vector>
11 #include "AliV0ReaderV1.h"
13 #include "TList.h"
14 #include "AliMCEvent.h"
15 #include "TClonesArray.h"
16 
17 
18 using namespace std;
19 
20 
22 
23  public:
24 
26  AliAnalysisTaskConversionQA(const char *name);
27  virtual ~AliAnalysisTaskConversionQA();
28 
29  virtual void UserCreateOutputObjects ();
30  virtual Bool_t Notify ();
31  virtual void UserExec ( Option_t *option );
32  virtual void Terminate ( Option_t * );
33 
34  void SetV0Reader ( AliV0ReaderV1 *v0Reader ) { fV0Reader=v0Reader ; }
35  void SetV0ReaderName(TString name){fV0ReaderName=name; return;}
36  void SetConversionCuts ( AliConversionPhotonCuts* conversionCuts,
37  Bool_t IsHeavyIon ) {
38  fConversionCuts=conversionCuts ;
39  fIsHeavyIon = IsHeavyIon ;
40  }
41  void SetEventCuts ( AliConvEventCuts* conversionCuts,
42  Bool_t IsHeavyIon ) {
43  fEventCuts=conversionCuts ;
44  fIsHeavyIon = IsHeavyIon ;
45  }
46 
47  void FillType ( Double_t fillTree,
48  Bool_t fillHistorams) {
49  ffillTree = fillTree ;
50  ffillHistograms = fillHistorams ;
51  }
52  void SetIsMC ( Bool_t isMC ) { fIsMC = isMC ; }
53 
54  private:
55 
56  AliAnalysisTaskConversionQA ( const AliAnalysisTaskConversionQA& ); // Prevent copy-construction
57  AliAnalysisTaskConversionQA &operator=( const AliAnalysisTaskConversionQA& ); // Prevent assignment
58 
59  void ProcessQATree ( AliAODConversionPhoton *gamma );
60  void ProcessQA ( AliAODConversionPhoton *gamma );
61  void RelabelAODPhotonCandidates ( Bool_t mode );
62  void ProcessTrueQAESD ( AliAODConversionPhoton *TruePhotonCandidate,
63  AliESDtrack *elec,
64  AliESDtrack *posi );
65  void ProcessTrueQAAOD ( AliAODConversionPhoton *TruePhotonCandidate,
66  AliAODTrack *elec,
67  AliAODTrack *posi );
68  UInt_t IsTruePhotonESD ( AliAODConversionPhoton *TruePhotonCandidate );
69  UInt_t IsTruePhotonAOD ( AliAODConversionPhoton *TruePhotonCandidate );
70  void CountTracks ();
71  void SetLogBinningXTH2 ( TH2* histoRebin );
72 
75  TClonesArray* fConversionGammas; //
76  AliConversionPhotonCuts* fConversionCuts; // Cuts used by the V0Reader
77  AliConvEventCuts* fEventCuts; // Cuts used by the V0Reader
78  AliVEvent* fInputEvent; //
80  AliMCEvent* fMCEvent; //
88  TH1F* hVertexZ; //
93  TH1F* hGammaPt; //
94  TH1F* hGammaPhi; //
95  TH1F* hGammaPhi_Pos; //
96  TH1F* hGammaPhi_Neg; //
97  TH1F* hGammaEta; //
98  TH1F* hGammaChi2perNDF; //
99  TH1F* hGammaPsiPair; //
102  TH1F* hGammaInvMass; //
108  TH1F* hElecClsTPC; //
109  TH1F* hPosiClsTPC; //
130  TVectorF fGammaPhotonProp; //
131  TVectorF fGammaConvCoord; //
132  TVectorF fDaughterProp; //
136  Int_t* fMCStackPos; //[fnGammaCandidates]
137  Int_t* fMCStackNeg; //[fnGammaCandidates]
138 
139  ClassDef(AliAnalysisTaskConversionQA, 8);
140 };
141 
142 #endif
143 
void SetEventCuts(AliConvEventCuts *conversionCuts, Bool_t IsHeavyIon)
double Double_t
Definition: External.C:58
Definition: External.C:236
void SetConversionCuts(AliConversionPhotonCuts *conversionCuts, Bool_t IsHeavyIon)
void FillType(Double_t fillTree, Bool_t fillHistorams)
AliConversionPhotonCuts * fConversionCuts
int Int_t
Definition: External.C:63
Definition: External.C:204
unsigned int UInt_t
Definition: External.C:33
float Float_t
Definition: External.C:68
Class handling all kinds of selection cuts for Gamma Conversion analysis.
void SetV0Reader(AliV0ReaderV1 *v0Reader)
Int_t mode
Definition: anaM.C:41
Bool_t isMC
Definition: External.C:220
Class handling all kinds of selection cuts for Gamma Conversion analysis.
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53