![]() |
ATLAS Offline Software
|
Class describing a NeutralParticle. More...
#include <NeutralParticle_v1.h>
Public Member Functions | |
| NeutralParticle_v1 () | |
| Default constructor. | |
| ~NeutralParticle_v1 () | |
| Destructor. | |
| NeutralParticle_v1 (const NeutralParticle_v1 &o) | |
| Copy ctor. This involves copying the entire Auxilary store, and is a slow operation which should be used sparingly. | |
| NeutralParticle_v1 & | operator= (const NeutralParticle_v1 &tp) |
| Assignment operator. This can involve creating and copying an Auxilary store, and so should be used sparingly. | |
xAOD::IParticle functions | |
The transverse momentum ( \(p_T\)) of the particle. | |
| typedef IParticle::FourMom_t | FourMom_t |
| Definition of the 4-momentum type. | |
| typedef ROOT::Math::LorentzVector< ROOT::Math::PxPyPzM4D< double > > | GenVecFourMom_t |
| Base 4 Momentum type for TrackParticle. | |
| 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. | |
Defining parameters functions | |
The 'defining parameters' are key to the concept of a NeutralParticle, and give the values for the IParticle interface ( pt(), phi(), eta() etc.). They use the Trk::NeutralPerigee coordinate system, and are defined as: \(( d_0, z_0, \phi, \theta, q/p )\). The parameters are expressed with respect to an origin (returned by vx(), vy() and vy() ), currently intended to be the 'beamspot'. This origin is expected to be the same for all track particles in a collection (and this may be be enforced). | |
| CxxUtils::CachedValue< Trk::NeutralPerigee > | m_perigeeParameters |
| Cached NeutralPerigee, built from this object. | |
| float | d0 () const |
| Returns the \(d_0\) parameter. | |
| float | z0 () const |
| Returns the \(z_0\) parameter. | |
| float | phi0 () const |
| Returns the \(\phi\) parameter, which has range \(-\pi\) to \(+\pi\). | |
| float | theta () const |
| Returns the \(\theta\) parameter, which has range 0 to \(\pi\). | |
| float | oneOverP () const |
| Returns the \(q/p\) parameter. | |
| const DefiningParameters_t | definingParameters () const |
| Returns a SVector of the Perigee track parameters. | |
| const ParametersCovMatrix_t | definingParametersCovMatrix () const |
| Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix. | |
| const std::vector< float > & | definingParametersCovMatrixVec () const |
| Returns the vector of the covariance values - 15 elements. | |
| void | setDefiningParameters (float d0, float z0, float phi0, float theta, float qOverP) |
| Set the defining parameters. | |
| void | setDefiningParametersCovMatrix (const ParametersCovMatrix_t &cov) |
| Set the defining parameters covariance matrix. | |
| void | setDefiningParametersCovMatrixVec (const std::vector< float > &cov) |
| Set the defining parameters covariance matrix using a length 15 vector. | |
| float | vx () const |
| The x origin for the parameters. | |
| float | vy () const |
| The y origin for the parameters. | |
| float | vz () const |
| The z origin for the parameters. | |
| void | setParametersOrigin (float x, float y, float z) |
| Set the origin for the parameters. | |
| const Trk::NeutralPerigee & | perigeeParameters () const |
| Returns the Trk::NeutralPerigee track parameters. | |
| void | resetCache () |
| Reset the internal cache of the object. | |
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. | |
Class describing a NeutralParticle.
Definition at line 40 of file NeutralParticle_v1.h.
Definition of the 4-momentum type.
Definition at line 69 of file NeutralParticle_v1.h.
| typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > xAOD::NeutralParticle_v1::GenVecFourMom_t |
Base 4 Momentum type for TrackParticle.
Definition at line 75 of file NeutralParticle_v1.h.
| xAOD::NeutralParticle_v1::NeutralParticle_v1 | ( | ) |
Default constructor.
Definition at line 20 of file NeutralParticle_v1.cxx.
| xAOD::NeutralParticle_v1::~NeutralParticle_v1 | ( | ) |
| xAOD::NeutralParticle_v1::NeutralParticle_v1 | ( | const NeutralParticle_v1 & | o | ) |
Copy ctor. This involves copying the entire Auxilary store, and is a slow operation which should be used sparingly.
Definition at line 24 of file NeutralParticle_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::NeutralParticle_v1::d0 | ( | ) | const |
Returns the \(d_0\) parameter.
| const DefiningParameters_t xAOD::NeutralParticle_v1::definingParameters | ( | ) | const |
Returns a SVector of the Perigee track parameters.
i.e. a vector of \(\left(\begin{array}{c}d_0\\z_0\\\phi_0\\\theta\\q/p\end{array}\right)\)
Definition at line 104 of file NeutralParticle_v1.cxx.
| const xAOD::ParametersCovMatrix_t xAOD::NeutralParticle_v1::definingParametersCovMatrix | ( | ) | const |
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.
Definition at line 149 of file NeutralParticle_v1.cxx.
Returns the vector of the covariance values - 15 elements.
Definition at line 163 of file NeutralParticle_v1.cxx.
|
virtual |
The total energy of the particle.
Implements xAOD::IParticle.
|
virtual |
The pseudorapidity ( \(\eta\)) of the particle.
Implements xAOD::IParticle.
Definition at line 47 of file NeutralParticle_v1.cxx.
| NeutralParticle_v1::GenVecFourMom_t xAOD::NeutralParticle_v1::genvecP4 | ( | ) | const |
The full 4-momentum of the particle : GenVector form.
Definition at line 65 of file NeutralParticle_v1.cxx.
|
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 54 of file NeutralParticle_v1.cxx.
| float xAOD::NeutralParticle_v1::oneOverP | ( | ) | const |
Returns the \(q/p\) parameter.
| NeutralParticle_v1 & xAOD::NeutralParticle_v1::operator= | ( | const NeutralParticle_v1 & | tp | ) |
Assignment operator. This can involve creating and copying an Auxilary store, and so should be used sparingly.
Definition at line 29 of file NeutralParticle_v1.cxx.
|
virtual |
The full 4-momentum of the particle.
Implements xAOD::IParticle.
Definition at line 77 of file NeutralParticle_v1.cxx.
| const Trk::NeutralPerigee & xAOD::NeutralParticle_v1::perigeeParameters | ( | ) | const |
Returns the Trk::NeutralPerigee track parameters.
These are defined as: \(\left(\begin{array}{c}d_0\\z_0\\\phi_0\\\theta\\1/p\\\end{array}\right)\)
Definition at line 189 of file NeutralParticle_v1.cxx.
|
virtual |
The azimuthal angle ( \(\phi\)) of the particle.
Implements xAOD::IParticle.
| float xAOD::NeutralParticle_v1::phi0 | ( | ) | const |
Returns the \(\phi\) parameter, which has range \(-\pi\) to \(+\pi\).
|
virtual |
The transverse momentum ( \(p_T\)) of the particle.
Implements xAOD::IParticle.
Definition at line 43 of file NeutralParticle_v1.cxx.
|
virtual |
The true rapidity (y) of the particle.
Implements xAOD::IParticle.
Definition at line 61 of file NeutralParticle_v1.cxx.
| void xAOD::NeutralParticle_v1::resetCache | ( | ) |
Reset the internal cache of the object.
Definition at line 216 of file NeutralParticle_v1.cxx.
| void xAOD::NeutralParticle_v1::setDefiningParameters | ( | float | d0, |
| float | z0, | ||
| float | phi0, | ||
| float | theta, | ||
| float | qOverP ) |
Set the defining parameters.
Definition at line 110 of file NeutralParticle_v1.cxx.
| void xAOD::NeutralParticle_v1::setDefiningParametersCovMatrix | ( | const ParametersCovMatrix_t & | cov | ) |
Set the defining parameters covariance matrix.
Definition at line 134 of file NeutralParticle_v1.cxx.
Set the origin for the parameters.
Definition at line 177 of file NeutralParticle_v1.cxx.
| float xAOD::NeutralParticle_v1::theta | ( | ) | const |
Returns the \(\theta\) parameter, which has range 0 to \(\pi\).
|
virtual |
The type of the object as a simple enumeration.
Implements xAOD::IParticle.
Definition at line 93 of file NeutralParticle_v1.cxx.
| float xAOD::NeutralParticle_v1::vx | ( | ) | const |
The x origin for the parameters.
| float xAOD::NeutralParticle_v1::vy | ( | ) | const |
The y origin for the parameters.
| float xAOD::NeutralParticle_v1::vz | ( | ) | const |
The z origin for the parameters.
| float xAOD::NeutralParticle_v1::z0 | ( | ) | const |
Returns the \(z_0\) parameter.
|
private |
Cached NeutralPerigee, built from this object.
Definition at line 144 of file NeutralParticle_v1.h.