1 #ifndef ALIANAWEIGHTS_H
2 #define ALIANAWEIGHTS_H
28 class AliGenPythiaEventHeader;
159 #endif //ALIANAWEIGHTS_H
TList * GetCreateOutputHistograms()
void SetCentrality(Float_t cen)
void SwitchOffMCCrossSectionFromEventHeader()
void SwitchOffCentralityWeight()
void SetEtaFunction(TF1 *fun)
Calculate the weight to the event to be applied when filling histograms.
TH1F * fhCentralityWeight
Container of centrality weights.
Double_t GetParticlePtWeight(Float_t pt, Int_t pdg, TString genName, Int_t igen) const
void SwitchOnMCCrossSectionHistoFill()
Bool_t IsCentralityWeightOn() const
Float_t fCentrality
Container of centrality percentile.
Bool_t fJustFillCrossSecHist
Do not provide a weight, just fill cross section histograms.
void SwitchOnCentralityWeight()
void SwitchOnMCCrossSectionFromEventHeader()
virtual ~AliAnaWeights()
Destructor.
void SwitchOnMCCrossSectionCalculation()
Bool_t IsMCCrossSectionJustHistoFillOn() const
void SwitchOnMCParticlePtWeights()
void InitCentralityWeightsHistogram(Int_t nbins=100, Int_t minCen=0, Int_t maxCen=100)
TF1 * fPi0Function
! pi0 spectrum parametrization
void SwitchOffMCCrossSectionCalculation()
void SetPi0Function(TF1 *fun)
TH1F * GetCentralityWeightsHistogram()
Bool_t IsMCCrossSectionCalculationOn() const
AliAnaWeights()
Constructor.
Bool_t IsWeightSettingOn() const
void SwitchOffMCParticlePtWeights()
TH1F * fhXsec
! Cross section in PYTHIA.
AliAnaWeights & operator=(const AliAnaWeights &)
Assignment operator not implemented.
TF1 * fEtaFunction
! eta spectrum parametrization
void SetCentralityWeightsHistogram(TH1F *h)
Double_t fMCWeight
pT-hard bin MC weight. It is used only internally.
void SetPythiaEventHeader(AliGenPythiaEventHeader *py)
AliGenPythiaEventHeader * fPyEventHeader
! Pythia event header, needed to retrieve cross section, only in recent MC
TString fCurrFileName
Current file path name.
Bool_t fDoMCParticlePtWeights
activate the generation of a pT weight depending on MC particle pdg and generator ...
virtual Double_t GetWeight()
Bool_t fUseCentralityWeight
Return the centratlity weight.
Bool_t fCheckPythiaEventHeader
Get cross section from pythia event header.
Bool_t fCheckMCCrossSection
Retrieve from the pyxsec.root file the cross section, only if requested.
virtual Double_t GetPythiaCrossSection()
static Bool_t GetPythiaInfoFromFile(TString currFile, Float_t &xsec, Float_t &trials)
TH1F * fhTrials
! Number of event trials in PYTHIA.