ATLAS Offline Software
Loading...
Searching...
No Matches
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
7NAME: CaloTopoTowerContainer.cxx
8PACKAGE: offline/Calorimeter/CaloRec
9
10AUTHORS: S. Rajagopalan
11CREATED: Oct 29, 2000
12
13PURPOSE:
14
15Updated: Jan 3, 2001 (HM)
16 QA.
17
18Updated: Feb 5, 2001 (HMa)
19 Moved from LArClusterRec to CaloRec.
20
21
22********************************************************************/
23
25
26
27
29// Constructors/Desctructor //
31
42
44 bool noTowers /*= false*/)
45 : CaloTowerContainer(theSegmentation, noTowers),
46 m_celltoclustermap(nullptr),
49 m_useCellWeights (false),
50 m_noiseSigma (0),
52 m_caloSelection (false)
53{
54}
55
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
Storable container class for CaloTower.
void swap(CaloTopoTowerContainer &other)
Swap.
DataLink< CaloTowerContainer > m_towers
CaloTopoTowerContainer & operator=(const CaloTopoTowerContainer &other)
Assignment.
const CaloCell2ClusterMap * m_celltoclustermap
virtual ~CaloTopoTowerContainer()
Destructor.
CaloTopoTowerContainer()
Default constructor.
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
DataLink< CaloClusterContainer > m_clusters
DataLink< CaloCellContainer > m_cells
CaloTowerContainer()
Default constructor.
void swap(CaloTowerContainer &other)
Swap.
Data object stores CaloTower segmentation.
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
void swap(ElementLinkVector< DOBJ > &lhs, ElementLinkVector< DOBJ > &rhs)