AliPhysics  2e7186c (2e7186c)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 ClassDef (AliBaseMCWeights, 1)

Private Member Functions

 ClassDef (AliSimplePidWeights, 1)

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

oObject to copy from

Definition at line 24 of file AliSimplePidWeights.cxx.

virtual AliSimplePidWeights::~AliSimplePidWeights ( )


Definition at line 47 of file AliSimplePidWeights.h.

Member Function Documentation

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

Add a PDG code to be weighted

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

Definition at line 63 of file AliSimplePidWeights.cxx.

Referenced by AddTaskForwardMCCorr().

Double_t AliSimplePidWeights::CalcWeight ( Double_t  eta,
Double_t  pt,
Double_t  phi,
Int_t  id,
Double_t  phiR,
Double_t  b 
) const

Calculate the weight of a single particle

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
Particle weight

Implements AliBaseMCWeights.

Definition at line 48 of file AliSimplePidWeights.cxx.

AliSimplePidWeights::ClassDef ( AliSimplePidWeights  ,
void AliSimplePidWeights::Init ( TList l)

Initialize this object

lList of output objects

Reimplemented from AliBaseMCWeights.

Definition at line 44 of file AliSimplePidWeights.cxx.

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

Assignment operator

oObject to assign from
Reference to this.

Definition at line 33 of file AliSimplePidWeights.cxx.

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

Print information

optionNot used

Reimplemented from AliBaseMCWeights.

Definition at line 97 of file AliSimplePidWeights.cxx.

Member Data Documentation

TArrayI AliSimplePidWeights::fPdgs

Definition at line 87 of file AliSimplePidWeights.h.

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

TArrayD AliSimplePidWeights::fWeights

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: