1 #ifndef ALIEMCALTRIGGERWEIGHTHANDLER_H
2 #define ALIEMCALTRIGGERWEIGHTHANDLER_H
11 class AliGenPythiaEventHeader;
22 namespace EMCalTriggerPtAnalysis {
103 double GetEventWeight(
const AliGenPythiaEventHeader *
const header)
const;
AliEMCalTriggerWeightHandler()
const AliEMCalTriggerPtHardWeight * FindWeight(Double_t pthard) const
void SetPtRange(Double_t ptmin, Double_t ptmax)
virtual ~AliEMCalTriggerWeightHandler()
AliEMCalTriggerPtHardWeight(double ptmin, double ptmax, double weight)
AliEMCalTriggerPtHardWeight()
void SetWeightForBin(double ptmin, double ptmax, double weight)
Double_t GetPtMax() const
void SetWeightModel(const TF1 *model)
void SetWeight(double weight)
Double_t GetWeight() const
bool fUseCrossSection
Calculate weight using pt-hard.
double fPtMax
Max of the pthard bin.
double GetEventWeight(const AliMCEvent *const event) const
Double_t GetPtMin() const
TObjArray * fBinWeights
Container for weights in a given pt-hard bin.
virtual ~AliEMCalTriggerPtHardWeight()
const TF1 * fWeightModel
Weight model.
bool IsSelected(Double_t pthard) const
void GetPtLimits(Double_t &ptmin, Double_t &ptmax) const
double fWeight
Weight being applied to the pt-hard bin.
double fPtMin
Min of the pthard bin.
void SetUseCrossSection(bool useCrossSection)