![]() |
ATLAS Offline Software
|
Description of a generic particle. More...
#include <Particle_v1.h>
Public Member Functions | |
| Particle_v1 () | |
| Default constructor. | |
| void | toPersistent () |
| Function preparing the object to be persistified. | |
Functions implementing additional 4-momentum properties | |
| double | px () const |
| Get the px momentum component of the particle. | |
| double | py () const |
| Get the py momentum component of the particle. | |
| double | pz () const |
| Get the pz momentum component of the particle. | |
| double | et () const |
| The transverse energy ( \(e_T\)) of the particle. | |
| void | setP4 (const FourMom_t &vec) |
| Set the 4-vec. | |
| void | setPxPyPzE (double px, double py, double pz, double e) |
| Set the 4-vec. | |
| void | setPx (double px) |
| Set the x-component of the momentum. | |
| void | setPy (double py) |
| Set the y-component of the momentum. | |
| void | setPz (double pz) |
| Set the z-component of the momentum. | |
| void | setE (double e) |
| Set the energy. | |
Functions implementing other particly-type properties | |
| bool | hasCharge () const |
| Check if this particle has its charge set. | |
| float | charge () const |
| Return the electric charge. | |
| void | setCharge (float charge) |
| Set the electric charge. | |
| bool | hasPdgId () const |
| Check if this particle has its charge set. | |
| int | pdgId () const |
| Return the PDG identifier. | |
| void | setPdgId (int pdgID) |
| Set the PDG identifier. | |
Functions for getting and setting user properties | |
| template<class T> | |
| XAOD_AUXDATA_DEPRECATED T & | auxdata (const std::string &name, const std::string &clsname="") |
| Fetch an aux data variable, as a non-const reference. | |
| template<class T> | |
| XAOD_AUXDATA_DEPRECATED const T & | auxdata (const std::string &name, const std::string &clsname="") const |
| Fetch an aux data variable, as a const reference. | |
| template<class T> | |
| XAOD_AUXDATA_DEPRECATED bool | isAvailable (const std::string &name, const std::string &clsname="") const |
| Check if a user property is available for reading or not. | |
| template<class T> | |
| XAOD_AUXDATA_DEPRECATED bool | isAvailableWritable (const std::string &name, const std::string &clsname="") const |
| Check if a user property is available for writing or not. | |
Functions implementing the xAOD::IParticle interface | |
Copy constructor | |
| typedef IParticle::FourMom_t | FourMom_t |
| Definition of the 4-momentum type. | |
| typedef ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > | GenVecFourMom_t |
| Base 4 Momentum type (GenVector). | |
| virtual double | pt () const |
| The transverse momentum ( \(p_T\)) of the particle. | |
| virtual double | eta () const |
| The pseudorapidity ( \(\eta\)) of the particle. | |
| virtual double | phi () const |
| The azimuthal angle ( \(\phi\)) of the particle. | |
| virtual double | m () const |
| The invariant mass of the particle. | |
| virtual double | e () const |
| The total energy of the particle. | |
| virtual double | rapidity () const |
| The true rapidity (y) of the particle. | |
| virtual FourMom_t | p4 () const |
| The full 4-momentum of the particle. | |
| GenVecFourMom_t | genvecP4 () const |
| The full 4-momentum of the particle : GenVector form. | |
| virtual Type::ObjectType | type () const |
| The type of the object as a simple enumeration. | |
Description of a generic particle.
Definition at line 31 of file Particle_v1.h.
Definition of the 4-momentum type.
Definition at line 59 of file Particle_v1.h.
| typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > xAOD::Particle_v1::GenVecFourMom_t |
Base 4 Momentum type (GenVector).
Definition at line 65 of file Particle_v1.h.
| xAOD::Particle_v1::Particle_v1 | ( | ) |
Default constructor.
Definition at line 16 of file Particle_v1.cxx.
|
inlineinherited |
Fetch an aux data variable, as a non-const reference.
This function provides an easy way for users to decorate objects with auxiliary data.
Take note that this function is slow. Should not be used inside time-critical code.
Definition at line 98 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inlineinherited |
Fetch an aux data variable, as a const reference.
This function provides an easy way for users to retrieve auxiliary decorations from an object.
Take note that this function is slow. Should not be used inside time-critical code.
Definition at line 118 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
| float xAOD::Particle_v1::charge | ( | ) | const |
Return the electric charge.
|
virtual |
The total energy of the particle.
Implements xAOD::IParticle.
| double xAOD::Particle_v1::et | ( | ) | const |
The transverse energy ( \(e_T\)) of the particle.
Note that this differs from ( \(p_T\)) for massive particles.
Definition at line 66 of file Particle_v1.cxx.
|
virtual |
The pseudorapidity ( \(\eta\)) of the particle.
Implements xAOD::IParticle.
Definition at line 30 of file Particle_v1.cxx.
| Particle_v1::GenVecFourMom_t xAOD::Particle_v1::genvecP4 | ( | ) | const |
The full 4-momentum of the particle : GenVector form.
Definition at line 52 of file Particle_v1.cxx.
Check if this particle has its charge set.
Definition at line 120 of file Particle_v1.cxx.
| bool xAOD::Particle_v1::hasPdgId | ( | ) | const |
Check if this particle has its charge set.
|
inlineinherited |
Check if a user property is available for reading or not.
This function should be used to check if a user property which may or may not exist, is set on the object.
Definition at line 135 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inlineinherited |
Check if a user property is available for writing or not.
This function can be used to check whether it will be possible to set a user property on the object.
Definition at line 152 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
virtual |
The invariant mass of the particle.
Implements xAOD::IParticle.
Definition at line 38 of file Particle_v1.cxx.
|
virtual |
The full 4-momentum of the particle.
Implements xAOD::IParticle.
Definition at line 48 of file Particle_v1.cxx.
|
virtual |
The azimuthal angle ( \(\phi\)) of the particle.
Implements xAOD::IParticle.
Definition at line 34 of file Particle_v1.cxx.
|
virtual |
The transverse momentum ( \(p_T\)) of the particle.
Implements xAOD::IParticle.
Definition at line 26 of file Particle_v1.cxx.
| double xAOD::Particle_v1::px | ( | ) | const |
Get the px momentum component of the particle.
| double xAOD::Particle_v1::py | ( | ) | const |
Get the py momentum component of the particle.
| double xAOD::Particle_v1::pz | ( | ) | const |
Get the pz momentum component of the particle.
|
virtual |
The true rapidity (y) of the particle.
Implements xAOD::IParticle.
Definition at line 44 of file Particle_v1.cxx.
| void xAOD::Particle_v1::toPersistent | ( | ) |
Function preparing the object to be persistified.
|
virtual |
The type of the object as a simple enumeration.
Implements xAOD::IParticle.
Definition at line 56 of file Particle_v1.cxx.