AliPhysics  05bc5cb (05bc5cb)
 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.

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 63 of file AliEMCalTriggerWeightHandler.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::AliEMCalTriggerWeightHandler ( )

Constructor

Definition at line 33 of file AliEMCalTriggerWeightHandler.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::~AliEMCalTriggerWeightHandler ( )
virtual

Destructor, cleanup memory assigned

Definition at line 44 of file AliEMCalTriggerWeightHandler.cxx.

Member Function Documentation

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

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

Parameters
pthardPt-hard value to find a bin for
Returns
weight for the pthard bin (if found), NULL otherwise

Definition at line 109 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

Parameters
headerPythia Event Header
Returns
the weight calculated for the event

Definition at line 90 of file AliEMCalTriggerWeightHandler.cxx.

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

Defines whether we use the cross section as weight.

Parameters
useCrossSectionDefine whether to use the cross section as event weight

Definition at line 72 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.

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

Definition at line 56 of file AliEMCalTriggerWeightHandler.cxx.

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

Set the weight model

Parameters
modelThe weight model

Definition at line 78 of file AliEMCalTriggerWeightHandler.h.

Member Data Documentation

TObjArray* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fBinWeights
private

Container for weights in a given pt-hard bin.

Definition at line 90 of file AliEMCalTriggerWeightHandler.h.

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

bool EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fUseCrossSection
private

Calculate weight using pt-hard.

Definition at line 91 of file AliEMCalTriggerWeightHandler.h.

Referenced by GetEventWeight(), and SetUseCrossSection().

const TF1* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fWeightModel
private

Weight model.

Definition at line 89 of file AliEMCalTriggerWeightHandler.h.

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


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