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 70 of file CaloTopoTmpHashClusterBase.h.

71  : m_members (pool),
72  m_maxRatio (0)
73  {
74  }

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 {
129  pointer_list::iterator beg = hashCluster.m_members.begin();
130  pointer_list::iterator end = hashCluster.m_members.end();
131  while (beg != end) {
133  ++beg;
134  }
135  if ( hashCluster.m_maxRatio > m_maxRatio) {
136  m_maxRatio = hashCluster.m_maxRatio;
137  }
138 }

◆ 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();
118 
119  float ratio = cell->getSignedRatio();
120  if ( ratio > m_maxRatio ) {
121  m_maxRatio = ratio;
122  }
123 }

◆ begin()

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

Definition at line 90 of file CaloTopoTmpHashClusterBase.h.

91  {
92  return iterator (m_members.begin());
93  }

◆ 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:
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:95
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