ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODCaloEvent
xAODCaloEvent
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id$
14
15
16
#ifndef XAODCALOEVENT_CALOVERTEXEDCLUSTERBASE_H
17
#define XAODCALOEVENT_CALOVERTEXEDCLUSTERBASE_H
18
19
#include "
xAODCaloEvent/CaloCluster.h
"
20
#include "
xAODBase/IParticle.h
"
21
#include "
GeoPrimitives/GeoPrimitives.h
"
22
23
24
namespace
xAOD
{
25
26
39
class
CaloVertexedClusterBase
40
:
public
IParticle
41
{
42
public
:
50
CaloVertexedClusterBase
(
const
CaloCluster
& cl);
51
52
61
CaloVertexedClusterBase
(
const
CaloCluster
& cl,
62
CaloCluster::State
s);
63
64
65
69
const
CaloCluster
&
clust
()
const
{
return
*
m_cl
; }
70
73
75
virtual
double
pt
()
const
final {
return
m_p4
.Pt(); }
77
virtual
double
eta
()
const
final {
return
m_eta
; }
79
virtual
double
phi
()
const
final {
return
m_phi
; }
81
virtual
double
m
()
const
final {
return
m_p4
.M(); }
83
virtual
double
e
()
const
final {
return
m_p4
.E(); }
85
virtual
double
rapidity
()
const
final {
return
m_p4
.Rapidity(); }
86
88
virtual
FourMom_t
p4
()
const
final {
return
m_p4
; }
89
91
93
virtual
Type::ObjectType
type
()
const
final {
return
m_cl
->type(); }
94
95
96
97
protected
:
102
void
computeVertexCorr
(
const
Amg::Vector3D
& vx,
double
radius);
103
105
const
CaloCluster
*
m_cl
;
106
107
109
double
m_eta
;
110
111
113
double
m_phi
;
114
115
117
FourMom_t
m_p4
;
118
};
119
120
121
}
// namespace xAOD
122
123
124
125
126
#endif
// not XAODCALOEVENT_CALOVERTEXEDCLUSTERBASE_H
IParticle.h
CaloCluster.h
GeoPrimitives.h
xAOD::CaloCluster_v1::State
State
enum of possible signal states.
Definition
CaloCluster_v1.h:307
xAOD::CaloVertexedClusterBase::m
virtual double m() const final
The invariant mass of the particle.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:81
xAOD::CaloVertexedClusterBase::CaloVertexedClusterBase
CaloVertexedClusterBase(const CaloCluster &cl)
Constructor.
Definition
CaloVertexedClusterBase.cxx:33
xAOD::CaloVertexedClusterBase::m_p4
FourMom_t m_p4
The recalculated cluster 4-momentum.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:117
xAOD::CaloVertexedClusterBase::rapidity
virtual double rapidity() const final
The true rapidity (y) of the particle.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:85
xAOD::CaloVertexedClusterBase::p4
virtual FourMom_t p4() const final
The full 4-momentum of the particle.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:88
xAOD::CaloVertexedClusterBase::clust
const CaloCluster & clust() const
Return the cluster being proxied,.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:69
xAOD::CaloVertexedClusterBase::m_cl
const CaloCluster * m_cl
The cluster being proxied.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:105
xAOD::CaloVertexedClusterBase::phi
virtual double phi() const final
The azimuthal angle ( ) of the particle.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:79
xAOD::CaloVertexedClusterBase::eta
virtual double eta() const final
The pseudorapidity ( ) of the particle.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:77
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_phi
double m_phi
The recalculated cluster phi.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:113
xAOD::CaloVertexedClusterBase::e
virtual double e() const final
The total energy of the particle.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:83
xAOD::CaloVertexedClusterBase::pt
virtual double pt() const final
The transverse momentum ( ) of the particle.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:75
xAOD::CaloVertexedClusterBase::type
virtual Type::ObjectType type() const final
The type of the object as a simple enumeration.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:93
xAOD::CaloVertexedClusterBase::m_eta
double m_eta
The recalculated cluster eta.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:109
xAOD::IParticle::IParticle
IParticle()=default
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:69
const
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