ATLAS Offline Software
Loading...
Searching...
No Matches
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
20#include "xAODBase/IParticle.h"
22
23
24namespace xAOD {
25
26
40 : public IParticle
41{
42public:
51
52
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
97protected:
102 void computeVertexCorr (const Amg::Vector3D& vx, double radius);
103
106
107
109 double m_eta;
110
111
113 double m_phi;
114
115
118};
119
120
121} // namespace xAOD
122
123
124
125
126#endif // not XAODCALOEVENT_CALOVERTEXEDCLUSTERBASE_H
State
enum of possible signal states.
virtual double m() const final
The invariant mass of the particle.
CaloVertexedClusterBase(const CaloCluster &cl)
Constructor.
virtual double rapidity() const final
The true rapidity (y) of the particle.
virtual FourMom_t p4() const final
The full 4-momentum of the particle.
const CaloCluster & clust() const
Return the cluster being proxied,.
virtual double phi() const final
The azimuthal angle ( ) of the particle.
virtual double eta() const final
The pseudorapidity ( ) of the particle.
void computeVertexCorr(const Amg::Vector3D &vx, double radius)
Calculate cluster kinematics for a given vertex.
virtual double e() const final
The total energy of the particle.
virtual double pt() const final
The transverse momentum ( ) of the particle.
virtual Type::ObjectType type() const final
The type of the object as a simple enumeration.
IParticle()=default
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Eigen::Matrix< double, 3, 1 > Vector3D
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.