AliPhysics  58ae0ed (58ae0ed)
 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 ( )


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.

trackparticle to be added

Definition at line 41 of file AliParticleMap.cxx.

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

int HighPtTracks::AliParticleMap::GetNumberOfParticles ( ) const

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

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.

labelLabel of the particle
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

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: