ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
CM flash cluster container object. More...
#include <coresoftware/blob/master/offline/packages/trackbase/CMFlashClusterContainerv1.h>
Public Types | |
typedef std::map< unsigned int, CMFlashCluster * > | 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 CMFlashClusterContainer | |
using | Map = std::map< unsigned int, CMFlashCluster * > |
using | Iterator = Map::iterator |
using | ConstIterator = Map::const_iterator |
using | Range = std::pair< Iterator, Iterator > |
using | ConstRange = std::pair< ConstIterator, ConstIterator > |
Public Member Functions | |
CMFlashClusterContainerv1 ()=default | |
void | Reset () override |
reset method | |
void | identify (std::ostream &os=std::cout) const override |
identify object | |
ConstIterator | addCluster (CMFlashCluster *newClus) override |
add a cluster | |
ConstIterator | addClusterSpecifyKey (const unsigned int, CMFlashCluster *newClus) override |
add a cluster with specific key | |
void | removeCluster (unsigned int) override |
remove cluster | |
void | removeCluster (CMFlashCluster *) override |
remove cluster | |
Iterator | findOrAddCluster (unsigned int key) override |
find cluster matching key if any, add a new one otherwise and return cluster | |
ConstRange | getClusters () const override |
return all clusters | |
CMFlashCluster * | findCluster (unsigned int key) const override |
find cluster matching given key | |
unsigned int | size () const override |
total number of clusters | |
Private Attributes | |
Map | m_clusmap |
Additional Inherited Members | |
Protected Member Functions inherited from CMFlashClusterContainer | |
CMFlashClusterContainer ()=default | |
constructor | |
CM flash cluster container object.
Container for CMFlashCluster objects
Definition at line 25 of file CMFlashClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 25 of file CMFlashClusterContainerv1.h
typedef Map::const_iterator CMFlashClusterContainerv1::ConstIterator |
Definition at line 30 of file CMFlashClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 30 of file CMFlashClusterContainerv1.h
typedef std::pair<ConstIterator, ConstIterator> CMFlashClusterContainerv1::ConstRange |
Definition at line 32 of file CMFlashClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 32 of file CMFlashClusterContainerv1.h
typedef Map::iterator CMFlashClusterContainerv1::Iterator |
Definition at line 29 of file CMFlashClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 29 of file CMFlashClusterContainerv1.h
typedef std::map<unsigned int, CMFlashCluster *> CMFlashClusterContainerv1::Map |
Definition at line 28 of file CMFlashClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 28 of file CMFlashClusterContainerv1.h
typedef std::pair<Iterator, Iterator> CMFlashClusterContainerv1::Range |
Definition at line 31 of file CMFlashClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 31 of file CMFlashClusterContainerv1.h
|
default |
|
overridevirtual |
add a cluster
Implements CMFlashClusterContainer.
Definition at line 38 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 38 of file CMFlashClusterContainerv1.cc
References addClusterSpecifyKey(), and CMFlashCluster::getClusKey().
|
overridevirtual |
add a cluster with specific key
Implements CMFlashClusterContainer.
Definition at line 44 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 44 of file CMFlashClusterContainerv1.cc
References g4zmq::exit(), and m_clusmap.
Referenced by addCluster().
|
overridevirtual |
find cluster matching given key
Reimplemented from CMFlashClusterContainer.
Definition at line 82 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 82 of file CMFlashClusterContainerv1.cc
|
overridevirtual |
find cluster matching key if any, add a new one otherwise and return cluster
Implements CMFlashClusterContainer.
Definition at line 65 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 65 of file CMFlashClusterContainerv1.cc
|
overridevirtual |
return all clusters
Implements CMFlashClusterContainer.
Definition at line 78 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 78 of file CMFlashClusterContainerv1.cc
References m_clusmap.
|
overridevirtual |
identify object
Reimplemented from CMFlashClusterContainer.
Definition at line 23 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 23 of file CMFlashClusterContainerv1.cc
References m_clusmap, and size().
remove cluster
Reimplemented from CMFlashClusterContainer.
Definition at line 58 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 58 of file CMFlashClusterContainerv1.cc
References m_clusmap.
Referenced by removeCluster().
|
overridevirtual |
remove cluster
Reimplemented from CMFlashClusterContainer.
Definition at line 61 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 61 of file CMFlashClusterContainerv1.cc
References CMFlashCluster::getClusKey(), and removeCluster().
|
overridevirtual |
reset method
Reimplemented from CMFlashClusterContainer.
Definition at line 13 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 13 of file CMFlashClusterContainerv1.cc
References m_clusmap.
total number of clusters
Reimplemented from CMFlashClusterContainer.
Definition at line 88 of file CMFlashClusterContainerv1.cc.
View newest version in sPHENIX GitHub at line 88 of file CMFlashClusterContainerv1.cc
References m_clusmap.
Referenced by identify().
|
private |
Definition at line 57 of file CMFlashClusterContainerv1.h.
View newest version in sPHENIX GitHub at line 57 of file CMFlashClusterContainerv1.h
Referenced by addClusterSpecifyKey(), findCluster(), findOrAddCluster(), getClusters(), identify(), removeCluster(), Reset(), and size().