Class providing the definition of the 4-vector interface.
More...
#include <IParticle.h>
Inherits SG::AuxElement.
Inherited by PanTau::PanTauSeed, PanTau::TauConstituent, xAOD::AFPProton_v1, xAOD::CaloCluster_v1, xAOD::CaloTower_v1, xAOD::CaloVertexedClusterBase, xAOD::CompositeParticle_v1, xAOD::DiTauJet_v1, xAOD::Egamma_v1, xAOD::FlowElement_v1, xAOD::GBlock_v1, xAOD::JGTower_v1, xAOD::Jet_v1, xAOD::L2CombinedMuon_v1, xAOD::L2IsoMuon_v1, xAOD::L2StandAloneMuon_v1, xAOD::L2StandAloneMuon_v2, xAOD::Muon_v1, xAOD::NeutralParticle_v1, xAOD::PFO_v1, xAOD::Particle_v1, xAOD::TauJet_v1, xAOD::TauJet_v2, xAOD::TauJet_v3, xAOD::TauTrack_v1, xAOD::TrackCaloCluster_v1, xAOD::TrackParticle_v1, xAOD::TrigElectron_v1, xAOD::TrigPhoton_v1, xAOD::TriggerTower_v2, and xAOD::TruthParticle_v1.
|
| typedef TLorentzVector | FourMom_t |
| | Definition of the 4-momentum type.
|
| virtual double | pt () const=0 |
| | The transverse momentum ( \(p_T\)) of the particle.
|
| virtual double | eta () const=0 |
| | The pseudorapidity ( \(\eta\)) of the particle.
|
| virtual double | phi () const=0 |
| | The azimuthal angle ( \(\phi\)) of the particle.
|
| virtual double | m () const=0 |
| | The invariant mass of the particle.
|
| virtual double | e () const=0 |
| | The total energy of the particle.
|
| virtual double | rapidity () const=0 |
| | The true rapidity (y) of the particle.
|
| virtual FourMom_t | p4 () const=0 |
| | The full 4-momentum of the particle.
|
◆ FourMom_t
◆ ~IParticle()
Virtual destructor, to make vtable happy...
◆ IParticle() [1/3]
◆ IParticle() [2/3]
◆ IParticle() [3/3]
◆ auxdata() [1/2]
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.
- Parameters
-
| name | Name of the aux variable |
| clsname | The name of the associated class. May be blank |
- Returns
- A modifiable reference to the decoration
Definition at line 98 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
99 {
100
102 }
SG::Accessor< T, ALLOC > Accessor
◆ auxdata() [2/2]
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.
- Parameters
-
| name | Name of the aux variable |
| clsname | The name of the associated class. May be blank |
- Returns
- A constant reference to the decoration
Definition at line 118 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
119 {
120
122 }
SG::ConstAccessor< T, ALLOC > ConstAccessor
◆ e()
The total energy of the particle.
◆ eta()
The pseudorapidity ( \(\eta\)) of the particle.
◆ isAvailable()
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.
- Parameters
-
| name | Name of the auxiliary variable |
| clsname | The name of the associated class. May be blank |
- Returns
- Whether the decoration exists or not
Definition at line 135 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
136 {
137
139 }
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
◆ isAvailableWritable()
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.
- Parameters
-
| name | Name of the auxiliary variable |
| clsname | The name of the associated class. May be blank |
- Returns
- Whether the decoration is possible to set
Definition at line 152 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
153 {
154
156 }
bool isAvailableWritable(ELT &e) const
Test to see if this variable exists in the store and is writable.
◆ m()
The invariant mass of the particle.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ p4()
The full 4-momentum of the particle.
◆ phi()
The azimuthal angle ( \(\phi\)) of the particle.
◆ pt()
The transverse momentum ( \(p_T\)) of the particle.
◆ rapidity()
The true rapidity (y) of the particle.
◆ type()
The type of the object as a simple enumeration.
The documentation for this class was generated from the following file: