ATLAS Offline Software
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$
16 #ifndef XAODCALOEVENT_CALOVERTEXEDCLUSTERBASE_H
17 #define XAODCALOEVENT_CALOVERTEXEDCLUSTERBASE_H
18 
20 #include "xAODBase/IParticle.h"
22 
23 
24 namespace xAOD {
25 
26 
40  : public IParticle
41 {
42 public:
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 
97 protected:
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
xAOD::CaloVertexedClusterBase::p4
virtual FourMom_t p4() const final
The full 4-momentum of the particle.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:88
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
IParticle.h
xAOD::CaloVertexedClusterBase::computeVertexCorr
void computeVertexCorr(const Amg::Vector3D &vx, double radius)
Calculate cluster kinematics for a given vertex.
Definition: CaloVertexedClusterBase.cxx:67
xAOD::CaloVertexedClusterBase::CaloVertexedClusterBase
CaloVertexedClusterBase(const CaloCluster &cl)
Constructor.
Definition: CaloVertexedClusterBase.cxx:33
xAOD::CaloVertexedClusterBase::m_eta
double m_eta
The recalculated cluster eta.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:109
xAOD::CaloCluster_v1::State
State
enum of possible signal states.
Definition: CaloCluster_v1.h:304
xAOD::CaloVertexedClusterBase::m
virtual double m() const final
The invariant mass of the particle.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:81
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
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::clust
const CaloCluster & clust() const
Return the cluster being proxied,.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:69
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::IParticle::FourMom_t
TLorentzVector FourMom_t
Definition of the 4-momentum type.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:69
GeoPrimitives.h
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloCluster.h
xAOD::CaloVertexedClusterBase::m_phi
double m_phi
The recalculated cluster phi.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:113
xAOD::CaloVertexedClusterBase::m_p4
FourMom_t m_p4
The recalculated cluster 4-momentum.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:117
xAOD::CaloVertexedClusterBase
Evaluate cluster kinematics with a different vertex / signal state.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:41
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
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_cl
const CaloCluster * m_cl
The cluster being proxied.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:105
xAOD::CaloVertexedClusterBase::pt
virtual double pt() const final
The transverse momentum ( ) of the particle.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:75
xAOD::CaloVertexedClusterBase::rapidity
virtual double rapidity() const final
The true rapidity (y) of the particle.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:85
xAOD::CaloCluster_v1::type
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
Definition: CaloCluster_v1.cxx:489
xAODType::ObjectType
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition: ObjectType.h:32
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
xAOD::CaloVertexedClusterBase::e
virtual double e() const final
The total energy of the particle.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:83