ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrClusterContainerv1 Class Reference

Cluster container object. More...

#include <coresoftware/blob/master/offline/packages/trackbase/TrkrClusterContainerv1.h>

+ Inheritance diagram for TrkrClusterContainerv1:
+ Collaboration diagram for TrkrClusterContainerv1:

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
 
TrkrClusterfindCluster (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 MapgetClusterMap (TrkrDefs::hitsetkey)
 get pointer to map containing clusters mathching hitset
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (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
 

Detailed Description

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

Member Typedef Documentation

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

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

Definition at line 29 of file TrkrClusterContainerv1.h.

View newest version in sPHENIX GitHub at line 29 of file TrkrClusterContainerv1.h

Definition at line 32 of file TrkrClusterContainerv1.h.

View newest version in sPHENIX GitHub at line 32 of file TrkrClusterContainerv1.h

Constructor & Destructor Documentation

TrkrClusterContainerv1::TrkrClusterContainerv1 ( )
default

Member Function Documentation

TrkrClusterContainerv1::ConstIterator TrkrClusterContainerv1::addCluster ( TrkrCluster )
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().

+ Here is the call graph for this function:

TrkrClusterContainerv1::ConstIterator TrkrClusterContainerv1::addClusterSpecifyKey ( const TrkrDefs::cluskey  ,
TrkrCluster  
)
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 g4zmq::exit(), and m_clusmap.

Referenced by addCluster().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrCluster * TrkrClusterContainerv1::findCluster ( TrkrDefs::cluskey  ) const
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

References it, and m_clusmap.

TrkrClusterContainerv1::Iterator TrkrClusterContainerv1::findOrAddCluster ( TrkrDefs::cluskey  )
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

References it, and m_clusmap.

TrkrClusterContainer::ConstRange TrkrClusterContainerv1::getClusters ( void  ) const
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.

void TrkrClusterContainerv1::identify ( std::ostream &  = std::cout) const
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().

+ Here is the call graph for this function:

void TrkrClusterContainerv1::removeCluster ( TrkrDefs::cluskey  )
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().

+ Here is the caller graph for this function:

void TrkrClusterContainerv1::removeCluster ( TrkrCluster )
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().

+ Here is the call graph for this function:

void TrkrClusterContainerv1::Reset ( )
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.

unsigned int TrkrClusterContainerv1::size ( void  ) const
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().

+ Here is the caller graph for this function:

Member Data Documentation

Map TrkrClusterContainerv1::m_clusmap
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().


The documentation for this class was generated from the following files: