AliPhysics  b752f14 (b752f14)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HighPtTracks::AliParticleMap Class Reference

Map of reconstructed particles which share the same Monte-Carlo label. More...

#include <AliParticleMap.h>

Public Member Functions

 AliParticleMap ()
 
 ~AliParticleMap ()
 
void AddParticle (AliVTrack *track)
 
AliParticleListGetParticles (int label) const
 
int GetNumberOfParticles () const
 
void Print () const
 

Private Attributes

std::map< int, AliParticleList * > fParticles
 connection of particles to labels More...
 

Detailed Description

Map of reconstructed particles which share the same Monte-Carlo label.

Class connecting all reconstructing particles sharing the same Monte-Carlo label. Used for a fast search of reconstructed tracks for given generated tracks.

Definition at line 170 of file AliParticleMap.h.

Constructor & Destructor Documentation

HighPtTracks::AliParticleMap::AliParticleMap ( )
inline

Constructor

Definition at line 175 of file AliParticleMap.h.

HighPtTracks::AliParticleMap::~AliParticleMap ( )

Destructor. Clean up all particle lists.

Definition at line 29 of file AliParticleMap.cxx.

Member Function Documentation

void HighPtTracks::AliParticleMap::AddParticle ( AliVTrack *  track)

Add particle to the list. In case the same label is already existing in the list, the particle is just added to the list, otherwise a new entry for the label is created.

Parameters
trackparticle to be added

Definition at line 41 of file AliParticleMap.cxx.

Referenced by HighPtTracks::AliHighPtReconstructionEfficiency::CreateRectrackLookup().

int HighPtTracks::AliParticleMap::GetNumberOfParticles ( ) const
inline

Get the number of true particles (according to stored labels)

Returns
Number of entries

Definition at line 188 of file AliParticleMap.h.

Referenced by HighPtTracks::AliHighPtReconstructionEfficiency::UserExec().

AliParticleList * HighPtTracks::AliParticleMap::GetParticles ( int  label) const

Get list of all reconstructed particles associated with a given Monte-Carlo Label.

Parameters
labelLabel of the particle
Returns
List of reconstructed particles (NULL if not found)

Definition at line 60 of file AliParticleMap.cxx.

Referenced by HighPtTracks::AliHighPtReconstructionEfficiency::FindReconstructedParticleFast().

void HighPtTracks::AliParticleMap::Print ( ) const

Print status of the particle map.

Definition at line 72 of file AliParticleMap.cxx.

Member Data Documentation

std::map<int, AliParticleList *> HighPtTracks::AliParticleMap::fParticles
private

connection of particles to labels

Definition at line 193 of file AliParticleMap.h.

Referenced by AddParticle(), GetNumberOfParticles(), GetParticles(), Print(), and ~AliParticleMap().


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