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 108 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() [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 90 of file CaloTopoTmpHashClusterBase.h.

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

◆ end()

iterator CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::end
inlineinherited

Definition at line 95 of file CaloTopoTmpHashClusterBase.h.

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

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

81  {
82  return m_maxRatio;
83  }

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

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

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:100
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:114
CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::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)
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