ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloEvent
src
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
24
#include "
CaloEvent/CaloTopoTowerContainer.h
"
25
26
27
29
// Constructors/Desctructor //
31
32
CaloTopoTowerContainer::CaloTopoTowerContainer
()
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
43
CaloTopoTowerContainer::CaloTopoTowerContainer
(
const
CaloTowerSeg
& theSegmentation,
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
56
CaloTopoTowerContainer::CaloTopoTowerContainer
57
(
const
CaloTopoTowerContainer
& other)
58
:
DataVector
<
INavigable4Momentum
> (other),
59
CaloTowerContainer
(other),
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
74
CaloTopoTowerContainer
&
75
CaloTopoTowerContainer::operator=
(
const
CaloTopoTowerContainer
& other)
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
94
void
CaloTopoTowerContainer::swap
(
CaloTopoTowerContainer
& other)
95
{
96
if
(
this
!= &other) {
97
CaloTowerContainer::swap
(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
112
CaloTopoTowerContainer::~CaloTopoTowerContainer
()
113
=
default
;
114
CaloTopoTowerContainer.h
CaloTopoTowerContainer
Storable container class for CaloTower.
Definition
CaloTopoTowerContainer.h:51
CaloTopoTowerContainer::swap
void swap(CaloTopoTowerContainer &other)
Swap.
Definition
CaloTopoTowerContainer.cxx:94
CaloTopoTowerContainer::m_minimumCellEnergy
double m_minimumCellEnergy
Definition
CaloTopoTowerContainer.h:139
CaloTopoTowerContainer::m_useCellWeights
bool m_useCellWeights
Definition
CaloTopoTowerContainer.h:141
CaloTopoTowerContainer::m_towers
DataLink< CaloTowerContainer > m_towers
Definition
CaloTopoTowerContainer.h:134
CaloTopoTowerContainer::m_minimumClusterEnergy
double m_minimumClusterEnergy
Definition
CaloTopoTowerContainer.h:140
CaloTopoTowerContainer::operator=
CaloTopoTowerContainer & operator=(const CaloTopoTowerContainer &other)
Assignment.
Definition
CaloTopoTowerContainer.cxx:75
CaloTopoTowerContainer::m_celltoclustermap
const CaloCell2ClusterMap * m_celltoclustermap
Definition
CaloTopoTowerContainer.h:136
CaloTopoTowerContainer::~CaloTopoTowerContainer
virtual ~CaloTopoTowerContainer()
Destructor.
CaloTopoTowerContainer::m_cellESignificanceThreshold
float m_cellESignificanceThreshold
Definition
CaloTopoTowerContainer.h:145
CaloTopoTowerContainer::CaloTopoTowerContainer
CaloTopoTowerContainer()
Default constructor.
Definition
CaloTopoTowerContainer.cxx:32
CaloTopoTowerContainer::m_noiseSigma
float m_noiseSigma
Definition
CaloTopoTowerContainer.h:144
CaloTopoTowerContainer::m_caloSelection
bool m_caloSelection
Definition
CaloTopoTowerContainer.h:149
CaloTopoTowerContainer::m_caloIndices
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
Definition
CaloTopoTowerContainer.h:148
CaloTopoTowerContainer::m_clusters
DataLink< CaloClusterContainer > m_clusters
Definition
CaloTopoTowerContainer.h:133
CaloTopoTowerContainer::m_cells
DataLink< CaloCellContainer > m_cells
Definition
CaloTopoTowerContainer.h:135
CaloTowerContainer::CaloTowerContainer
CaloTowerContainer()
Default constructor.
Definition
CaloTowerContainer.cxx:46
CaloTowerContainer::swap
void swap(CaloTowerContainer &other)
Swap.
Definition
CaloTowerContainer.cxx:95
CaloTowerSeg
Data object stores CaloTower segmentation.
Definition
CaloTowerSeg.h:37
DataVector< CaloTower >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
INavigable4Momentum
Definition
INavigable4Momentum.h:21
std::swap
void swap(ElementLinkVector< DOBJ > &lhs, ElementLinkVector< DOBJ > &rhs)
Definition
AthLinks/ElementLinkVector.h:484
Generated on
for ATLAS Offline Software by
1.17.0