Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackPidAssoc Class Reference

Class for associating particle ID categories to tracks. More...

#include <analysis/blob/master/TrackPid/src/TrackPidAssoc.h>

+ Inheritance diagram for TrackPidAssoc:
+ Collaboration diagram for TrackPidAssoc:

Public Types

typedef std::multimap
< unsigned int, unsigned int > 
MMap
 typedefs for convenience
 
typedef MMap::iterator Iterator
 
typedef MMap::const_iterator ConstIterator
 
typedef std::pair< Iterator,
Iterator
Range
 
typedef std::pair
< ConstIterator, ConstIterator
ConstRange
 

Public Member Functions

 TrackPidAssoc ()
 ctor
 
virtual ~TrackPidAssoc ()
 dtor
 
void Reset ()
 Clear Event.
 
void identify (std::ostream &os=std::cout) const
 
void addAssoc (unsigned int pid, unsigned int trid)
 Add association between particle ID and track.
 
ConstRange getTracks (unsigned int pid)
 Get all the tracks associated with PID index.
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Static Public Attributes

static const unsigned int electron = 1
 
static const unsigned int hadron = 2
 

Private Member Functions

 ClassDef (TrackPidAssoc, 1)
 

Private Attributes

MMap m_map
 

Detailed Description

Class for associating particle ID categories to tracks.

Store the associations between particle ID categories and tracks

Definition at line 21 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 21 of file TrackPidAssoc.h

Member Typedef Documentation

typedef MMap::const_iterator TrackPidAssoc::ConstIterator

Definition at line 27 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 27 of file TrackPidAssoc.h

Definition at line 29 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 29 of file TrackPidAssoc.h

typedef MMap::iterator TrackPidAssoc::Iterator

Definition at line 26 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 26 of file TrackPidAssoc.h

typedef std::multimap<unsigned int, unsigned int> TrackPidAssoc::MMap

typedefs for convenience

Definition at line 25 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 25 of file TrackPidAssoc.h

typedef std::pair<Iterator, Iterator> TrackPidAssoc::Range

Definition at line 28 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 28 of file TrackPidAssoc.h

Constructor & Destructor Documentation

TrackPidAssoc::TrackPidAssoc ( )

ctor

Definition at line 12 of file TrackPidAssoc.cc.

View newest version in sPHENIX GitHub at line 12 of file TrackPidAssoc.cc

TrackPidAssoc::~TrackPidAssoc ( )
virtual

dtor

Definition at line 18 of file TrackPidAssoc.cc.

View newest version in sPHENIX GitHub at line 18 of file TrackPidAssoc.cc

Member Function Documentation

void TrackPidAssoc::addAssoc ( unsigned int  pid,
unsigned int  trid 
)

Add association between particle ID and track.

Parameters
[in]PIDindex
[in]Indexof the track

Definition at line 48 of file TrackPidAssoc.cc.

View newest version in sPHENIX GitHub at line 48 of file TrackPidAssoc.cc

References m_map.

Referenced by ElectronID::process_event().

+ Here is the caller graph for this function:

TrackPidAssoc::ClassDef ( TrackPidAssoc  ,
 
)
private
TrackPidAssoc::ConstRange TrackPidAssoc::getTracks ( unsigned int  pid)

Get all the tracks associated with PID index.

Parameters
[in]pidparticle id index
[out]Rangeof tracks associated with pid

Definition at line 54 of file TrackPidAssoc.cc.

View newest version in sPHENIX GitHub at line 54 of file TrackPidAssoc.cc

References m_map.

Referenced by ElectronID::process_event(), and PairMaker::process_event_test().

+ Here is the caller graph for this function:

void TrackPidAssoc::identify ( std::ostream &  os = std::cout) const
virtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 29 of file TrackPidAssoc.cc.

View newest version in sPHENIX GitHub at line 29 of file TrackPidAssoc.cc

References entry, and m_map.

void TrackPidAssoc::Reset ( )
virtual

Clear Event.

Reimplemented from PHObject.

Definition at line 23 of file TrackPidAssoc.cc.

View newest version in sPHENIX GitHub at line 23 of file TrackPidAssoc.cc

References m_map.

Member Data Documentation

const unsigned int TrackPidAssoc::electron = 1
static

Definition at line 53 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 53 of file TrackPidAssoc.h

Referenced by ElectronID::process_event(), and PairMaker::process_event_test().

const unsigned int TrackPidAssoc::hadron = 2
static

Definition at line 54 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 54 of file TrackPidAssoc.h

Referenced by ElectronID::process_event().

MMap TrackPidAssoc::m_map
private

Definition at line 58 of file TrackPidAssoc.h.

View newest version in sPHENIX GitHub at line 58 of file TrackPidAssoc.h

Referenced by addAssoc(), getTracks(), identify(), and Reset().


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