EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Cluster container object. More...
#include <fun4all_coresoftware/blob/master/offline/packages/trackbase/TrkrClusterContainerv1.h>
Public Types | |
typedef std::map < TrkrDefs::cluskey, TrkrCluster * > | Map |
typedef Map::iterator | Iterator |
typedef Map::const_iterator | ConstIterator |
typedef std::pair< Iterator, Iterator > | Range |
typedef std::pair < ConstIterator, ConstIterator > | ConstRange |
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 > |
Public Member Functions | |
TrkrClusterContainerv1 ()=default | |
void | Reset () override |
reset method | |
void | identify (std::ostream &os=std::cout) const override |
identify object | |
ConstIterator | addCluster (TrkrCluster *newClus) override |
add a cluster | |
ConstIterator | addClusterSpecifyKey (const TrkrDefs::cluskey key, TrkrCluster *newClus) override |
add a cluster with specific key | |
void | removeCluster (TrkrDefs::cluskey) override |
remove cluster | |
void | removeCluster (TrkrCluster *) override |
remove cluster | |
Iterator | findOrAddCluster (TrkrDefs::cluskey key) override |
find cluster matching key if any, add a new one otherwise and return cluster | |
ConstRange | getClusters () const override |
return all clusters | |
TrkrCluster * | findCluster (TrkrDefs::cluskey key) const override |
find cluster matching given key | |
unsigned int | size () const override |
total number of clusters | |
Public Member Functions inherited from TrkrClusterContainer | |
virtual ConstRange | getClusters (TrkrDefs::hitsetkey) const |
get all clusters matching hitset | |
virtual Map * | getClusterMap (TrkrDefs::hitsetkey) |
get pointer to map containing clusters mathching hitset | |
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 Attributes | |
Map | m_clusmap |
Additional Inherited Members | |
Protected Member Functions inherited from TrkrClusterContainer | |
TrkrClusterContainer ()=default | |
constructor | |
Cluster container object.
Container for TrkrCluster objects
Definition at line 26 of file TrkrClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 26 of file TrkrClusterContainerv1.h
typedef Map::const_iterator TrkrClusterContainerv1::ConstIterator |
Definition at line 31 of file TrkrClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 31 of file TrkrClusterContainerv1.h
typedef std::pair<ConstIterator, ConstIterator> TrkrClusterContainerv1::ConstRange |
Definition at line 33 of file TrkrClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 33 of file TrkrClusterContainerv1.h
typedef Map::iterator TrkrClusterContainerv1::Iterator |
Definition at line 30 of file TrkrClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 30 of file TrkrClusterContainerv1.h
typedef std::map<TrkrDefs::cluskey, TrkrCluster *> TrkrClusterContainerv1::Map |
Definition at line 29 of file TrkrClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 29 of file TrkrClusterContainerv1.h
typedef std::pair<Iterator, Iterator> TrkrClusterContainerv1::Range |
Definition at line 32 of file TrkrClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 32 of file TrkrClusterContainerv1.h
|
default |
|
overridevirtual |
add a cluster
Reimplemented from TrkrClusterContainer.
Definition at line 39 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 39 of file TrkrClusterContainerv1.cc
References addClusterSpecifyKey(), and TrkrCluster::getClusKey().
|
overridevirtual |
add a cluster with specific key
Reimplemented from TrkrClusterContainer.
Definition at line 45 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 45 of file TrkrClusterContainerv1.cc
References exit(), and m_clusmap.
Referenced by addCluster().
|
overridevirtual |
find cluster matching given key
Reimplemented from TrkrClusterContainer.
Definition at line 83 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 83 of file TrkrClusterContainerv1.cc
|
overridevirtual |
find cluster matching key if any, add a new one otherwise and return cluster
Reimplemented from TrkrClusterContainer.
Definition at line 66 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 66 of file TrkrClusterContainerv1.cc
|
overridevirtual |
return all clusters
Reimplemented from TrkrClusterContainer.
Definition at line 79 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 79 of file TrkrClusterContainerv1.cc
References m_clusmap.
|
overridevirtual |
identify object
Reimplemented from TrkrClusterContainer.
Definition at line 23 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 23 of file TrkrClusterContainerv1.cc
References TrkrDefs::getLayer(), G4TTL::layer, m_clusmap, and size().
|
overridevirtual |
remove cluster
Reimplemented from TrkrClusterContainer.
Definition at line 59 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 59 of file TrkrClusterContainerv1.cc
References m_clusmap.
Referenced by removeCluster().
|
overridevirtual |
remove cluster
Reimplemented from TrkrClusterContainer.
Definition at line 62 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 62 of file TrkrClusterContainerv1.cc
References TrkrCluster::getClusKey(), and removeCluster().
|
overridevirtual |
reset method
Reimplemented from TrkrClusterContainer.
Definition at line 13 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 13 of file TrkrClusterContainerv1.cc
References m_clusmap.
|
overridevirtual |
total number of clusters
Reimplemented from TrkrClusterContainer.
Definition at line 89 of file TrkrClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 89 of file TrkrClusterContainerv1.cc
References m_clusmap.
Referenced by identify().
|
private |
Definition at line 58 of file TrkrClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 58 of file TrkrClusterContainerv1.h
Referenced by addClusterSpecifyKey(), findCluster(), findOrAddCluster(), getClusters(), identify(), removeCluster(), Reset(), and size().