Analysis Software
Documentation for sPHENIX simulation software
|
Cluster container object. More...
#include <coresoftware/blob/master/offline/packages/trackbase/TrkrClusterContainerv3.h>
Public Member Functions | |
TrkrClusterContainerv3 ()=default | |
void | Reset () override |
reset method | |
void | identify (std::ostream &os=std::cout) const override |
identify object | |
void | addClusterSpecifyKey (const TrkrDefs::cluskey, TrkrCluster *) override |
add a cluster with specific key | |
void | removeCluster (TrkrDefs::cluskey) override |
remove cluster | |
ConstRange | getClusters (TrkrDefs::hitsetkey) override |
get all clusters matching hitset | |
TrkrCluster * | findCluster (TrkrDefs::cluskey) const override |
find cluster matching given key | |
HitSetKeyList | getHitSetKeys () const override |
get hitset key list | |
HitSetKeyList | getHitSetKeys (const TrkrDefs::TrkrId) const override |
get hitset key list for a given detector | |
HitSetKeyList | getHitSetKeys (const TrkrDefs::TrkrId, const uint8_t) const override |
get hitset key list for a given detector and layer | |
unsigned int | size (void) const override |
total number of clusters | |
Public Member Functions inherited from TrkrClusterContainer | |
virtual ConstRange | getClusters () const |
return all clusters | |
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 Attributes | |
std::map< TrkrDefs::hitsetkey, Map > | m_clusmap |
Additional Inherited Members | |
Public Types inherited from TrkrClusterContainer | |
using | Map = std::map< TrkrDefs::cluskey, TrkrCluster * > |
using | Iterator = Map::iterator |
using | ConstIterator = Map::const_iterator |
using | Range = std::pair< Iterator, Iterator > |
using | ConstRange = std::pair< ConstIterator, ConstIterator > |
using | HitSetKeyList = std::vector< TrkrDefs::hitsetkey > |
Protected Member Functions inherited from TrkrClusterContainer | |
TrkrClusterContainer ()=default | |
constructor | |
Cluster container object.
Definition at line 20 of file TrkrClusterContainerv3.h.
View newest version in sPHENIX GitHub at line 20 of file TrkrClusterContainerv3.h
|
default |
|
overridevirtual |
add a cluster with specific key
Reimplemented from TrkrClusterContainer.
Definition at line 73 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 73 of file TrkrClusterContainerv3.cc
References TrkrDefs::getHitSetKeyFromClusKey(), and m_clusmap.
|
overridevirtual |
find cluster matching given key
Reimplemented from TrkrClusterContainer.
Definition at line 105 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 105 of file TrkrClusterContainerv3.cc
References TrkrDefs::getHitSetKeyFromClusKey(), and m_clusmap.
Referenced by removeCluster().
|
overridevirtual |
get all clusters matching hitset
Reimplemented from TrkrClusterContainer.
Definition at line 90 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 90 of file TrkrClusterContainerv3.cc
References m_clusmap.
|
overridevirtual |
get hitset key list
Reimplemented from TrkrClusterContainer.
Definition at line 130 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 130 of file TrkrClusterContainerv3.cc
References m_clusmap, out, and Acts::Test::transform.
|
overridevirtual |
get hitset key list for a given detector
Reimplemented from TrkrClusterContainer.
Definition at line 142 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 142 of file TrkrClusterContainerv3.cc
References parse_cmake_options::begin, end, TrkrDefs::getHitSetKeyHi(), TrkrDefs::getHitSetKeyLo(), m_clusmap, out, and Acts::Test::transform.
|
overridevirtual |
get hitset key list for a given detector and layer
Reimplemented from TrkrClusterContainer.
Definition at line 163 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 163 of file TrkrClusterContainerv3.cc
References parse_cmake_options::begin, end, TrkrDefs::getHitSetKeyHi(), TrkrDefs::getHitSetKeyLo(), m_clusmap, out, and Acts::Test::transform.
|
overridevirtual |
identify object
Reimplemented from TrkrClusterContainer.
Definition at line 37 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 37 of file TrkrClusterContainerv3.cc
References TrkrDefs::getLayer(), layer, m_clusmap, and size().
|
overridevirtual |
remove cluster
Reimplemented from TrkrClusterContainer.
Definition at line 57 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 57 of file TrkrClusterContainerv3.cc
References findCluster(), TrkrDefs::getHitSetKeyFromClusKey(), and m_clusmap.
|
overridevirtual |
reset method
Reimplemented from TrkrClusterContainer.
Definition at line 19 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 19 of file TrkrClusterContainerv3.cc
References m_clusmap.
|
overridevirtual |
total number of clusters
Reimplemented from TrkrClusterContainer.
Definition at line 184 of file TrkrClusterContainerv3.cc.
View newest version in sPHENIX GitHub at line 184 of file TrkrClusterContainerv3.cc
References m_clusmap.
Referenced by identify().
|
private |
Definition at line 46 of file TrkrClusterContainerv3.h.
View newest version in sPHENIX GitHub at line 46 of file TrkrClusterContainerv3.h
Referenced by addClusterSpecifyKey(), findCluster(), getClusters(), getHitSetKeys(), identify(), removeCluster(), Reset(), and size().