Analysis Software
Documentation for sPHENIX simulation software
|
Association object for PHG4Cells contributiong to TrkrHits. More...
#include <coresoftware/blob/master/offline/packages/trackbase/TrkrHitTruthAssocv1.h>
Public Member Functions | |
TrkrHitTruthAssocv1 ()=default | |
void | Reset () override |
Clear Event. | |
void | identify (std::ostream &os=std::cout) const override |
void | addAssoc (const TrkrDefs::hitsetkey, const TrkrDefs::hitkey, const PHG4HitDefs::keytype) override |
Add an association between hit and cell. | |
void | findOrAddAssoc (const TrkrDefs::hitsetkey, const TrkrDefs::hitkey, const PHG4HitDefs::keytype) override |
Add an association between hit and cell if it does not already exist. | |
void | removeAssoc (const TrkrDefs::hitsetkey, const TrkrDefs::hitkey) override |
void | getG4Hits (const TrkrDefs::hitsetkey hitsetkey, const unsigned int hidx, MMap &temp_map) const override |
Public Member Functions inherited from TrkrHitTruthAssoc | |
virtual void | getG4Hits (const TrkrDefs::hitsetkey, const unsigned int, MMap &) const |
Get cell keys associated with desired hit. | |
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) |
Private Member Functions | |
ClassDefOverride (TrkrHitTruthAssocv1, 1) | |
Private Attributes | |
MMap | m_map |
Additional Inherited Members | |
Public Types inherited from TrkrHitTruthAssoc | |
using | MMap = std::multimap< TrkrDefs::hitsetkey, std::pair< TrkrDefs::hitkey, PHG4HitDefs::keytype > > |
typedefs for convenience | |
using | Iterator = MMap::iterator |
using | ConstIterator = MMap::const_iterator |
using | Range = std::pair< Iterator, Iterator > |
using | ConstRange = std::pair< ConstIterator, ConstIterator > |
Protected Member Functions inherited from TrkrHitTruthAssoc | |
TrkrHitTruthAssoc ()=default | |
ctor | |
Association object for PHG4Cells contributiong to TrkrHits.
Association object holding a multimap of PHG4Cells associated with a given TrkrHit
Definition at line 23 of file TrkrHitTruthAssocv1.h.
View newest version in sPHENIX GitHub at line 23 of file TrkrHitTruthAssocv1.h
|
default |
|
overridevirtual |
Add an association between hit and cell.
[in] | hset | TrkrHitSet key |
[in] | hidx | TrkrHit index in TrkrHitSet |
[in] | ckey | Key for assocuated g4hit |
Reimplemented from TrkrHitTruthAssoc.
Definition at line 41 of file TrkrHitTruthAssocv1.cc.
View newest version in sPHENIX GitHub at line 41 of file TrkrHitTruthAssocv1.cc
References m_map.
|
private |
|
overridevirtual |
Add an association between hit and cell if it does not already exist.
[in] | hset | TrkrHitSet key |
[in] | hidx | TrkrHit index in TrkrHitSet |
[in] | ckey | Key for assocuated g4hit |
Reimplemented from TrkrHitTruthAssoc.
Definition at line 48 of file TrkrHitTruthAssocv1.cc.
View newest version in sPHENIX GitHub at line 48 of file TrkrHitTruthAssocv1.cc
References m_map.
|
override |
Definition at line 84 of file TrkrHitTruthAssocv1.cc.
View newest version in sPHENIX GitHub at line 84 of file TrkrHitTruthAssocv1.cc
References m_map.
|
overridevirtual |
identify Function from PHObject
os | Output Stream |
Reimplemented from TrkrHitTruthAssoc.
Definition at line 21 of file TrkrHitTruthAssocv1.cc.
View newest version in sPHENIX GitHub at line 21 of file TrkrHitTruthAssocv1.cc
References entry, TrkrDefs::getLayer(), layer, and m_map.
|
overridevirtual |
Reimplemented from TrkrHitTruthAssoc.
Definition at line 66 of file TrkrHitTruthAssocv1.cc.
View newest version in sPHENIX GitHub at line 66 of file TrkrHitTruthAssocv1.cc
References m_map.
|
overridevirtual |
Clear Event.
Reimplemented from TrkrHitTruthAssoc.
Definition at line 17 of file TrkrHitTruthAssocv1.cc.
View newest version in sPHENIX GitHub at line 17 of file TrkrHitTruthAssocv1.cc
References m_map.
|
private |
Definition at line 44 of file TrkrHitTruthAssocv1.h.
View newest version in sPHENIX GitHub at line 44 of file TrkrHitTruthAssocv1.h
Referenced by addAssoc(), findOrAddAssoc(), getG4Hits(), identify(), removeAssoc(), and Reset().