ATLAS Offline Software
Loading...
Searching...
No Matches
CaloTopoTmpHashClusterBase< T > Class Template Reference

#include <CaloTopoTmpHashClusterBase.h>

Collaboration diagram for CaloTopoTmpHashClusterBase< T >:

Classes

class  iterator

Public Types

typedef pointer_list::pool_type pool_type

Public Member Functions

 CaloTopoTmpHashClusterBase (pool_type &pool)
float getMaxRatio () const
int size () const
iterator begin ()
iterator end ()
void removeAll ()
void add (HashCell &hashCell)
void add (CaloTopoTmpHashClusterBase &hashCluster)

Protected Types

typedef CaloTopoTmpHashCell< T > HashCell
typedef CxxUtils::pointer_list pointer_list

Protected Attributes

pointer_list m_members
float m_maxRatio

Detailed Description

template<class T>
class CaloTopoTmpHashClusterBase< T >

Definition at line 28 of file CaloTopoTmpHashClusterBase.h.

Member Typedef Documentation

◆ HashCell

template<class T>
typedef CaloTopoTmpHashCell<T> CaloTopoTmpHashClusterBase< T >::HashCell
protected

Definition at line 31 of file CaloTopoTmpHashClusterBase.h.

◆ pointer_list

template<class T>
typedef CxxUtils::pointer_list CaloTopoTmpHashClusterBase< T >::pointer_list
protected

Definition at line 32 of file CaloTopoTmpHashClusterBase.h.

◆ pool_type

template<class T>
typedef pointer_list::pool_type CaloTopoTmpHashClusterBase< T >::pool_type

Definition at line 43 of file CaloTopoTmpHashClusterBase.h.

Constructor & Destructor Documentation

◆ CaloTopoTmpHashClusterBase()

Member Function Documentation

◆ add() [1/2]

template<class T>
void CaloTopoTmpHashClusterBase< T >::add ( CaloTopoTmpHashClusterBase< T > & hashCluster)

Definition at line 126 of file CaloTopoTmpHashClusterBase.h.

128{
131 while (beg != end) {
132 m_members.push_back (*beg);
133 ++beg;
134 }
137 }
138}
Forward iterator over the list.
iterator end()
Iterator at the end of the container.
iterator begin()
Iterator at the beginning of the container.

◆ add() [2/2]

template<class T>
void CaloTopoTmpHashClusterBase< T >::add ( HashCell & hashCell)

Definition at line 114 of file CaloTopoTmpHashClusterBase.h.

115{
116 T* cell = hashCell.getCaloTopoTmpClusterCell();
117 m_members.push_back (cell);
118
119 float ratio = cell->getSignedRatio();
120 if ( ratio > m_maxRatio ) {
122 }
123}

◆ begin()

template<class T>
iterator CaloTopoTmpHashClusterBase< T >::begin ( )
inline

Definition at line 90 of file CaloTopoTmpHashClusterBase.h.

◆ end()

template<class T>
iterator CaloTopoTmpHashClusterBase< T >::end ( )
inline

Definition at line 95 of file CaloTopoTmpHashClusterBase.h.

96 {
97 return iterator (m_members.end());
98 }

◆ getMaxRatio()

template<class T>
float CaloTopoTmpHashClusterBase< T >::getMaxRatio ( ) const
inline

Definition at line 80 of file CaloTopoTmpHashClusterBase.h.

81 {
82 return m_maxRatio;
83 }

◆ removeAll()

template<class T>
void CaloTopoTmpHashClusterBase< T >::removeAll ( )
inline

Definition at line 100 of file CaloTopoTmpHashClusterBase.h.

101 {
102 m_members.clear();
103 m_maxRatio=0;
104 }

◆ size()

template<class T>
int CaloTopoTmpHashClusterBase< T >::size ( ) const
inline

Definition at line 85 of file CaloTopoTmpHashClusterBase.h.

86 {
87 return m_members.size();
88 }

Member Data Documentation

◆ m_maxRatio

template<class T>
float CaloTopoTmpHashClusterBase< T >::m_maxRatio
protected

Definition at line 39 of file CaloTopoTmpHashClusterBase.h.

◆ m_members

template<class T>
pointer_list CaloTopoTmpHashClusterBase< T >::m_members
protected

Definition at line 38 of file CaloTopoTmpHashClusterBase.h.


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