AliPhysics  31210d0 (31210d0)
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...
 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 ( const AliEMCalTriggerWeightHandler ref)

Copy constructor

refReference for the copy

Definition at line 41 of file AliEMCalTriggerWeightHandler.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::~AliEMCalTriggerWeightHandler ( )

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

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 130 of file AliEMCalTriggerWeightHandler.cxx.

Referenced by GetEventWeight().

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 113 of file AliEMCalTriggerWeightHandler.cxx.

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

Assignment operator

refReference for the assignment
Object after assignment

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

[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)

Set the weight model

[in]modelThe weight model

Definition at line 95 of file AliEMCalTriggerWeightHandler.h.

Member Data Documentation

TObjArray* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fBinWeights

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

Calculate weight using pt-hard.

Definition at line 130 of file AliEMCalTriggerWeightHandler.h.

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

const TF1* EMCalTriggerPtAnalysis::AliEMCalTriggerWeightHandler::fWeightModel

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