AliPhysics  6bc8652 (6bc8652)
 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 ()
 
 AliEMCalTriggerWeightHandler (const AliEMCalTriggerWeightHandler &ref)
 
AliEMCalTriggerWeightHandleroperator= (const AliEMCalTriggerWeightHandler &ref)
 
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...
 
TObjArrayfBinWeights
 Container for weights in a given pt-hard bin. More...
 
bool fUseCrossSection
 Calculate weight using pt-hard. More...
 

Detailed Description

Weight handler.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Lawrence Berkeley National Laboratory
Date
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 ( )

Constructor

Definition at line 30 of file AliEMCalTriggerWeightHandler.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::AliEMCalTriggerWeightHandler ( const AliEMCalTriggerWeightHandler ref)

Copy constructor

Parameters
refReference for the copy

Definition at line 41 of file AliEMCalTriggerWeightHandler.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::~AliEMCalTriggerWeightHandler ( )
virtual

Destructor, cleanup memory assigned

Definition at line 75 of file AliEMCalTriggerWeightHandler.cxx.

Referenced by operator=().

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
[in]pthardPt-hard value to find a bin for
Returns
weight for the pthard bin (if found), NULL otherwise

Definition at line 130 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
[in]headerPythia Event Header
Returns
the weight calculated for the event

Definition at line 113 of file AliEMCalTriggerWeightHandler.cxx.

AliEMCalTriggerWeightHandler & EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::operator= ( const AliEMCalTriggerWeightHandler ref)

Assignment operator

Parameters
refReference for the assignment
Returns
Object after assignment

Definition at line 59 of file AliEMCalTriggerWeightHandler.cxx.

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

Defines whether we use the cross section as weight.

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

Definition at line 89 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
[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 83 of file AliEMCalTriggerWeightHandler.cxx.

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

Set the weight model

Parameters
[in]modelThe weight model

Definition at line 95 of file AliEMCalTriggerWeightHandler.h.

Member Data Documentation

TObjArray* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fBinWeights
private

Container for weights in a given pt-hard bin.

Definition at line 129 of file AliEMCalTriggerWeightHandler.h.

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

bool EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fUseCrossSection
private

Calculate weight using pt-hard.

Definition at line 130 of file AliEMCalTriggerWeightHandler.h.

Referenced by GetEventWeight(), operator=(), and SetUseCrossSection().

const TF1* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fWeightModel
private

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