AliPhysics  64f4410 (64f4410)
AliBaseMCWeights Class Referenceabstract

#include <AliBaseMCWeights.h>

Inheritance diagram for AliBaseMCWeights:

Public Member Functions

 AliBaseMCWeights ()
 
 AliBaseMCWeights (const AliBaseMCWeights &o)
 
AliBaseMCWeightsoperator= (const AliBaseMCWeights &o)
 
virtual ~AliBaseMCWeights ()
 
virtual Double_t CalcWeight (const AliMCParticle *p, Bool_t isPrimary, Double_t phiR, Double_t b) const
 
virtual Double_t CalcWeight (Double_t eta, Double_t pt, Double_t phi, Int_t id, Double_t phiR, Double_t b) const =0
 
virtual void Init (TList *l)
 
virtual void Print (Option_t *option="") const
 

Detailed Description

Base class for weights in calculation of the secondary maps

Definition at line 21 of file AliBaseMCWeights.h.

Constructor & Destructor Documentation

AliBaseMCWeights::AliBaseMCWeights ( )
inline

Default CTOR

Definition at line 27 of file AliBaseMCWeights.h.

AliBaseMCWeights::AliBaseMCWeights ( const AliBaseMCWeights o)
inline

Copy Constructor

Parameters
oObject to copy from

Definition at line 33 of file AliBaseMCWeights.h.

virtual AliBaseMCWeights::~AliBaseMCWeights ( )
inlinevirtual

Destructor

Definition at line 45 of file AliBaseMCWeights.h.

Member Function Documentation

Double_t AliBaseMCWeights::CalcWeight ( const AliMCParticle *  p,
Bool_t  isPrimary,
Double_t  phiR,
Double_t  b 
) const
virtual

Calculate the weight of a given particle. In the default implementation, this forwards to the same function but with explicit eta, pt, phi, and id arguments.

However, this is the function that is called by the referencing code, so one can safely overload this and make the other a dummy

Parameters
pParticle
isPrimaryTrue if this refers to a primary particle
phiREvent plane angle \(\Psi_R\)
bEvent impact parameter \(b\) in fermi-meter
Returns
The particle weight

Definition at line 42 of file AliBaseMCWeights.cxx.

Referenced by AliBaseMCTrackDensity::CalculateTruthWeight(), AliBaseMCTrackDensity::CalculateWeight(), and ~AliBaseMCWeights().

virtual Double_t AliBaseMCWeights::CalcWeight ( Double_t  eta,
Double_t  pt,
Double_t  phi,
Int_t  id,
Double_t  phiR,
Double_t  b 
) const
pure virtual

Calculate the weight of a single particle

Parameters
etaPseudo rapidity \(\eta\)
ptTransvers momentum \(p_{T}\)
phiAzimuth angle \(\varphi\)
idParticle ID (PDG code)
phiREvent plane angle \(\Psi_R\)
bEvent impact parameter \(b\) in fermi-meter
Returns
Particle weight

Implemented in AliForwardFlowWeights, AliPtEtaPidWeights, and AliSimplePidWeights.

void AliBaseMCWeights::Init ( TList l)
virtual

Initialize this object

Parameters
lOutput list

Reimplemented in AliPtEtaPidWeights, AliSimplePidWeights, and AliForwardFlowWeights.

Definition at line 26 of file AliBaseMCWeights.cxx.

Referenced by AliBaseMCTrackDensity::CreateOutputObjects(), and ~AliBaseMCWeights().

AliBaseMCWeights & AliBaseMCWeights::operator= ( const AliBaseMCWeights o)

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this.

Definition at line 16 of file AliBaseMCWeights.cxx.

Referenced by AliBaseMCWeights(), AliSimplePidWeights::operator=(), and AliPtEtaPidWeights::operator=().

void AliBaseMCWeights::Print ( Option_t option = "") const
virtual

Print information to standard out

Parameters
optionNot used

Reimplemented in AliForwardFlowWeights, AliPtEtaPidWeights, and AliSimplePidWeights.

Definition at line 35 of file AliBaseMCWeights.cxx.

Referenced by AliBaseMCTrackDensity::Print(), and ~AliBaseMCWeights().


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