AliPhysics  c7b8e89 (c7b8e89)
AliSimplePidWeights Class Reference

#include <AliSimplePidWeights.h>

Inheritance diagram for AliSimplePidWeights:

Public Member Functions

 AliSimplePidWeights ()
 
 AliSimplePidWeights (const AliSimplePidWeights &o)
 
AliSimplePidWeightsoperator= (const AliSimplePidWeights &o)
 
virtual ~AliSimplePidWeights ()
 
virtual Double_t CalcWeight (Double_t eta, Double_t pt, Double_t phi, Int_t id, Double_t phiR, Double_t b) const
 
virtual void Init (TList *l)
 
virtual void AddPDGCode (Int_t pdg, Double_t weight, Bool_t anti=false)
 
virtual void Print (Option_t *option="") const
 
- Public Member Functions inherited from AliBaseMCWeights
 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
 

Private Attributes

TArrayI fPdgs
 
TArrayD fWeights
 

Detailed Description

Class for weights in calculation of the secondary maps using simple PID weighting.

Definition at line 23 of file AliSimplePidWeights.h.

Constructor & Destructor Documentation

AliSimplePidWeights::AliSimplePidWeights ( )

Default CTOR

Definition at line 17 of file AliSimplePidWeights.cxx.

AliSimplePidWeights::AliSimplePidWeights ( const AliSimplePidWeights o)

Copy Constructor

Parameters
oObject to copy from

Definition at line 24 of file AliSimplePidWeights.cxx.

virtual AliSimplePidWeights::~AliSimplePidWeights ( )
inlinevirtual

Destructor

Definition at line 47 of file AliSimplePidWeights.h.

Member Function Documentation

void AliSimplePidWeights::AddPDGCode ( Int_t  pdg,
Double_t  weight,
Bool_t  anti = false 
)
virtual

Add a PDG code to be weighted

Parameters
pdgParticle code
weightThe factor
antiIf true, also add for anti-particle

Definition at line 63 of file AliSimplePidWeights.cxx.

Referenced by AddTaskForwardMCCorr(), and ~AliSimplePidWeights().

Double_t AliSimplePidWeights::CalcWeight ( Double_t  eta,
Double_t  pt,
Double_t  phi,
Int_t  id,
Double_t  phiR,
Double_t  b 
) const
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

Implements AliBaseMCWeights.

Definition at line 48 of file AliSimplePidWeights.cxx.

Referenced by ~AliSimplePidWeights().

void AliSimplePidWeights::Init ( TList l)
virtual

Initialize this object

Parameters
lList of output objects

Reimplemented from AliBaseMCWeights.

Definition at line 44 of file AliSimplePidWeights.cxx.

Referenced by ~AliSimplePidWeights().

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

Assignment operator

Parameters
oObject to assign from
Returns
Reference to this.

Definition at line 33 of file AliSimplePidWeights.cxx.

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

Print information

Parameters
optionNot used

Reimplemented from AliBaseMCWeights.

Definition at line 97 of file AliSimplePidWeights.cxx.

Referenced by ~AliSimplePidWeights().

Member Data Documentation

TArrayI AliSimplePidWeights::fPdgs
private

Definition at line 87 of file AliSimplePidWeights.h.

Referenced by AddPDGCode(), CalcWeight(), operator=(), and Print().

TArrayD AliSimplePidWeights::fWeights
private

Definition at line 88 of file AliSimplePidWeights.h.

Referenced by AddPDGCode(), CalcWeight(), operator=(), and Print().


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