ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODCaloEvent
Root
CaloVertexedTopoCluster.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id$
12
13
14
#include "
xAODCaloEvent/CaloVertexedTopoCluster.h
"
15
16
17
namespace
xAOD
{
18
26
CaloVertexedTopoCluster::CaloVertexedTopoCluster
(
const
CaloCluster
& cl)
27
:
CaloVertexedClusterBase
(cl)
28
{
29
}
30
31
40
CaloVertexedTopoCluster::CaloVertexedTopoCluster
(
const
CaloCluster
& cl,
41
CaloCluster::State
s)
42
:
CaloVertexedClusterBase
(cl,s)
43
{
44
}
45
46
55
CaloVertexedTopoCluster::CaloVertexedTopoCluster
(
const
CaloCluster
& cl,
56
const
Amg::Vector3D
& vx)
57
:
CaloVertexedClusterBase
(cl)
58
{
59
computeVertexCorr
(vx,
retrieveRadius
());
60
}
61
62
73
CaloVertexedTopoCluster::CaloVertexedTopoCluster
(
const
CaloCluster
& cl,
74
CaloCluster::State
s,
75
const
Amg::Vector3D
& vx)
76
:
CaloVertexedClusterBase
(cl,s)
77
{
78
computeVertexCorr
(vx,
retrieveRadius
() );
79
}
80
81
82
85
double
CaloVertexedTopoCluster::retrieveRadius
() {
86
87
double
radius = 0;
88
double
mag
= 0;
89
90
if
(
m_cl
->retrieveMoment (
CaloCluster::CENTER_MAG
,
mag
)) {
91
radius =
mag
/cosh(
m_eta
);
92
}
93
94
return
radius;
95
}
96
97
}
// namespace xAOD
mag
Scalar mag() const
mag method
Definition
AmgMatrixBasePlugin.h:26
CaloVertexedTopoCluster.h
Evaluate cluster kinematics with a different vertex / signal state.
xAOD::CaloCluster_v1::State
State
enum of possible signal states.
Definition
CaloCluster_v1.h:307
xAOD::CaloCluster_v1::CENTER_MAG
@ CENTER_MAG
Cluster Centroid ( ).
Definition
CaloCluster_v1.h:138
xAOD::CaloVertexedClusterBase::CaloVertexedClusterBase
CaloVertexedClusterBase(const CaloCluster &cl)
Constructor.
Definition
CaloVertexedClusterBase.cxx:33
xAOD::CaloVertexedClusterBase::m_cl
const CaloCluster * m_cl
The cluster being proxied.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:105
xAOD::CaloVertexedClusterBase::computeVertexCorr
void computeVertexCorr(const Amg::Vector3D &vx, double radius)
Calculate cluster kinematics for a given vertex.
Definition
CaloVertexedClusterBase.cxx:67
xAOD::CaloVertexedClusterBase::m_eta
double m_eta
The recalculated cluster eta.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:109
xAOD::CaloVertexedTopoCluster::CaloVertexedTopoCluster
CaloVertexedTopoCluster(const CaloCluster &cl)
Constructor.
Definition
CaloVertexedTopoCluster.cxx:26
xAOD::CaloVertexedTopoCluster::retrieveRadius
double retrieveRadius()
returns the radius value needed for vertex correction.
Definition
CaloVertexedTopoCluster.cxx:85
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
Generated on
for ATLAS Offline Software by
1.17.0