AliPhysics  9c66e61 (9c66e61)
AliAnalysisTaskEtaToPiPlPiMiGamma.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKETATOPIPLPIMIGAMMA_H
2 #define ALIANALYSISTASKETATOPIPLPIMIGAMMA_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 
8 #include "AliAnalysisTaskSE.h"
9 #include "AliV0ReaderV1.h"
10 #include "AliKFConversionPhoton.h"
11 #include "AliPrimaryPionSelector.h"
12 #include "AliConversionMesonCuts.h"
13 #include "AliConvEventCuts.h"
15 #include "TProfile2D.h"
16 #include <vector>
17 
18 class AliESDInputHandler;
19 class AliMCEventHandler;
20 class AliESDEvent;
21 class AliESDtrack;
22 class AliESDtrackCuts;
23 class AliESDpidCuts;
24 class AliV0Reader;
25 class AliTriggerAnalysis;
26 
28 {
29  public:
30 
32  AliAnalysisTaskEtaToPiPlPiMiGamma( const char* name );
34 
35  virtual void UserExec(Option_t *);
36  virtual void UserCreateOutputObjects();
37  virtual Bool_t Notify();
38  virtual void Terminate(const Option_t *);
39 
40  void SetV0ReaderName(TString name){fV0ReaderName=name; return;}
42 
43  void SetIsHeavyIon(Int_t flag){
44  if (flag == 1 || flag ==2 ){
45  fIsHeavyIon = 1;
46  } else {
47  fIsHeavyIon = 0;
48  }
49  }
50 
52  void SetConversionCutList(Int_t nCuts, TList *CutArray){
53  fnCuts= nCuts;
54  fGammaCutArray = CutArray;
55  }
56  void SetEventCutList(Int_t nCuts, TList *CutArray){
57  fnCuts= nCuts;
58  fEventCutArray = CutArray;
59  }
60 
61  void SetPionCutList(TList *CutArray){
62  fPionCutArray = CutArray;
63  }
64  void SetMesonCutList(TList *CutArray){
65  fMesonCutArray = CutArray;
66  }
67  void SetDoMesonQA(Bool_t flag){ fDoMesonQA = flag; }
68 
69 
70  private:
71 
72  void InitBack();
75  void ProcessTrueMesonCandidates(AliAODConversionMother *Pi0Candidate, AliAODConversionPhoton *TrueGammaCandidate, AliAODConversionPhoton *TrueVirtualGammaCandidate);
77  void ProcessPionCandidates();
78  void ProcessMCParticles();
80  void CalculateBackground();
82 
83  Bool_t IsPiPlPiMiGammaDecay(TParticle *fMCMother) const;
85 
86  Bool_t CheckVectorForDoubleCount(vector<Int_t> &vec, Int_t tobechecked);
87 
88 
94  AliMCEvent *fMCEvent; //
102  TClonesArray *fReaderGammas; //
103  vector<Int_t> fSelectorNegPionIndex; //
104  vector<Int_t> fSelectorPosPionIndex; //
113 
114  // reconstructed particles
115  TH1F **fHistoConvGammaPt; //
117  TH1F **fHistoNegPionPt; //
118  TH1F **fHistoPosPionPt; //
119  TH1F **fHistoNegPionPhi; //
120  TH1F **fHistoPosPionPhi; //
121  TH1F **fHistoNegPionEta; //
122  TH1F **fHistoPosPionEta; //
134 
135  // pure MC properties
144  TH1F **fHistoMCEtaGGPt; //
147 
148  // reconstructed particles MC validated
164  // Event properties
167  TProfile **fProfileEtaShift; //
169 
170  TRandom3 fRandom;
181  private:
184 
185  ClassDef( AliAnalysisTaskEtaToPiPlPiMiGamma, 6 );
186 };
187 
188 #endif // ALIANALYSISTASKETATOPIPLPIMIGAMMA_H
189 
Definition: External.C:236
void SetConversionCutList(Int_t nCuts, TList *CutArray)
void MoveParticleAccordingToVertex(AliAODConversionPhoton *particle, const AliGammaConversionAODBGHandler::GammaConversionVertex *vertex)
void SetEventCutList(Int_t nCuts, TList *CutArray)
AliAnalysisTaskEtaToPiPlPiMiGamma & operator=(const AliAnalysisTaskEtaToPiPlPiMiGamma &)
TH1I ** fHistoNEvents
vector containing labels of validated photons
TH2F ** fHistoDoubleCountTrueConvGammaRPt
array of histos with double counted etas, invMass, pT
TRandom3 fRandom
array of histos with SPD tracklets vs SPD clusters for background rejection
void ProcessTrueMesonCandidates(AliAODConversionMother *Pi0Candidate, AliAODConversionPhoton *TrueGammaCandidate, AliAODConversionPhoton *TrueVirtualGammaCandidate)
int Int_t
Definition: External.C:63
Definition: External.C:204
Bool_t CheckVectorForDoubleCount(vector< Int_t > &vec, Int_t tobechecked)
void ProcessTruePhotonCandidates(AliAODConversionPhoton *)
Class handling all kinds of selection cuts for Gamma Conversion analysis.
AliGammaConversionAODBGHandler ** fBGHandler
Bool_t isMC
Bool_t IsPiPlPiMiGammaDecay(TParticle *fMCMother) const
Class handling all kinds of selection cuts for Gamma Conversion analysis.
vector< Int_t > fVectorDoubleCountTrueEtas
array of histos with double counted photons, R, pT
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
vector< Int_t > fVectorDoubleCountTrueConvGammas
vector containing labels of validated eta