AliPhysics  7a29d0d (7a29d0d)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler Class Reference

Weight handler. More...

#include <AliEMCalTriggerWeightHandler.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler:

Public Member Functions

 AliEMCalTriggerWeightHandler ()
virtual ~AliEMCalTriggerWeightHandler ()
void SetUseCrossSection (bool useCrossSection)
void SetWeightModel (const TF1 *model)
void SetWeightForBin (double ptmin, double ptmax, double weight)
double GetEventWeight (const AliMCEvent *const event) const
double GetEventWeight (const AliGenPythiaEventHeader *const header) const

Protected Member Functions

const AliEMCalTriggerPtHardWeightFindWeight (Double_t pthard) const

Private Attributes

const TF1 * fWeightModel
 Weight model. More...
TObjArray * fBinWeights
 Container for weights in a given pt-hard bin. More...
bool fUseCrossSection
 Calculate weight using pt-hard. More...

Detailed Description

Weight handler.

Markus Fasel, Lawrence Berkeley National Laboratory
Mar 15, 2015

Weight handler, assigning an event-dependent weight. The weight is coming from a weight model, which is based on an analytic description. For the moment it is assumed that the event depends on the \( p_{t} \) of the hard interaction.

Definition at line 60 of file AliEMCalTriggerWeightHandler.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::AliEMCalTriggerWeightHandler ( )


Definition at line 30 of file AliEMCalTriggerWeightHandler.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::~AliEMCalTriggerWeightHandler ( )

Destructor, cleanup memory assigned

Definition at line 40 of file AliEMCalTriggerWeightHandler.cxx.

Member Function Documentation

const AliEMCalTriggerPtHardWeight * EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::FindWeight ( Double_t  pthard) const

Find weihgt for pt-hard value in the list of weights

[in]pthardPt-hard value to find a bin for
weight for the pthard bin (if found), NULL otherwise

Definition at line 95 of file AliEMCalTriggerWeightHandler.cxx.

Referenced by GetEventWeight().

double EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::GetEventWeight ( const AliMCEvent *const  event) const
double EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::GetEventWeight ( const AliGenPythiaEventHeader *const  header) const

Get weight for event using a given pythia event header

[in]headerPythia Event Header
the weight calculated for the event

Definition at line 78 of file AliEMCalTriggerWeightHandler.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::SetUseCrossSection ( bool  useCrossSection)

Defines whether we use the cross section as weight.

[in]useCrossSectionDefine whether to use the cross section as event weight

Definition at line 75 of file AliEMCalTriggerWeightHandler.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::SetWeightForBin ( double  ptmin,
double  ptmax,
double  weight 

Set weight for a given pt-hard bin to the list of weights. Creates the container if not yet existing.

[in]ptminMin. \( p_{t} \) of the \( p_{t} \)-hard bin
[in]ptmaxMax. \( p_{t} \) of the \( p_{t} \)-hard bin
[in]weightBin weight

Definition at line 48 of file AliEMCalTriggerWeightHandler.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::SetWeightModel ( const TF1 *  model)

Set the weight model

[in]modelThe weight model

Definition at line 81 of file AliEMCalTriggerWeightHandler.h.

Member Data Documentation

TObjArray* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fBinWeights

Container for weights in a given pt-hard bin.

Definition at line 115 of file AliEMCalTriggerWeightHandler.h.

Referenced by FindWeight(), GetEventWeight(), SetWeightForBin(), and ~AliEMCalTriggerWeightHandler().

bool EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fUseCrossSection

Calculate weight using pt-hard.

Definition at line 116 of file AliEMCalTriggerWeightHandler.h.

Referenced by GetEventWeight(), and SetUseCrossSection().

const TF1* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fWeightModel

Weight model.

Definition at line 114 of file AliEMCalTriggerWeightHandler.h.

Referenced by GetEventWeight(), SetWeightModel(), and ~AliEMCalTriggerWeightHandler().

The documentation for this class was generated from the following files: