AliPhysics  v5-06-40-01 (42bb456)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler Class Reference

Weight handler. More...

#include <AliEMCalTriggerWeightHandler.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler:

Public Member Functions

 AliEMCalTriggerWeightHandler ()
 
virtual ~AliEMCalTriggerWeightHandler ()
 
void SetUsePtHard (bool usePtHard)
 
void SetWeightModel (TF1 *model)
 
double GetEventWeight (const AliMCEvent *const event) const
 

Private Attributes

TF1 * fWeightModel
 Weight model. More...
 
bool fUsePtHard
 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 36 of file AliEMCalTriggerWeightHandler.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::AliEMCalTriggerWeightHandler ( )

Constructor

Definition at line 31 of file AliEMCalTriggerWeightHandler.cxx.

virtual EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::~AliEMCalTriggerWeightHandler ( )
inlinevirtual

Definition at line 39 of file AliEMCalTriggerWeightHandler.h.

Member Function Documentation

double EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::GetEventWeight ( const AliMCEvent *const  event) const
void EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::SetUsePtHard ( bool  usePtHard)
inline

Defines whether we use the \( p_{t} \) hard value of an event.

Parameters
usePtHard

Definition at line 45 of file AliEMCalTriggerWeightHandler.h.

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

Set the weight model

Parameters
modelThe weight model

Definition at line 51 of file AliEMCalTriggerWeightHandler.h.

Member Data Documentation

bool EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fUsePtHard
private

Calculate weight using pt-hard.

Definition at line 57 of file AliEMCalTriggerWeightHandler.h.

Referenced by GetEventWeight(), and SetUsePtHard().

TF1* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fWeightModel
private

Weight model.

Definition at line 56 of file AliEMCalTriggerWeightHandler.h.

Referenced by GetEventWeight(), and SetWeightModel().


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