|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef XAODPARTICLEEVENT_VERSIONS_PARTICLE_V1_H
9 #define XAODPARTICLEEVENT_VERSIONS_PARTICLE_V1_H
18 #include "AthLinks/ElementLink.h"
21 #include "Math/Vector4D.h"
46 virtual double pt()
const;
48 virtual double eta()
const;
50 virtual double phi()
const;
52 virtual double m()
const;
54 virtual double e()
const;
65 typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >
GenVecFourMom_t;
134 #endif // XAODPARTICLEEVENT_VERSIONS_PARTICLE_V1_H
void setCharge(float charge)
Set the electric charge.
GenVecFourMom_t genvecP4() const
The full 4-momentum of the particle : GenVector form.
void setPz(double pz)
Set the z-component of the momentum.
bool hasCharge() const
Check if this particle has its charge set.
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > GenVecFourMom_t
Base 4 Momentum type (GenVector)
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
void setPx(double px)
Set the x-component of the momentum.
virtual double m() const
The invariant mass of the particle.
virtual double e() const
The total energy of the particle.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
std::vector< size_t > vec
void setE(double e)
Set the energy.
Class providing the definition of the 4-vector interface.
float charge() const
Return the electric charge.
double et() const
The transverse energy ( ) of the particle.
void setPdgId(int pdgID)
Set the PDG identifier.
int pdgId() const
Return the PDG identifier.
TLorentzVector FourMom_t
Definition of the 4-momentum type.
void toPersistent()
Function preparing the object to be persistified.
void setP4(const FourMom_t &vec)
Set the 4-vec.
void setPxPyPzE(double px, double py, double pz, double e)
Set the 4-vec.
double pz() const
Get the pz momentum component of the particle.
void setPy(double py)
Set the y-component of the momentum.
Description of a generic particle.
double py() const
Get the py momentum component of the particle.
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
Particle_v1()
Default constructor.
bool hasPdgId() const
Check if this particle has its charge set.
virtual double rapidity() const
The true rapidity (y) of the particle.
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
virtual double eta() const
The pseudorapidity ( ) of the particle.
ObjectType
Type of objects that have a representation in the xAOD EDM.
virtual double pt() const
The transverse momentum ( ) of the particle.
double px() const
Get the px momentum component of the particle.