ATLAS Offline Software
CaloTopoTowerContainer.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /********************************************************************
6 
7 NAME: CaloTopoTowerContainer.cxx
8 PACKAGE: offline/Calorimeter/CaloRec
9 
10 AUTHORS: S. Rajagopalan
11 CREATED: Oct 29, 2000
12 
13 PURPOSE:
14 
15 Updated: Jan 3, 2001 (HM)
16  QA.
17 
18 Updated: Feb 5, 2001 (HMa)
19  Moved from LArClusterRec to CaloRec.
20 
21 
22 ********************************************************************/
23 
25 
26 
27 
29 // Constructors/Desctructor //
31 
33  : m_celltoclustermap(nullptr),
34  m_minimumCellEnergy(0),
35  m_minimumClusterEnergy (0),
36  m_useCellWeights (false),
37  m_noiseSigma (0),
38  m_cellESignificanceThreshold (0),
39  m_caloSelection (false)
40 {
41 }
42 
44  bool noTowers /*= false*/)
45  : CaloTowerContainer(theSegmentation, noTowers),
46  m_celltoclustermap(nullptr),
47  m_minimumCellEnergy(0),
48  m_minimumClusterEnergy (0),
49  m_useCellWeights (false),
50  m_noiseSigma (0),
51  m_cellESignificanceThreshold (0),
52  m_caloSelection (false)
53 {
54 }
55 
60  m_clusters (other.m_clusters),
61  m_towers (other.m_towers),
62  m_cells (other.m_cells),
63  m_celltoclustermap (other.m_celltoclustermap),
64  m_minimumCellEnergy (other.m_minimumCellEnergy),
65  m_minimumClusterEnergy (other.m_minimumClusterEnergy),
66  m_useCellWeights (other.m_useCellWeights),
67  m_noiseSigma (other.m_noiseSigma),
68  m_cellESignificanceThreshold (other.m_cellESignificanceThreshold),
69  m_caloIndices (other.m_caloIndices),
70  m_caloSelection (other.m_caloSelection)
71 {
72 }
73 
76 {
77  if (this != &other) {
78  *static_cast<CaloTowerContainer*>(this) = other;
79  m_clusters = other.m_clusters;
80  m_towers = other.m_towers;
81  m_cells = other.m_cells;
82  m_celltoclustermap = other.m_celltoclustermap;
83  m_minimumCellEnergy = other.m_minimumCellEnergy;
84  m_minimumClusterEnergy = other.m_minimumClusterEnergy;
85  m_useCellWeights = other.m_useCellWeights;
86  m_noiseSigma = other.m_noiseSigma;
87  m_cellESignificanceThreshold = other.m_cellESignificanceThreshold;
88  m_caloIndices = other.m_caloIndices;
89  m_caloSelection = other.m_caloSelection;
90  }
91  return *this;
92 }
93 
95 {
96  if (this != &other) {
98  std::swap (m_clusters, other.m_clusters);
99  std::swap (m_towers, other.m_towers);
100  std::swap (m_cells, other.m_cells);
101  std::swap (m_celltoclustermap, other.m_celltoclustermap);
102  std::swap (m_minimumCellEnergy, other.m_minimumCellEnergy);
103  std::swap (m_minimumClusterEnergy, other.m_minimumClusterEnergy);
104  std::swap (m_useCellWeights, other.m_useCellWeights);
105  std::swap (m_noiseSigma, other.m_noiseSigma);
106  std::swap (m_cellESignificanceThreshold,other.m_cellESignificanceThreshold);
107  std::swap (m_caloSelection, other.m_caloSelection);
108  m_caloIndices.swap (other.m_caloIndices);
109  }
110 }
111 
113 = default;
114 
CaloTopoTowerContainer::swap
void swap(CaloTopoTowerContainer &other)
Swap.
Definition: CaloTopoTowerContainer.cxx:94
CaloTopoTowerContainer::m_cellESignificanceThreshold
float m_cellESignificanceThreshold
Definition: CaloTopoTowerContainer.h:165
CaloTopoTowerContainer::m_minimumClusterEnergy
double m_minimumClusterEnergy
Definition: CaloTopoTowerContainer.h:160
CaloTopoTowerContainer::~CaloTopoTowerContainer
virtual ~CaloTopoTowerContainer()
Destructor.
CaloTopoTowerContainer::m_minimumCellEnergy
double m_minimumCellEnergy
Definition: CaloTopoTowerContainer.h:159
CaloTopoTowerContainer::m_clusters
DataLink< CaloClusterContainer > m_clusters
Definition: CaloTopoTowerContainer.h:153
CaloTowerContainer
Storable container class for CaloTower.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloTowerContainer.h:77
CaloTopoTowerContainer::m_useCellWeights
bool m_useCellWeights
Definition: CaloTopoTowerContainer.h:161
CaloTopoTowerContainer::CaloTopoTowerContainer
CaloTopoTowerContainer()
Default constructor.
Definition: CaloTopoTowerContainer.cxx:32
CaloTopoTowerContainer
Storable container class for CaloTower.
Definition: CaloTopoTowerContainer.h:51
CaloTopoTowerContainer::m_towers
DataLink< CaloTowerContainer > m_towers
Definition: CaloTopoTowerContainer.h:154
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
WriteCalibToCool.swap
swap
Definition: WriteCalibToCool.py:94
CaloTopoTowerContainer::m_noiseSigma
float m_noiseSigma
Definition: CaloTopoTowerContainer.h:164
CaloTopoTowerContainer::m_caloSelection
bool m_caloSelection
Definition: CaloTopoTowerContainer.h:169
CaloTopoTowerContainer::m_celltoclustermap
const CaloCell2ClusterMap * m_celltoclustermap
Definition: CaloTopoTowerContainer.h:156
CaloTopoTowerContainer.h
CaloTopoTowerContainer::m_cells
DataLink< CaloCellContainer > m_cells
Definition: CaloTopoTowerContainer.h:155
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
CaloTopoTowerContainer::m_caloIndices
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
Definition: CaloTopoTowerContainer.h:168
INavigable4Momentum
Definition: INavigable4Momentum.h:21
CaloTowerContainer::swap
void swap(CaloTowerContainer &other)
Swap.
Definition: CaloTowerContainer.cxx:95
CaloTowerSeg
Data object stores CaloTower segmentation.
Definition: CaloTowerSeg.h:37
CaloTopoTowerContainer::operator=
CaloTopoTowerContainer & operator=(const CaloTopoTowerContainer &other)
Assignment.
Definition: CaloTopoTowerContainer.cxx:75