AliPhysics  aaf9c62 (aaf9c62)
AliAnalysisTaskGammaConvFlow.h
Go to the documentation of this file.
1 #ifndef ALIANLYSISTASKGAMMACONVFLOW_cxx
2 #define ALIANLYSISTASKGAMMACONVFLOW_cxx
3 
4 #include "AliAnalysisTaskSE.h"
5 #include "AliESDtrack.h"
6 #include "AliV0ReaderV1.h"
7 #include "AliConvEventCuts.h"
11 #include "AliConversionMesonCuts.h"
12 #include "AliAnalysisManager.h"
13 #include "TProfile2D.h"
14 #include "TH3.h"
15 #include "TH3F.h"
16 
17 
18 class AliFlowTrackCuts;
19 class AliFlowTrack;
20 class AliFlowEvent;
22 class AliFlowEventSimple;
23 
24 
26 
27  public:
29  AliAnalysisTaskGammaConvFlow(const char *name);
30  AliAnalysisTaskGammaConvFlow(const char *name, Int_t nCuts);
32 
33  virtual void UserCreateOutputObjects();
34  virtual Bool_t Notify();
35  virtual void UserExec(Option_t *);
36  virtual void Terminate(const Option_t*);
37 
38  void SetV0ReaderName(TString name){fV0ReaderName=name; return;}
39  void SetIsHeavyIon(Int_t flag){
40  fIsHeavyIon = flag;
41 
42  }
43 
45  void SetDoMesonQA(Int_t flag){fDoMesonQA = flag;}
46  void SetDoPhotonQA(Int_t flag){fDoPhotonQA = flag;}
49  //void CalculatePi0Candidates();
50  //void CalculateBackground();
51  //void CalculateBackgroundRP();
52  //void RelabelAODPhotonCandidates(Bool_t mode);
53  //void RotateParticle(AliAODConversionPhoton *gamma);
54  //void RotateParticleAccordingToEP(AliAODConversionPhoton *gamma, Double_t previousEventEP, Double_t thisEventEP);
55 
56  void SetEventCutList(Int_t nCuts, TList *CutArray){
57  fnCuts = nCuts;
58  fEventCutArray = CutArray;
59  }
60  void SetConversionCutList(Int_t nCuts, TList *CutArray){
61  fnCuts = nCuts;
62  fCutArray = CutArray;
63  }
64  //void SetMesonCutList(Int_t nCuts, TList *CutArray){
65  // fnCuts = nCuts;
66  // fMesonCutArray = CutArray;
67  //}
68 
69  // BG HandlerSettings
70  //void SetMoveParticleAccordingToVertex(Bool_t flag){fMoveParticleAccordingToVertex = flag;}
71  //void FillPhotonCombinatorialBackgroundHist(AliAODConversionPhoton *TruePhotonCandidate, Int_t pdgCode[]);
72  //void MoveParticleAccordingToVertex(AliAODConversionPhoton* particle,const AliGammaConversionAODBGHandler::GammaConversionVertex *vertex);
74  void SetLogBinningXTH2(TH2* histoRebin);
75  //Int_t GetSourceClassification(Int_t daughter, Int_t pdgCode);
76 
77  template <typename T> void SetNullCuts(T* aod);
78  void PrepareFlowEvent(Int_t iMulti, AliFlowEvent *FlowEv) const;
79  void SetRPCuts(AliFlowTrackCuts *cutsRP) { fCutsRP = cutsRP; }
82  void SetMassWindow(Float_t MinMass, Float_t MaxMass) { fMinMass = MinMass; fMaxMass = MaxMass; }
83  void SetKappaWindow(Float_t MinKappa, Float_t MaxKappa) { fMinKappa = MinKappa; fMaxKappa = MaxKappa; }
84  void SetFilterVariable(Int_t FilterVariable, Double_t MinFilter, Double_t MaxFilter) { fFilterVariable = FilterVariable; fMinFilter = MinFilter; fMaxFilter = MaxFilter;}
85  void SetApplydPhidRCut(Int_t dPhiDRCut){ fApplydPhidRCut = dPhiDRCut; }
86  void SetPerformExtraStudies(Bool_t ExtraStudies){ fPerformExtraStudies = ExtraStudies; }
87 
88 
89  protected:
94  AliVEvent *fInputEvent; //
103  TClonesArray *fReaderGammas; //
111  TH1F **hESDConvGammaPt; //
113  TH2F **hLTMPt; //
133  TH1F **hESDConvGammaR; //
134  TH1F **hESDConvGammaEta; //
139  UChar_t iCatPhoton; //
140  UChar_t iPhotonMCInfo; //
141  // 0: garbage,
142  // 1: background
143  // 2: secondary photon not from eta or k0s,
144  // 3: secondary photon from eta,
145  // 4: secondary photon from k0s,
146  // 5: dalitz
147  // 6: primary gamma
149  //THnSparseF **sESDMotherInvMassPtZM; //
151  //THnSparseF **sESDMotherBackInvMassPtZM; //
164  TProfile **hEtaShift; //
170  UChar_t iFlag; //
171  UChar_t iMesonMCInfo; //
172  // 0: garbage,
173  // 1: background
174  // 2: secondary meson not from eta or k0s,
175  // 3: secondary meson from eta,
176  // 4: secondary meson from k0s,
177  // 5: dalitz
178  // 6: primary meson gamma-gamma-channel
179  Double_t fEventPlaneAngle; // EventPlaneAngle
180  TRandom3 fRandom; //
182  Double_t *fUnsmearedPx; //[fnGammaCandidates]
183  Double_t *fUnsmearedPy; //[fnGammaCandidates]
184  Double_t *fUnsmearedPz; //[fnGammaCandidates]
185  Double_t *fUnsmearedE; //[fnGammaCandidates]
186  Int_t *fMCEventPos; //[fnGammaCandidates]
187  Int_t *fMCEventNeg; //[fnGammaCandidates]
188  Int_t *fESDArrayPos; //[fnGammaCandidates]
189  Int_t *fESDArrayNeg; //[fnGammaCandidates]
199 
210  AliMCEvent* fMCEvent; //
211 
212  private:
214  AliFlowTrackCuts *fCutsRP; // track cuts for reference particles
215  AliFlowTrackCuts *fNullCuts; // dummy cuts for flow event tracks
217 
220  Bool_t MCConversionPhotonCheck( TParticle *MCPhoton );
222  void GetdPhidRtoCandidate();
224 
225  AliAnalysisTaskGammaConvFlow(const AliAnalysisTaskGammaConvFlow&); // Prevent copy-construction
227 
228  ClassDef(AliAnalysisTaskGammaConvFlow, 13);
229 };
230 
231 #endif
double Double_t
Definition: External.C:58
void SetKappaWindow(Float_t MinKappa, Float_t MaxKappa)
Definition: External.C:236
AliConversionPhotonCuts * fConversionCuts
void SetRPCuts(AliFlowTrackCuts *cutsRP)
Bool_t MCElectronElectron(AliAODConversionPhoton *MCPhoton)
flow events Inclusive e
AliGammaConversionAODBGHandler ** fBGHandler
Bool_t MCConversionPhotonCheck(TParticle *MCPhoton)
void SetEventCutList(Int_t nCuts, TList *CutArray)
void SetPerformExtraStudies(Bool_t ExtraStudies)
UShort_t T(UShort_t m, UShort_t t)
Definition: RingBits.C:60
AliConversionAODBGHandlerRP ** fBGHandlerRP
int Int_t
Definition: External.C:63
Definition: External.C:204
float Float_t
Definition: External.C:68
virtual void Terminate(const Option_t *)
Definition: External.C:212
AliAnalysisTaskGammaConvFlow & operator=(const AliAnalysisTaskGammaConvFlow &)
Class handling all kinds of selection cuts for Gamma Conversion analysis.
Bool_t isMC
Bool_t MCGammaSignal(AliAODConversionPhoton *MCPhoton)
Definition: External.C:220
Class handling all kinds of selection cuts for Gamma Conversion analysis.
void PrepareFlowEvent(Int_t iMulti, AliFlowEvent *FlowEv) const
AliFlowTrackCuts * fCutsRP
enable debug mode
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
void SetFilterVariable(Int_t FilterVariable, Double_t MinFilter, Double_t MaxFilter)
void SetConversionCutList(Int_t nCuts, TList *CutArray)
void SetMassWindow(Float_t MinMass, Float_t MaxMass)
Int_t GetTemplateID(AliAODConversionPhoton *MCPhoton)