AliPhysics  d497547 (d497547)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 SetLightOutput(Bool_t flag) {fDoLightOutput = flag;}
28  void SetAnalyzedParticle(Int_t flag);
29  void SetHasMother(UInt_t selectedMothers);
30  TH1* SetHist1D(TH1* hist, TString histType, TString histName, TString xTitle, TString yTitle, Int_t nBinsX, Double_t xMin, Double_t xMax, Bool_t optSumw2);
31  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);
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* binsY, Bool_t optSumw2);
33  void SetLogBinningXTH1(TH1* histoRebin);
34  void SetLogBinningXTH2(TH2* histoRebin);
35 
36  // getters
38  Float_t GetDecayChannel(AliMCEvent* mcEvent, TParticle* part);
39  void GetAndSetPtParametrizations(AliGenEMCocktailV2* mcCocktailGen);
40  void GetAndSetPtYDistributions(AliGenEMCocktailV2* mcCocktailGen);
41 
42  // additional functions
43  void InitializeDecayChannelHist(TH1F* hist, Int_t np);
44  void FillPythiaBranchingRatio(TH1F* histo, Int_t np);
45 
46  protected:
47  AliVEvent* fInputEvent; // current event
48  AliMCEvent* fMCEvent; // corresponding MC event
49  AliMCGenHandler* fMCGenHandler;
50  const AliGenerator* fMCGenerator;
51  AliGenEMCocktailV2* fMCCocktailGen;
52 
55  TList* fOutputContainer; // Output container
56 
57  Int_t* fParticleList; // array with particle Pdg values
58  TString* fParticleListNames; // array with particle names
59 
60  Int_t fAnalyzedMeson; // switch for analyzing pi0 (0), eta (1), pi+-(2)
61  Bool_t fAnalyzeNeutralPi; // switch for pi0 analysis
62  Bool_t fAnalyzeChargedPi; // switch for pi+- analysis
63  Bool_t fDoLightOutput; // switch for running light
64  Bool_t fHasMother[24]; // mother i produced
65 
66  // nEvent histogram
67  TH1F* fHistNEvents; // number of events histo
68 
69  // histograms mesons
73  TH1F** fHistPythiaBR;
74 
75  Int_t fIsMC; // MC flag
76  Double_t fMaxY; // Max y
77 
80 
85 
88 
91 
92  // generator settings
93  TF1* fPtParametrization[24];
96  TObjString* fCocktailSettings[12];
99 
100  private:
101  AliAnalysisTaskHadronicCocktailMC(const AliAnalysisTaskHadronicCocktailMC&); // Prevent copy-construction
103 
105 };
106 
107 #endif
108 
109 
110 
111 
112 
113 
114 
115 
116 
117 
118 
119 
Int_t pdg
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
TF1 * fPtParametrization[24]
histo for gamma from rest
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
Int_t fIsMC
histo for input particle BR from pythia
TH2F ** fHistPtYGammaFromXFromInput
histo for phi of input particles
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
TH2F ** fHistPtPhiGammaFromXFromInput
gammas from X from k0s, k0l, lambda
void GetAndSetPtParametrizations(AliGenEMCocktailV2 *mcCocktailGen)
Definition: External.C:196
TH1F ** fHistPythiaBR
histo for input particle decay channels