Analysis Software
Documentation for sPHENIX simulation software
|
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 | 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 34 of file TrkrClusterHitAssocv1.cc.
View newest version in sPHENIX GitHub at line 34 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 40 of file TrkrClusterHitAssocv1.cc.
View newest version in sPHENIX GitHub at line 40 of file TrkrClusterHitAssocv1.cc
References m_map.
|
overridevirtual |
identify Function from PHObject
os | Output Stream |
Reimplemented from PHObject.
Definition at line 17 of file TrkrClusterHitAssocv1.cc.
View newest version in sPHENIX GitHub at line 17 of file TrkrClusterHitAssocv1.cc
|
overridevirtual |
Clear Event.
Reimplemented from TrkrClusterHitAssoc.
Definition at line 12 of file TrkrClusterHitAssocv1.cc.
View newest version in sPHENIX GitHub at line 12 of file TrkrClusterHitAssocv1.cc
References m_map.
|
private |
Definition at line 49 of file TrkrClusterHitAssocv1.h.
View newest version in sPHENIX GitHub at line 49 of file TrkrClusterHitAssocv1.h
Referenced by addAssoc(), getHits(), identify(), and Reset().