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

Cluster container object. More...

#include <fun4all_coresoftware/blob/master/offline/packages/trackbase/TrkrClusterContainerv2.h>

+ Inheritance diagram for TrkrClusterContainerv2:
+ Collaboration diagram for TrkrClusterContainerv2:

Public Member Functions

 TrkrClusterContainerv2 ()=default
 
void Reset () override
 reset method
 
void identify (std::ostream &os=std::cout) const override
 identify object
 
ConstIterator addCluster (TrkrCluster *) override
 add a cluster
 
ConstIterator addClusterSpecifyKey (const TrkrDefs::cluskey, TrkrCluster *) override
 add a cluster with specific key
 
void removeCluster (TrkrDefs::cluskey) override
 remove cluster
 
void removeCluster (TrkrCluster *) override
 remove cluster
 
Iterator findOrAddCluster (TrkrDefs::cluskey) override
 find cluster matching key if any, add a new one otherwise and return cluster
 
ConstRange getClusters (TrkrDefs::hitsetkey) const override
 get all clusters matching hitset
 
MapgetClusterMap (TrkrDefs::hitsetkey) override
 get pointer to map containing clusters mathching hitset
 
TrkrClusterfindCluster (TrkrDefs::cluskey) 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 () const
 return all clusters
 
- 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

unsigned int max_layer = 57
 
unsigned int max_phisegment = 20
 
unsigned int max_zsegment = 15
 
Map m_clusmap [57][20][15]
 

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 >
 
- Protected Member Functions inherited from TrkrClusterContainer
 TrkrClusterContainer ()=default
 constructor
 

Detailed Description

Cluster container object.

Definition at line 20 of file TrkrClusterContainerv2.h.

View newest version in sPHENIX GitHub at line 20 of file TrkrClusterContainerv2.h

Constructor & Destructor Documentation

TrkrClusterContainerv2::TrkrClusterContainerv2 ( )
default

Member Function Documentation

TrkrClusterContainerv2::ConstIterator TrkrClusterContainerv2::addCluster ( TrkrCluster )
overridevirtual

add a cluster

Reimplemented from TrkrClusterContainer.

Definition at line 95 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 95 of file TrkrClusterContainerv2.cc

References addClusterSpecifyKey(), and TrkrCluster::getClusKey().

+ Here is the call graph for this function:

TrkrClusterContainerv2::ConstIterator TrkrClusterContainerv2::addClusterSpecifyKey ( const TrkrDefs::cluskey  ,
TrkrCluster  
)
overridevirtual

add a cluster with specific key

Reimplemented from TrkrClusterContainer.

Definition at line 100 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 100 of file TrkrClusterContainerv2.cc

References exit(), TrkrDefs::getLayer(), TrkrDefs::getPhiElement(), TrkrDefs::getZElement(), G4TTL::layer, m_clusmap, max_layer, max_phisegment, and max_zsegment.

Referenced by addCluster().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrCluster * TrkrClusterContainerv2::findCluster ( TrkrDefs::cluskey  ) const
overridevirtual

find cluster matching given key

Reimplemented from TrkrClusterContainer.

Definition at line 216 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 216 of file TrkrClusterContainerv2.cc

References TrkrDefs::getLayer(), TrkrDefs::getPhiElement(), TrkrDefs::getZElement(), it, G4TTL::layer, m_clusmap, max_layer, max_phisegment, and max_zsegment.

+ Here is the call graph for this function:

TrkrClusterContainerv2::Iterator TrkrClusterContainerv2::findOrAddCluster ( TrkrDefs::cluskey  )
overridevirtual

find cluster matching key if any, add a new one otherwise and return cluster

Reimplemented from TrkrClusterContainer.

Definition at line 185 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 185 of file TrkrClusterContainerv2.cc

References TrkrDefs::getLayer(), TrkrDefs::getPhiElement(), TrkrDefs::getZElement(), it, G4TTL::layer, m_clusmap, max_layer, max_phisegment, and max_zsegment.

+ Here is the call graph for this function:

TrkrClusterContainerv2::Map * TrkrClusterContainerv2::getClusterMap ( TrkrDefs::hitsetkey  )
overridevirtual

get pointer to map containing clusters mathching hitset

Reimplemented from TrkrClusterContainer.

Definition at line 161 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 161 of file TrkrClusterContainerv2.cc

