EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/offline/packages/trackbase/TrkrHitSetv1.h>
Public Member Functions | |
TrkrHitSetv1 ()=default | |
~TrkrHitSetv1 () override | |
void | identify (std::ostream &os=std::cout) const override |
TObject functions. | |
void | Reset () override |
Clear Event. | |
void | setHitSetKey (const TrkrDefs::hitsetkey key) override |
Set the key for this object. | |
TrkrDefs::hitsetkey | getHitSetKey () const override |
Get the key for this object. | |
ConstIterator | addHitSpecificKey (const TrkrDefs::hitkey, TrkrHit *) override |
Add a hit to this container using a specific key. | |
void | removeHit (TrkrDefs::hitkey) override |
Remove a hit using its key. | |
TrkrHit * | getHit (const TrkrDefs::hitkey) const override |
Get a specific hit based on its index. | |
ConstRange | getHits () const override |
Get all hits. | |
unsigned int | size () const override |
Get the number of hits stored. | |
Private Member Functions | |
ClassDefOverride (TrkrHitSetv1, 1) | |
Private Attributes | |
TrkrDefs::hitsetkey | m_hitSetKey = TrkrDefs::HITSETKEYMAX |
unique key for this object | |
Map | m_hits |
storage for TrkrHit objects | |
Additional Inherited Members | |
Public Types inherited from TrkrHitSet | |
using | Map = std::map< TrkrDefs::hitkey, TrkrHit * > |
using | ConstIterator = Map::const_iterator |
using | ConstRange = std::pair< ConstIterator, ConstIterator > |
Protected Member Functions inherited from TrkrHitSet | |
TrkrHitSet ()=default | |
ctor, not to be called | |
Definition at line 20 of file TrkrHitSetv1.h.
View newest version in sPHENIX GitHub at line 20 of file TrkrHitSetv1.h
|
default |
|
inlineoverride |
Definition at line 25 of file TrkrHitSetv1.h.
View newest version in sPHENIX GitHub at line 25 of file TrkrHitSetv1.h
References Reset().
|
overridevirtual |
Add a hit to this container using a specific key.
[in] | key | Hit key |
[in] | hit | Hit to be added. |
NOTE: This TrkrHitSet takes ownership of the passed TrkrHit pointer and will delete it in the Reset() method.
Reimplemented from TrkrHitSet.
Definition at line 58 of file TrkrHitSetv1.cc.
View newest version in sPHENIX GitHub at line 58 of file TrkrHitSetv1.cc
References exit(), and m_hits.
|
private |
|
overridevirtual |
Get a specific hit based on its index.
key | of the desired hit | |
[out] | Pointer | to the desired hit. nullptr if no hit. |
Get a desired hit based on its key.
Reimplemented from TrkrHitSet.
Definition at line 71 of file TrkrHitSetv1.cc.
View newest version in sPHENIX GitHub at line 71 of file TrkrHitSetv1.cc
|
overridevirtual |
Get all hits.
[out] | Pair | of iterator to vector begin and end |
Reimplemented from TrkrHitSet.
Definition at line 80 of file TrkrHitSetv1.cc.
View newest version in sPHENIX GitHub at line 80 of file TrkrHitSetv1.cc
References m_hits.
|
inlineoverridevirtual |
Get the key for this object.
[out] | object | key |
Reimplemented from TrkrHitSet.
Definition at line 39 of file TrkrHitSetv1.h.
View newest version in sPHENIX GitHub at line 39 of file TrkrHitSetv1.h
References m_hitSetKey.
Referenced by identify().
|
overridevirtual |
TObject functions.
Reimplemented from TrkrHitSet.
Definition at line 24 of file TrkrHitSetv1.cc.
View newest version in sPHENIX GitHub at line 24 of file TrkrHitSetv1.cc
References getHitSetKey(), TrkrDefs::getLayer(), TrkrDefs::getTrkrId(), G4TTL::layer, m_hits, and m_hitSetKey.
Referenced by removeHit().
|
overridevirtual |
Remove a hit using its key.
[in] | key | to be removed |
Reimplemented from TrkrHitSet.
Definition at line 43 of file TrkrHitSetv1.cc.
View newest version in sPHENIX GitHub at line 43 of file TrkrHitSetv1.cc
References exit(), identify(), it, and m_hits.
|
overridevirtual |
Clear Event.
Reimplemented from TrkrHitSet.
Definition at line 14 of file TrkrHitSetv1.cc.
View newest version in sPHENIX GitHub at line 14 of file TrkrHitSetv1.cc
References m_hits, and m_hitSetKey.
Referenced by ~TrkrHitSetv1().
|
inlineoverridevirtual |
Set the key for this object.
key |
Reimplemented from TrkrHitSet.
Definition at line 34 of file TrkrHitSetv1.h.
View newest version in sPHENIX GitHub at line 34 of file TrkrHitSetv1.h
References m_hitSetKey.
|
inlineoverridevirtual |
Get the number of hits stored.
[out] | number | of hits |
Reimplemented from TrkrHitSet.
Definition at line 52 of file TrkrHitSetv1.h.
View newest version in sPHENIX GitHub at line 52 of file TrkrHitSetv1.h
References m_hits.
|
private |
storage for TrkrHit objects
Definition at line 62 of file TrkrHitSetv1.h.
View newest version in sPHENIX GitHub at line 62 of file TrkrHitSetv1.h
Referenced by addHitSpecificKey(), getHit(), getHits(), identify(), removeHit(), Reset(), and size().
|
private |
unique key for this object
Definition at line 59 of file TrkrHitSetv1.h.
View newest version in sPHENIX GitHub at line 59 of file TrkrHitSetv1.h
Referenced by getHitSetKey(), identify(), Reset(), and setHitSetKey().