Analysis Software
Documentation for sPHENIX simulation software
|
Class for associating particle ID categories to tracks. More...
#include <analysis/blob/master/TrackPid/src/TrackPidAssoc.h>
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 PHObject * | CloneMe () const |
Virtual copy constructor. | |
virtual PHObject * | clone () const final |
PHObject * | Clone (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 |
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
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
typedef std::pair<ConstIterator, ConstIterator> TrackPidAssoc::ConstRange |
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
TrackPidAssoc::TrackPidAssoc | ( | ) |
ctor
Definition at line 12 of file TrackPidAssoc.cc.
View newest version in sPHENIX GitHub at line 12 of file TrackPidAssoc.cc
|
virtual |
dtor
Definition at line 18 of file TrackPidAssoc.cc.
View newest version in sPHENIX GitHub at line 18 of file TrackPidAssoc.cc
void TrackPidAssoc::addAssoc | ( | unsigned int | pid, |
unsigned int | trid | ||
) |
Add association between particle ID and track.
[in] | PID | index |
[in] | Index | of 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().
|
private |
TrackPidAssoc::ConstRange TrackPidAssoc::getTracks | ( | unsigned int | pid | ) |
Get all the tracks associated with PID index.
[in] | pid | particle id index |
[out] | Range | of 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().
|
virtual |
identify Function from PHObject
os | Output 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
|
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.
|
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().
|
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().
|
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().