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

CM flash cluster container object. More...

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

+ Inheritance diagram for CMFlashClusterContainerv1:
+ Collaboration diagram for CMFlashClusterContainerv1:

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
 
CMFlashClusterfindCluster (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
 

Detailed Description

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

Member Typedef Documentation

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

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

Definition at line 31 of file CMFlashClusterContainerv1.h.

View newest version in sPHENIX GitHub at line 31 of file CMFlashClusterContainerv1.h

Constructor & Destructor Documentation

CMFlashClusterContainerv1::CMFlashClusterContainerv1 ( )
default

Member Function Documentation

CMFlashClusterContainerv1::ConstIterator CMFlashClusterContainerv1::addCluster ( CMFlashCluster )
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().

+ Here is the call graph for this function:

CMFlashClusterContainerv1::ConstIterator CMFlashClusterContainerv1::addClusterSpecifyKey ( const unsigned  int,
CMFlashCluster  
)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CMFlashCluster * CMFlashClusterContainerv1::findCluster ( unsigned int  ) const
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

References it, and m_clusmap.

CMFlashClusterContainerv1::Iterator CMFlashClusterContainerv1::findOrAddCluster ( unsigned int  int)
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

References it, and m_clusmap.

CMFlashClusterContainer::ConstRange CMFlashClusterContainerv1::getClusters ( ) const
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.

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

+ Here is the call graph for this function:

void CMFlashClusterContainerv1::removeCluster ( unsigned int  )
overridevirtual

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().

+ Here is the caller graph for this function:

void CMFlashClusterContainerv1::removeCluster ( CMFlashCluster )
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().

+ Here is the call graph for this function:

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

unsigned int CMFlashClusterContainerv1::size ( void  ) const
overridevirtual

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().

+ Here is the caller graph for this function:

Member Data Documentation

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


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