References TrkrDefs::getLayer(), TrkrDefs::getPhiElement(), TrkrDefs::getZElement(), G4TTL::layer, m_clusmap, max_layer, max_phisegment, and max_zsegment.

+ Here is the call graph for this function:

TrkrClusterContainerv2::ConstRange TrkrClusterContainerv2::getClusters ( TrkrDefs::hitsetkey  ) const
overridevirtual

get all clusters matching hitset

Reimplemented from TrkrClusterContainer.

Definition at line 137 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 137 of file TrkrClusterContainerv2.cc

References TrkrDefs::getLayer(), TrkrDefs::getPhiElement(), TrkrDefs::getZElement(), G4TTL::layer, m_clusmap, max_layer, max_phisegment, and max_zsegment.

+ Here is the call graph for this function:

void TrkrClusterContainerv2::identify ( std::ostream &  = std::cout) const
overridevirtual

identify object

Reimplemented from TrkrClusterContainer.

Definition at line 34 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 34 of file TrkrClusterContainerv2.cc

References TrkrDefs::getLayer(), TrkrDefs::getPhiElement(), TrkrDefs::getZElement(), G4TTL::layer, m_clusmap, max_layer, max_phisegment, max_zsegment, and size().

+ Here is the call graph for this function:

void TrkrClusterContainerv2::removeCluster ( TrkrDefs::cluskey  )
overridevirtual

remove cluster

Reimplemented from TrkrClusterContainer.

Definition at line 65 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 65 of file TrkrClusterContainerv2.cc

References TrkrDefs::getLayer(), TrkrDefs::getPhiElement(), TrkrDefs::getZElement(), G4TTL::layer, m_clusmap, max_layer, max_phisegment, and max_zsegment.

Referenced by removeCluster().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TrkrClusterContainerv2::removeCluster ( TrkrCluster )
overridevirtual

remove cluster

Reimplemented from TrkrClusterContainer.

Definition at line 90 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 90 of file TrkrClusterContainerv2.cc

References TrkrCluster::getClusKey(), and removeCluster().

+ Here is the call graph for this function:

void TrkrClusterContainerv2::Reset ( )
overridevirtual

reset method

Reimplemented from TrkrClusterContainer.

Definition at line 20 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 20 of file TrkrClusterContainerv2.cc

References G4TTL::layer, m_clusmap, max_layer, max_phisegment, and max_zsegment.

unsigned int TrkrClusterContainerv2::size ( void  ) const
overridevirtual

total number of clusters

Reimplemented from TrkrClusterContainer.

Definition at line 246 of file TrkrClusterContainerv2.cc.

View newest version in sPHENIX GitHub at line 246 of file TrkrClusterContainerv2.cc

References G4TTL::layer, m_clusmap, max_layer, max_phisegment, and max_zsegment.

Referenced by identify().

+ Here is the caller graph for this function:

Member Data Documentation

Map TrkrClusterContainerv2::m_clusmap[57][20][15]
private

Definition at line 56 of file TrkrClusterContainerv2.h.

View newest version in sPHENIX GitHub at line 56 of file TrkrClusterContainerv2.h

Referenced by addClusterSpecifyKey(), findCluster(), findOrAddCluster(), getClusterMap(), getClusters(), identify(), removeCluster(), Reset(), and size().

unsigned int TrkrClusterContainerv2::max_layer = 57
private

Definition at line 50 of file TrkrClusterContainerv2.h.

View newest version in sPHENIX GitHub at line 50 of file TrkrClusterContainerv2.h

Referenced by addClusterSpecifyKey(), findCluster(), findOrAddCluster(), getClusterMap(), getClusters(), identify(), removeCluster(), Reset(), and size().

unsigned int TrkrClusterContainerv2::max_phisegment = 20
private

Definition at line 52 of file TrkrClusterContainerv2.h.

View newest version in sPHENIX GitHub at line 52 of file TrkrClusterContainerv2.h

Referenced by addClusterSpecifyKey(), findCluster(), findOrAddCluster(), getClusterMap(), getClusters(), identify(), removeCluster(), Reset(), and size().

unsigned int TrkrClusterContainerv2::max_zsegment = 15
private

Definition at line 54 of file TrkrClusterContainerv2.h.

View newest version in sPHENIX GitHub at line 54 of file TrkrClusterContainerv2.h

Referenced by addClusterSpecifyKey(), findCluster(), findOrAddCluster(), getClusterMap(), getClusters(), identify(), removeCluster(), Reset(), and size().


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