ATLAS Offline Software
CaloTopoTmpHashCluster.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //-----------------------------------------------------------------------
6 // File and Version Information:
7 //
8 // Description: see CaloTopoTmpHashCluster.h
9 //
10 // Environment:
11 // Software developed for the ATLAS Detector at CERN LHC
12 //
13 // Author List:
14 // Sven Menke
15 //
16 //-----------------------------------------------------------------------
17 
18 //-----------------------
19 // This Class's Header --
20 //-----------------------
21 #include "CaloTopoTmpHashCluster.h"
22 #include "CaloTopoTmpClusterCell.h"
23 
24 //----------------------------
25 // This Class's Base Header --
26 //----------------------------
27 
28 //---------------
29 // C++ Headers --
30 //---------------
31 
32 //---------------
33 // C Headers --
34 //---------------
35 
36 //----------------
37 // Constructors --
38 //----------------
39 
40 //-----------
41 // Methods --
42 //-----------
43 
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 }
54 
56 {
57  if ( rClus.m_maxRatio > m_maxRatio)
58  m_maxEt = rClus.m_maxEt;
59  Base::add (rClus);
60 }
CaloTopoTmpHashCluster::m_maxEt
float m_maxEt
Definition: CaloTopoTmpHashCluster.h:38
CaloTopoTmpHashCell::getCaloTopoTmpClusterCell
const T * getCaloTopoTmpClusterCell() const
Definition: CaloTopoTmpHashCell.h:59
CaloTopoTmpHashCluster
Definition: CaloTopoTmpHashCluster.h:29
CaloTopoTmpHashCell
Definition: CaloTopoTmpHashCell.h:22
CaloTopoTmpClusterCell
Definition: CaloTopoTmpClusterCell.h:27
CaloTopoTmpClusterCell::getSignedEt
const float & getSignedEt() const
Definition: CaloTopoTmpClusterCell.h:49
CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::add
void add(HashCell &hashCell)
Definition: CaloTopoTmpHashClusterBase.h:114
CaloTopoTmpClusterCell.h
CaloTopoTmpHashCluster.h
CaloTopoTmpHashClusterBase< CaloTopoTmpClusterCell >::m_maxRatio
float m_maxRatio
Definition: CaloTopoTmpHashClusterBase.h:39
CaloTopoTmpHashCluster::add
void add(HashCell &hashCell)
Definition: CaloTopoTmpHashCluster.cxx:44
CaloTopoTmpClusterCellBase::getSignedRatio
const float & getSignedRatio() const
Definition: CaloTopoTmpClusterCellBase.h:77