ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Class for associating clusters to the hits that went into them. More...
#include <coresoftware/blob/master/offline/packages/trackbase/TrkrClusterHitAssocv1.h>
Public Member Functions | |
TrkrClusterHitAssocv1 ()=default | |
ctor | |
void | Reset () override |
Clear Event. | |
void | identify (std::ostream &os=std::cout) const override |
void | addAssoc (TrkrDefs::cluskey ckey, unsigned int hidx) override |
Add association between cluster and hit. | |
ConstRange | getHits (TrkrDefs::cluskey) override |
Get all the hits associated with a cluster by key. | |
Public Member Functions inherited from TrkrClusterHitAssoc | |
virtual Map * | getClusterMap (TrkrDefs::hitsetkey) |
get pointer to cluster-to-hit map corresponding to a given hitset id | |
virtual unsigned int | size () const |
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 | isValid (const float) const |
virtual int | isValid (const double) const |
virtual int | isValid (const int) const |
virtual int | isValid (const unsigned int) const |
virtual int | isImplemented (const float f) const |
virtual int | isImplemented (const double f) const |
virtual int | isImplemented (const int i) const |
virtual int | isImplemented (const unsigned int i) const |
virtual int | Integrate () const |
virtual int | Integrate (PHObject *) |
virtual void | CopyFrom (const PHObject *obj) |
Private Member Functions | |
ClassDefOverride (TrkrClusterHitAssocv1, 1) | |
Private Attributes | |
Map | m_map |
Additional Inherited Members | |
Public Types inherited from TrkrClusterHitAssoc | |
using | Map = std::multimap< TrkrDefs::cluskey, TrkrDefs::hitkey > |
using | ConstIterator = Map::const_iterator |
using | ConstRange = std::pair< Map::const_iterator, Map::const_iterator > |
Protected Member Functions inherited from TrkrClusterHitAssoc | |
TrkrClusterHitAssoc ()=default | |
Class for associating clusters to the hits that went into them.
Store the associations between clusters and the hits that went into them.
Definition at line 24 of file TrkrClusterHitAssocv1.h.
View newest version in sPHENIX GitHub at line 24 of file TrkrClusterHitAssocv1.h
|
default |
ctor
|
overridevirtual |
Add association between cluster and hit.
[in] | ckey | Cluster key |
[in] | hidx | Index of the hit in TrkrHitSet |
Implements TrkrClusterHitAssoc.
Definition at line 38 of file TrkrClusterHitAssocv1.cc.
View newest version in sPHENIX GitHub at line 38 of file TrkrClusterHitAssocv1.cc
References m_map.
|
private |
|
overridevirtual |
Get all the hits associated with a cluster by key.
[in] | ckey | Cluster key |
[out] | Range | over hits associated with ckey |
Implements TrkrClusterHitAssoc.
Definition at line 44 of file TrkrClusterHitAssocv1.cc.
View newest version in sPHENIX GitHub at line 44 of file TrkrClusterHitAssocv1.cc
References m_map.
|
overridevirtual |
identify Function from PHObject
os | Output Stream |
Reimplemented from PHObject.
Definition at line 19 of file TrkrClusterHitAssocv1.cc.
View newest version in sPHENIX GitHub at line 19 of file TrkrClusterHitAssocv1.cc
References m_map.
|
overridevirtual |
Clear Event.
Reimplemented from TrkrClusterHitAssoc.
Definition at line 13 of file TrkrClusterHitAssocv1.cc.
View newest version in sPHENIX GitHub at line 13 of file TrkrClusterHitAssocv1.cc
References m_map.
|
private |
Definition at line 51 of file TrkrClusterHitAssocv1.h.
View newest version in sPHENIX GitHub at line 51 of file TrkrClusterHitAssocv1.h
Referenced by addAssoc(), getHits(), identify(), and Reset().