ATLAS Offline Software
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
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

Definition at line 43 of file CaloTopoTmpHashClusterBase.h.

Constructor & Destructor Documentation

◆ CaloTopoTmpHashClusterBase()

template<class T >
CaloTopoTmpHashClusterBase< T >::CaloTopoTmpHashClusterBase ( pool_type pool)
inline

Definition at line 72 of file CaloTopoTmpHashClusterBase.h.

73  : m_members (pool),
74  m_maxRatio (0)
75  {
76  }

Member Function Documentation

◆ add() [1/2]

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

Definition at line 128 of file CaloTopoTmpHashClusterBase.h.

130 {
131  pointer_list::iterator beg = hashCluster.m_members.begin();
132  pointer_list::iterator end = hashCluster.m_members.end();
133  while (beg != end) {
135  ++beg;
136  }
137  if ( hashCluster.m_maxRatio > m_maxRatio) {
138  m_maxRatio = hashCluster.m_maxRatio;
139  }
140 }

◆ add() [2/2]

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

Definition at line 116 of file CaloTopoTmpHashClusterBase.h.

117 {
118  T* cell = hashCell.getCaloTopoTmpClusterCell();
120 
121  float ratio = cell->getSignedRatio();
122  if ( ratio > m_maxRatio ) {
123  m_maxRatio = ratio;
124  }
125 }

◆ begin()

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

Definition at line 92 of file CaloTopoTmpHashClusterBase.h.

93  {
94  return iterator (m_members.begin());
95  }

◆ end()

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

Definition at line 97 of file CaloTopoTmpHashClusterBase.h.

98  {
99  return iterator (m_members.end());
100  }

◆ getMaxRatio()

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

Definition at line 82 of file CaloTopoTmpHashClusterBase.h.

83  {
84  return m_maxRatio;
85  }

◆ removeAll()

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

Definition at line 102 of file CaloTopoTmpHashClusterBase.h.

103  {
104  m_members.clear();
105  m_maxRatio=0;
106  }

◆ size()

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

Definition at line 87 of file CaloTopoTmpHashClusterBase.h.

88  {
89  return m_members.size();
90  }

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:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
CxxUtils::pointer_list_base::clear
void clear()
Erase the container.
Definition: pointer_list.cxx:89
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
pool
pool namespace
Definition: libname.h:15
CxxUtils::pointer_list::end
iterator end()
Iterator at the end of the container.
CxxUtils::pointer_list::begin
iterator begin()
Iterator at the beginning of the container.
CaloTopoTmpHashClusterBase::end
iterator end()
Definition: CaloTopoTmpHashClusterBase.h:97
CxxUtils::pointer_list_base::push_back
void push_back(value_type p)
Add a new element to the end of the container. O(1)
CxxUtils::pointer_list_base::size
size_t size() const
The current size of the container. O(1).
WriteBchToCool.beg
beg
Definition: WriteBchToCool.py:69
CaloTopoTmpHashClusterBase::m_maxRatio
float m_maxRatio
Definition: CaloTopoTmpHashClusterBase.h:39
python.compareTCTs.ratio
ratio
Definition: compareTCTs.py:295
CaloTopoTmpHashClusterBase::m_members
pointer_list m_members
Definition: CaloTopoTmpHashClusterBase.h:38
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35