ATLAS Offline Software
Public Types | Public Member Functions | Protected Types | Protected Attributes | Private Types | Private Attributes | List of all members
CaloTopoTmpHashCluster Class Reference

#include <CaloTopoTmpHashCluster.h>

Inheritance diagram for CaloTopoTmpHashCluster:
Collaboration diagram for CaloTopoTmpHashCluster:

Public Types

typedef pointer_list::pool_type pool_type
 

Public Member Functions

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

Protected Types

typedef CxxUtils::pointer_list pointer_list
 

Protected Attributes

pointer_list m_members
 
float m_maxRatio
 

Private Types

typedef CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCellBase
 
typedef CaloTopoTmpHashCell< CaloTopoTmpClusterCellHashCell
 

Private Attributes

float m_maxEt
 

Detailed Description

Definition at line 27 of file CaloTopoTmpHashCluster.h.

Member Typedef Documentation

◆ Base

Definition at line 30 of file CaloTopoTmpHashCluster.h.

◆ HashCell

Definition at line 31 of file CaloTopoTmpHashCluster.h.

◆ pointer_list

Definition at line 32 of file CaloTopoTmpHashClusterBase.h.

◆ pool_type

Definition at line 43 of file CaloTopoTmpHashClusterBase.h.

Constructor & Destructor Documentation

◆ CaloTopoTmpHashCluster()

CaloTopoTmpHashCluster::CaloTopoTmpHashCluster ( pool_type pool)
inline

Definition at line 44 of file CaloTopoTmpHashCluster.h.

45  : Base (pool)
46  {
47  m_maxEt = 0;
48  }

Member Function Documentation

◆ add() [1/3]

void CaloTopoTmpHashCluster::add ( CaloTopoTmpHashCluster hashCluster)

Definition at line 55 of file CaloTopoTmpHashCluster.cxx.

56 {
57  if ( rClus.m_maxRatio > m_maxRatio)
58  m_maxEt = rClus.m_maxEt;
59  Base::add (rClus);
60 }

◆ add() [2/3]

Definition at line 110 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() [3/3]

void CaloTopoTmpHashCluster::add ( HashCell hashCell)

Definition at line 44 of file CaloTopoTmpHashCluster.cxx.

45 {
46  // take the cell with the largest Signal to Noise and report its E_t as the
47  // relevant maxEt for the cluster - Note that there might be a cell with a
48  // larger E_t ...
49  const CaloTopoTmpClusterCell* pCell = hashCell.getCaloTopoTmpClusterCell();
50  if ( pCell->getSignedRatio() > m_maxRatio )
51  m_maxEt = pCell->getSignedEt();
52  Base::add (hashCell);
53 }

◆ begin()

iterator CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::begin
inlineinherited

Definition at line 92 of file CaloTopoTmpHashClusterBase.h.

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

◆ end()

iterator CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::end
inlineinherited

Definition at line 97 of file CaloTopoTmpHashClusterBase.h.

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

◆ getMaxEt()

float CaloTopoTmpHashCluster::getMaxEt ( ) const
inline

Definition at line 56 of file CaloTopoTmpHashCluster.h.

57  {
58  return m_maxEt;
59  }

◆ getMaxRatio()

float CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::getMaxRatio
inlineinherited

Definition at line 82 of file CaloTopoTmpHashClusterBase.h.

83  {
84  return m_maxRatio;
85  }

◆ removeAll()

void CaloTopoTmpHashCluster::removeAll ( )
inline

Definition at line 61 of file CaloTopoTmpHashCluster.h.

62  {
64  m_maxEt = 0;
65  }

◆ size()

int CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::size
inlineinherited

Definition at line 87 of file CaloTopoTmpHashClusterBase.h.

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

Member Data Documentation

◆ m_maxEt

float CaloTopoTmpHashCluster::m_maxEt
private

Definition at line 38 of file CaloTopoTmpHashCluster.h.

◆ m_maxRatio

float CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::m_maxRatio
protectedinherited

Definition at line 39 of file CaloTopoTmpHashClusterBase.h.

◆ m_members

Definition at line 38 of file CaloTopoTmpHashClusterBase.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
CaloTopoTmpHashCluster::m_maxEt
float m_maxEt
Definition: CaloTopoTmpHashCluster.h:38
pool
pool namespace
Definition: libname.h:15
CaloTopoTmpClusterCell
Definition: CaloTopoTmpClusterCell.h:27
CxxUtils::pointer_list::end
iterator end()
Iterator at the end of the container.
CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::removeAll
void removeAll()
Definition: CaloTopoTmpHashClusterBase.h:102
CaloTopoTmpClusterCell::getSignedEt
const float & getSignedEt() const
Definition: CaloTopoTmpClusterCell.h:49
CxxUtils::pointer_list::begin
iterator begin()
Iterator at the beginning of the container.
CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::add
void add(HashCell &hashCell)
Definition: CaloTopoTmpHashClusterBase.h:116
CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::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)
CaloTopoTmpHashCluster::Base
CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell > Base
Definition: CaloTopoTmpHashCluster.h:30
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< CaloTopoTmpClusterCell >::m_maxRatio
float m_maxRatio
Definition: CaloTopoTmpHashClusterBase.h:39
CaloTopoTmpClusterCellBase::getSignedRatio
const float & getSignedRatio() const
Definition: CaloTopoTmpClusterCellBase.h:77
CaloTopoTmpHashClusterBase::m_members
pointer_list m_members
Definition: CaloTopoTmpHashClusterBase.h:38