AliPhysics  9c66e61 (9c66e61)
AliAnalysisTaskHadronicCocktailMC.h
Go to the documentation of this file.
1 #ifndef ALIANLYSISTASKHADRONICCOCKTAILMC_cxx
2 #define ALIANLYSISTASKHADRONICCOCKTAILMC_cxx
3 
4 #include "AliAnalysisTaskSE.h"
5 #include "AliAnalysisManager.h"
6 #include "AliGenEMCocktailV2.h"
7 #include "AliMCGenHandler.h"
8 #include "AliGenerator.h"
9 
11  public:
12 
14  AliAnalysisTaskHadronicCocktailMC(const char *name);
16 
17  virtual void UserCreateOutputObjects();
18  virtual void UserExec(Option_t *);
19  virtual void Terminate(const Option_t*);
20 
21  // MC functions
23  void ProcessMCParticles();
24 
25  // setters
26  void SetMaxY(Double_t maxy){fMaxY = maxy;}
27  void SetMaxEta(Double_t maxeta){fMaxEta = maxeta;}
28  void SetLightOutput(Bool_t flag) {fDoLightOutput = flag;}
29  void SetAnalyzedParticle(Int_t flag);
30  void SetHasMother(UInt_t selectedMothers);
31  TH1* SetHist1D(TH1* hist, TString histType, TString histName, TString xTitle, TString yTitle, Int_t nBinsX, Double_t xMin, Double_t xMax, Bool_t optSumw2);
32  TH2* SetHist2D(TH2* hist, TString histType, TString histName, TString xTitle, TString yTitle, Int_t nBinsX, Double_t xMin, Double_t xMax, Int_t nBinsY, Double_t yMin, Double_t yMax, Bool_t optSumw2);
33  TH2* SetHist2D(TH2* hist, TString histType, TString histName, TString xTitle, TString yTitle, Int_t nBinsX, Double_t xMin, Double_t xMax, Int_t nBinsY, Double_t* binsY, Bool_t optSumw2);
34  void SetLogBinningXTH1(TH1* histoRebin);
35  void SetLogBinningXTH2(TH2* histoRebin);
36 
37  // getters
39  Float_t GetDecayChannel(AliMCEvent* mcEvent, TParticle* part);
40  void GetAndSetPtParametrizations(AliGenEMCocktailV2* mcCocktailGen);
41  void GetAndSetPtYDistributions(AliGenEMCocktailV2* mcCocktailGen);
42 
43  // additional functions
44  void InitializeDecayChannelHist(TH1F* hist, Int_t np);
45  void FillPythiaBranchingRatio(TH1F* histo, Int_t np);
46 
47  protected:
48  TList* fOutputContainer; // Output container
49 
50  AliVEvent* fInputEvent; // current event
51  AliMCEvent* fMCEvent; // corresponding MC event
52  AliMCGenHandler* fMCGenHandler;
53  const AliGenerator* fMCGenerator;
54  AliGenEMCocktailV2* fMCCocktailGen;
55 
56  Int_t fAnalyzedMeson; // switch for analyzing pi0 (0), eta (1), pi+-(2)
57  Bool_t fAnalyzeNeutralPi; // switch for pi0 analysis
58  Bool_t fAnalyzeChargedPi; // switch for pi+- analysis
59  Bool_t fDoLightOutput; // switch for running light
60  Bool_t fHasMother[24]; // mother i produced
61 
62  // nEvent histogram
63  TH1F* fHistNEvents; // number of events histo
64 
65  // histograms mesons
71  TH1F** fHistPythiaBR;
72 
75 
78 
83 
84  Int_t* fParticleList; // array with particle Pdg values
85  TString* fParticleListNames; // array with particle names
86 
87  // generator settings
88  TF1* fPtParametrization[24];
91  TObjString* fCocktailSettings[12];
94 
97  Int_t fIsMC; // MC flag
98  Double_t fMaxY; // Max y
99  Double_t fMaxEta; // Max Eta
100 
101 
102  private:
103  AliAnalysisTaskHadronicCocktailMC(const AliAnalysisTaskHadronicCocktailMC&); // Prevent copy-construction
105 
107 };
108 
109 #endif
110 
111 
112 
113 
114 
115 
116 
117 
118 
119 
120 
121 
Int_t pdg
TH2F ** fHistPtYInput
histo for phi of input particles
double Double_t
Definition: External.C:58
Definition: External.C:236
AliAnalysisTaskHadronicCocktailMC & operator=(const AliAnalysisTaskHadronicCocktailMC &)
void GetAndSetPtYDistributions(AliGenEMCocktailV2 *mcCocktailGen)
TH2F ** fHistPtYDaughterSource
histo for pi0/eta from input particles
TH1 * SetHist1D(TH1 *hist, TString histType, TString histName, TString xTitle, TString yTitle, Int_t nBinsX, Double_t xMin, Double_t xMax, Bool_t optSumw2)
int Int_t
Definition: External.C:63
Float_t GetDecayChannel(AliMCEvent *mcEvent, TParticle *part)
Definition: External.C:204
unsigned int UInt_t
Definition: External.C:33
float Float_t
Definition: External.C:68
TH1I * fHistPdgInputRest
histo for phi correlation of gammas from input particles to source
TH2 * SetHist2D(TH2 *hist, TString histType, TString histName, TString xTitle, TString yTitle, Int_t nBinsX, Double_t xMin, Double_t xMax, Int_t nBinsY, Double_t yMin, Double_t yMax, Bool_t optSumw2)
Definition: External.C:212
TH1F ** fHistDecayChannelsInput
histo for input particles
TH2F ** fHistPtPhiInput
histo for phi of pi0/eta from input particles
TH2F ** fHistPtPhiGammaFromPi0FromInput
gammas from pi0 from k0s, k0l, lambda
Bool_t isMC
Definition: External.C:220
TH2F ** fHistPhiDaughterPhiSourceInput
histo for pt correlation of gammas from input particles to source
TH2F ** fHistPtDaughterPtSourceInput
histo for input particle BR from pythia
TH2F ** fHistPtYGammaFromXFromInput
histo for gamma from rest
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
TH2F ** fHistPtPhiGammaFromXFromInput
gammas from X from k0s, k0l, lambda
Double_t yMin
void GetAndSetPtParametrizations(AliGenEMCocktailV2 *mcCocktailGen)
Definition: External.C:196
TH1F ** fHistPythiaBR
histo for input particle decay channels
Double_t yMax