ATLAS Offline Software
|
Class describing a TrackParticle. More...
#include <TrackParticle_v1.h>
Public Types | |
using | TypelessConstAccessor = ConstAuxElement::TypelessConstAccessor |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | ConstAccessor = SG::ConstAccessor< T, ALLOC > |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | Accessor = SG::Accessor< T, ALLOC > |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | Decorator = SG::Decorator< T, ALLOC > |
Public Member Functions | |
TrackParticle_v1 () | |
Default constructor. More... | |
~TrackParticle_v1 () | |
Destructor. More... | |
TrackParticle_v1 (const TrackParticle_v1 &o) | |
Copy ctor. This involves copying the entire Auxilary store, and is a slow operation which should be used sparingly. More... | |
TrackParticle_v1 & | operator= (const TrackParticle_v1 &tp) |
Assignment operator. This can involve creating and copying an Auxilary store, and so should be used sparingly. More... | |
bool | summaryValue (uint8_t &value, const SummaryType &information) const |
Accessor for TrackSummary values. More... | |
bool | summaryValue (float &value, const SummaryType &information) const |
Accessor for TrackSummary values. More... | |
void | setSummaryValue (uint8_t &value, const SummaryType &information) |
Set method for TrackSummary values. More... | |
void | setSummaryValue (float &value, const SummaryType &information) |
Set method for TrackSummary values. More... | |
void | resetCache () |
Reset the internal cache of the object. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type | auxdata (const std::string &name) |
Fetch an aux data variable, as a non-const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdata (const std::string &name) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritable (const std::string &name, const std::string &clsname="") |
Check if an aux variable is available for writing. More... | |
const SG::AuxVectorData * | container () const |
Return the container holding this element. More... | |
SG::AuxVectorData * | container () |
Return the container holding this element. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdataConst (const std::string &name) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdataConst (const std::string &name, const std::string &clsname) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritableAsDecoration (const std::string &name, const std::string &clsname="") const |
Check if an aux variable is available for writing as a decoration. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type | auxdecor (const std::string &name) const |
Fetch an aux decoration, as a non-const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type | auxdecor (const std::string &name, const std::string &clsname) const |
Fetch an aux decoration, as a non-const reference. More... | |
void | makePrivateStore () |
Create a new (empty) private store for this object. More... | |
template<class U1 > | |
void | makePrivateStore (const U1 &other) |
Create a new private store for this object and copy aux data. More... | |
template<class U1 > | |
void | makePrivateStore (const U1 *other) |
Create a new private store for this object and copy aux data. More... | |
void | releasePrivateStore () |
Release and free any private store associated with this object. More... | |
void | setStore (const SG::IConstAuxStore *store) |
Set the store associated with this object. More... | |
void | setStore (SG::IAuxStore *store) |
Set the store associated with this object. More... | |
void | setStore (const DataLink< SG::IConstAuxStore > &store) |
Set the store associated with this object. More... | |
void | setConstStore (const SG::IConstAuxStore *store) |
Synonym for setStore with IConstAuxStore . More... | |
void | setNonConstStore (SG::IAuxStore *store) |
Synonym for setStore with IAuxStore . More... | |
bool | usingPrivateStore () const |
Test to see if this object is currently using a private store. More... | |
bool | usingStandaloneStore () const |
Test to see if this object is currently using a standalone store. More... | |
const SG::IConstAuxStore * | getConstStore () const |
Return the current store, as a const interface. More... | |
SG::IAuxStore * | getStore () const |
Return the current store, as a non-const interface. More... | |
void | clearCache () |
Clear the cached aux data pointers. More... | |
const SG::auxid_set_t & | getAuxIDs () const |
Return a set of identifiers for existing data items for this object. More... | |
bool | hasStore () const |
Return true if this object has an associated store. More... | |
bool | hasNonConstStore () const |
Return true if this object has an associated non-const store. More... | |
bool | clearDecorations () const |
Clear all decorations. More... | |
bool | trackIndices () const |
Return true if index tracking is enabled for this object. More... | |
size_t | index () const |
Return the index of this element within its container. More... | |
size_t | index () const |
Return the index of this element within its container. More... | |
Static Public Attributes | |
static constexpr bool | supportsThinning = true |
Mark that this type supports thinning operations. More... | |
Protected Member Functions | |
bool | noPrivateData () const |
True if this element has no private data. More... | |
bool | havePrivateData () const |
True if this element currently has private data. More... | |
bool | hadPrivateData () const |
True if this element had private data before it was added to its current container. More... | |
Private Types | |
enum | covMatrixIndex { d0_index =0, z0_index =1, phi_index =2, th_index =3, qp_index =4 } |
typedef std::vector< std::pair< covMatrixIndex, covMatrixIndex > > | covMatrixIndexPairVec |
enum | PrivateStoreState : uint8_t { PrivateStoreState::NO_PRIVATE = 0, PrivateStoreState::HAVE_PRIVATE = 1, PrivateStoreState::HAD_PRIVATE = 2 } |
The current private data state. More... | |
Private Member Functions | |
void | releasePrivateStoreForDtor () |
Out-of-line portion of destructor. More... | |
void | setIndex (size_t index, SG::AuxVectorData *container) |
Set the index/container for this element. More... | |
bool | setIndexPrivate (size_t index, SG::AuxVectorData *container) |
Set the index/container for this element. More... | |
void | makePrivateStore1 (const void *) |
Create a new private store for this object and copy aux data. More... | |
void | makePrivateStore1 (const AuxElement *other) |
Create a new private store for this object and copy aux data. More... | |
AuxElementStandaloneData * | setStore1 (const SG::IConstAuxStore *store) |
Set the store associated with this object. More... | |
void | clearAux () |
Clear all aux data associated with this element. More... | |
void | copyAux (const ConstAuxElement &other) |
Copy aux data from another object. More... | |
void | setNoPrivateData () |
Record that this element does not have private data. More... | |
void | setHavePrivateData () |
Record that this element currently has private data. More... | |
void | setHadPrivateData () |
Record that this element used to have private data. More... | |
Static Private Member Functions | |
static const covMatrixIndexPairVec & | covMatrixComprIndexPairs () |
Private Attributes | |
CxxUtils::CachedValue< Trk::Perigee > | m_perigeeParameters |
Cached MeasuredPerigee, built from this object. More... | |
const SG::AuxVectorData * | m_container |
The container of which this object is an element. More... | |
size_t | m_index |
The index of this element within its container. More... | |
PrivateStoreState | m_privateStoreState |
Static Private Attributes | |
static const std::size_t | COVMATRIX_OFFDIAG_VEC_COMPR_SIZE = 6 |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
IParticle functions | |
typedef IParticle::FourMom_t | FourMom_t |
Definition of the 4-momentum type. More... | |
typedef ROOT::Math::LorentzVector< ROOT::Math::PxPyPzM4D< double > > | GenVecFourMom_t |
Base 4 Momentum type for TrackParticle. More... | |
virtual double | pt () const override final |
The transverse momentum ( \(p_T\)) of the particle. More... | |
virtual double | eta () const override final |
The pseudorapidity ( \(\eta\)) of the particle. More... | |
virtual double | phi () const override final |
The azimuthal angle ( \(\phi\)) of the particle (has range \(-\pi\) to \(+\pi\).) More... | |
virtual double | m () const override final |
The invariant mass of the particle.. More... | |
virtual double | e () const override final |
The total energy of the particle. More... | |
virtual double | rapidity () const override final |
The true rapidity (y) of the particle. More... | |
virtual FourMom_t | p4 () const override final |
The full 4-momentum of the particle. More... | |
GenVecFourMom_t | genvecP4 () const |
The full 4-momentum of the particle : GenVector form. More... | |
virtual Type::ObjectType | type () const override final |
The type of the object as a simple enumeration. More... | |
Defining parameters functions | |
The 'defining parameters' are key to the concept of a TrackParticle, and give the values for the IParticle interface ( pt(), phi(), eta() etc.). They use the Trk::Perigee 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). The \(\phi\) parameter is returned by either the phi() or the phi0() methods, the difference just being whether it is returned as a float or a double (it is stored as a float) | |
float | charge () const |
Returns the charge. More... | |
float | d0 () const |
Returns the \(d_0\) parameter. More... | |
float | z0 () const |
Returns the \(z_0\) parameter. More... | |
float | phi0 () const |
Returns the \(\phi\) parameter, which has range \(-\pi\) to \(+\pi\). More... | |
float | theta () const |
Returns the \(\theta\) parameter, which has range 0 to \(\pi\). More... | |
float | qOverP () const |
Returns the \(q/p\) parameter. More... | |
float | time () const |
Returns the time. More... | |
float | timeResolution () const |
Returns the time resolution. More... | |
uint8_t | hasValidTime () const |
Returns whether or not the track has a valid time. More... | |
DefiningParameters_t | definingParameters () const |
Returns a SVector of the Perigee track parameters. More... | |
const ParametersCovMatrix_t | definingParametersCovMatrix () const |
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix. More... | |
ParametersCovMatrixFilled_t | definingParametersCovMatrixFilled () const |
Returns a 5x5 matrix describing which elements of the covariance matrix are known. More... | |
const std::vector< float > & | definingParametersCovMatrixDiagVec () const |
Returns the diagonal elements of the defining parameters covariance matrix. More... | |
const std::vector< float > & | definingParametersCovMatrixOffDiagVec () const |
Returns the correlation coefficient associated with the off-diagonal elements of the covariance matrix = cov(X,Y)/sqrt(cov(X,X)*cov(Y,Y)) More... | |
std::vector< float > | definingParametersCovMatrixVec () const |
Returns the length 6 vector containing the elements of defining parameters covariance matrix. More... | |
bool | definingParametersCovMatrixOffDiagCompr () const |
void | setDefiningParameters (float d0, float z0, float phi0, float theta, float qOverP) |
Set the defining parameters. More... | |
void | setDefiningParameters (float d0, float z0, float phi0, float theta, float qOverP, float time) |
void | setTime (float time) |
void | setTimeResolution (float timeResolution) |
void | setHasValidTime (uint8_t hasValidTime) |
void | setDefiningParametersCovMatrix (const ParametersCovMatrix_t &cov) |
Set the defining parameters covariance matrix. More... | |
void | setDefiningParametersCovMatrixDiagVec (const std::vector< float > &vec) |
Set the defining parameters covariance matrix using a length 15 vector. More... | |
void | setDefiningParametersCovMatrixOffDiagVec (const std::vector< float > &vec) |
Set the off-diagonal elements of the defining parameters covariance matrix. More... | |
void | setDefiningParametersCovMatrixVec (const std::vector< float > &cov) |
void | compressDefiningParametersCovMatrixOffDiag () |
Delete some off-diagonal elements for compression. More... | |
float | vx () const |
The x origin for the parameters. More... | |
float | vy () const |
The y origin for the parameters. More... | |
float | vz () const |
The z origin for the parameters. More... | |
void | setParametersOrigin (float x, float y, float z) |
Set the origin for the parameters. More... | |
const Trk::Perigee & | perigeeParameters () const |
Returns the Trk::MeasuredPerigee track parameters. More... | |
Curvilinear functions | |
The set of functions which return other track parameters. The remaining track parameters (i.e. not the 'defining parameters') use the 'curvilinear' coordinate system, and are represented by the parameters \((x,y,z,p_x,p_y,p_z)\). The parameters can have an associated local 5x5 error/covariance matrix. They are expressed at various points through the detector, which can be determined by the parameterPosition() method. // Example code to use parameters
CurvilinearParameters_t parameters = myTP.trackParameters(index);
}
| |
size_t | numberOfParameters () const |
Returns the number of additional parameters stored in the TrackParticle. More... | |
const CurvilinearParameters_t | trackParameters (unsigned int index) const |
Returns the track parameter vector at 'index'. More... | |
float | parameterX (unsigned int index) const |
Returns the parameter x position, for 'index'. More... | |
float | parameterY (unsigned int index) const |
Returns the parameter y position, for 'index'. More... | |
float | parameterZ (unsigned int index) const |
Returns the parameter z position, for 'index'. More... | |
float | parameterPX (unsigned int index) const |
Returns the parameter x momentum component, for 'index'. More... | |
float | parameterPY (unsigned int index) const |
Returns the parameter y momentum component, for 'index'. More... | |
float | parameterPZ (unsigned int index) const |
Returns the parameter z momentum component, for 'index'. More... | |
void | setTrackParameters (std::vector< std::vector< float > > ¶meters) |
Set the parameters via the passed vector of vectors. More... | |
ParametersCovMatrix_t | trackParameterCovarianceMatrix (unsigned int index) const |
Returns the TrackParticleCovMatrix_t (covariance matrix) at 'index', which corresponds to the parameters at the same index. More... | |
void | setTrackParameterCovarianceMatrix (unsigned int index, std::vector< float > &cov) |
Set the cov matrix of the parameter at 'index', using a vector of floats. More... | |
xAOD::ParameterPosition | parameterPosition (unsigned int index) const |
Return the ParameterPosition of the parameters at 'index'. More... | |
bool | indexOfParameterAtPosition (unsigned int &index, ParameterPosition position) const |
Function to determine if this TrackParticle contains track parameters at a certain position, and if so, what the 'index' is. More... | |
void | setParameterPosition (unsigned int index, ParameterPosition pos) |
Set the 'position' (i.e. where it is in ATLAS) of the parameter at 'index', using the ParameterPosition enum. More... | |
const Trk::CurvilinearParameters | curvilinearParameters (unsigned int index) const |
Returns a curvilinear representation of the parameters at 'index'. More... | |
float | radiusOfFirstHit () const |
Returns the radius of the first hit. More... | |
void | setRadiusOfFirstHit (float radius) |
Set the radius of the first hit. More... | |
uint64_t | identifierOfFirstHit () const |
Returns the offline identifier of the first hit. More... | |
void | setIdentifierOfFirstHit (uint64_t id) |
Set the offline identifier of the first hit. More... | |
float | beamlineTiltX () const |
void | setBeamlineTiltX (float tiltX) |
float | beamlineTiltY () const |
void | setBeamlineTiltY (float tiltY) |
uint32_t | hitPattern () const |
void | setHitPattern (uint32_t hitpattern) |
uint8_t | numberOfUsedHitsdEdx () const |
void | setNumberOfUsedHitsdEdx (uint8_t numhits) |
uint8_t | numberOfIBLOverflowsdEdx () const |
void | setNumberOfIBLOverflowsdEdx (uint8_t numoverflows) |
Fit quality functions | |
float | chiSquared () const |
Returns the \( \chi^2 \) of the overall track fit. More... | |
float | numberDoF () const |
Returns the number of degrees of freedom of the overall track or vertex fit as float. More... | |
void | setFitQuality (float chiSquared, float numberDoF) |
Set the 'Fit Quality' information. More... | |
TrackInfo functions | |
Contains information about the 'fitter' of this Trk::Track / TrackParticle. Additionally there is some information about how the e.g. fit was configured. Also the information on the properties of the track fit is stored. | |
void | setTrackProperties (const TrackProperties properties) |
Methods setting the TrackProperties. More... | |
void | setPatternRecognitionInfo (const std::bitset< xAOD::NumberOfTrackRecoInfo > &patternReco) |
Method setting the pattern recognition algorithm, using a bitset. More... | |
void | setPatternRecognitionInfo (uint64_t patternReco) |
Method setting the pattern recognition algorithm, using a 64-bit int (which is faster than using a bitset). More... | |
void | setTrackFitter (const TrackFitter fitter) |
Method for setting the fitter, using the TrackFitter enum. More... | |
void | setParticleHypothesis (const ParticleHypothesis hypo) |
Method for setting the particle type, using the ParticleHypothesis enum. More... | |
TrackProperties | trackProperties () const |
Access methods for track properties, which returns 'true' if a logical AND of the parameter 'proprty' and the stored properties returns true. More... | |
std::bitset< NumberOfTrackRecoInfo > | patternRecoInfo () const |
Access method for pattern recognition algorithm. More... | |
ParticleHypothesis | particleHypothesis () const |
Returns the particle hypothesis used for Track fitting. More... | |
TrackFitter | trackFitter () const |
Returns the fitter. More... | |
Links | |
const ElementLink< TrackCollection > & | trackLink () const |
Returns a link (which can be invalid) to the Trk::Track which was used to make this TrackParticle. More... | |
void | setTrackLink (const ElementLink< TrackCollection > &track) |
Set the link to the original track. More... | |
const Trk::Track * | track () const |
Returns a pointer (which can be NULL) to the Trk::Track which was used to make this TrackParticle. More... | |
Class describing a TrackParticle.
Definition at line 43 of file TrackParticle_v1.h.
|
inherited |
Definition at line 548 of file AuxElement.h.
|
inherited |
Definition at line 545 of file AuxElement.h.
|
private |
Definition at line 350 of file TrackParticle_v1.h.
|
inherited |
Definition at line 551 of file AuxElement.h.
Definition of the 4-momentum type.
Definition at line 72 of file TrackParticle_v1.h.
typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > xAOD::TrackParticle_v1::GenVecFourMom_t |
Base 4 Momentum type for TrackParticle.
Definition at line 78 of file TrackParticle_v1.h.
|
inherited |
Definition at line 542 of file AuxElement.h.
|
private |
|
strongprivateinherited |
The current private data state.
Enumerator | |
---|---|
NO_PRIVATE | |
HAVE_PRIVATE | |
HAD_PRIVATE |
Definition at line 131 of file IAuxElement.h.
xAOD::TrackParticle_v1::TrackParticle_v1 | ( | ) |
Default constructor.
Definition at line 45 of file TrackParticle_v1.cxx.
xAOD::TrackParticle_v1::~TrackParticle_v1 | ( | ) |
xAOD::TrackParticle_v1::TrackParticle_v1 | ( | const TrackParticle_v1 & | o | ) |
Copy ctor. This involves copying the entire Auxilary store, and is a slow operation which should be used sparingly.
Definition at line 50 of file TrackParticle_v1.cxx.
|
inherited |
Fetch an aux data variable, as a non-const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
or ConstAccessor
classes.
|
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.
name | Name of the aux variable |
clsname | The name of the associated class. May be blank |
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.
name | Name of the aux variable |
clsname | The name of the associated class. May be blank |
Definition at line 118 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor
class.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor
class.
|
inherited |
Fetch an aux decoration, as a non-const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.
|
inherited |
Fetch an aux decoration, as a non-const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.
float xAOD::TrackParticle_v1::beamlineTiltX | ( | ) | const |
float xAOD::TrackParticle_v1::beamlineTiltY | ( | ) | const |
float xAOD::TrackParticle_v1::charge | ( | ) | const |
Returns the charge.
Definition at line 150 of file TrackParticle_v1.cxx.
float xAOD::TrackParticle_v1::chiSquared | ( | ) | const |
Returns the \( \chi^2 \) of the overall track fit.
|
privateinherited |
Clear all aux data associated with this element.
If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData
.
Definition at line 535 of file AuxElement.cxx.
|
inherited |
Clear the cached aux data pointers.
You should call this any time something changes in the aux store that could invalidate the vector pointers.
Definition at line 319 of file AuxElement.cxx.
|
inherited |
Clear all decorations.
Erase all decorations from an associated store, restoring the state to when lock
was called.
Returns true if there were any decorations that were cleared, false if the store did not contain any decorations.
Definition at line 385 of file AuxElement.cxx.
void xAOD::TrackParticle_v1::compressDefiningParametersCovMatrixOffDiag | ( | ) |
Delete some off-diagonal elements for compression.
Definition at line 436 of file TrackParticle_v1.cxx.
|
inherited |
Return the container holding this element.
|
inherited |
Return the container holding this element.
|
privateinherited |
Copy aux data from another object.
other | The object from which to copy. |
If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData
.
All aux data items from other
are copied to this object. Any aux data items associated with this object that are not present in other
are cleared. (If other
has no aux data, then all aux data items for this object are cleared.)
Definition at line 561 of file AuxElement.cxx.
|
staticprivate |
const Trk::CurvilinearParameters xAOD::TrackParticle_v1::curvilinearParameters | ( | unsigned int | index | ) | const |
Returns a curvilinear representation of the parameters at 'index'.
Definition at line 673 of file TrackParticle_v1.cxx.
float xAOD::TrackParticle_v1::d0 | ( | ) | const |
Returns the \(d_0\) parameter.
DefiningParameters_t xAOD::TrackParticle_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 171 of file TrackParticle_v1.cxx.
const xAOD::ParametersCovMatrix_t xAOD::TrackParticle_v1::definingParametersCovMatrix | ( | ) | const |
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.
Definition at line 246 of file TrackParticle_v1.cxx.
Returns the diagonal elements of the defining parameters covariance matrix.
Definition at line 375 of file TrackParticle_v1.cxx.
ParametersCovMatrixFilled_t xAOD::TrackParticle_v1::definingParametersCovMatrixFilled | ( | ) | const |
Returns a 5x5 matrix describing which elements of the covariance matrix are known.
Definition at line 323 of file TrackParticle_v1.cxx.
bool xAOD::TrackParticle_v1::definingParametersCovMatrixOffDiagCompr | ( | ) | const |
Definition at line 429 of file TrackParticle_v1.cxx.
const std::vector< float > & xAOD::TrackParticle_v1::definingParametersCovMatrixOffDiagVec | ( | ) | const |
Returns the correlation coefficient associated with the off-diagonal elements of the covariance matrix = cov(X,Y)/sqrt(cov(X,X)*cov(Y,Y))
Definition at line 380 of file TrackParticle_v1.cxx.
std::vector< float > xAOD::TrackParticle_v1::definingParametersCovMatrixVec | ( | ) | const |
Returns the length 6 vector containing the elements of defining parameters covariance matrix.
Definition at line 385 of file TrackParticle_v1.cxx.
|
finaloverridevirtual |
The total energy of the particle.
Implements xAOD::IParticle.
Definition at line 109 of file TrackParticle_v1.cxx.
|
finaloverridevirtual |
The pseudorapidity ( \(\eta\)) of the particle.
Implements xAOD::IParticle.
Definition at line 77 of file TrackParticle_v1.cxx.
TrackParticle_v1::GenVecFourMom_t xAOD::TrackParticle_v1::genvecP4 | ( | ) | const |
The full 4-momentum of the particle : GenVector form.
Definition at line 116 of file TrackParticle_v1.cxx.
|
inherited |
Return a set of identifiers for existing data items for this object.
If this object has a private or standalone store, then information from that will be returned. Otherwise, if this element is part of a container, then information for the container will be returned. Otherwise, return an empty set.
Definition at line 335 of file AuxElement.cxx.
|
inherited |
Return the current store, as a const interface.
This will be non-zero if either a const or non-const store is associated with this object. This will fetch either a private or standalone store.
Definition at line 284 of file AuxElement.cxx.
|
inherited |
Return the current store, as a non-const interface.
This will be non-zero if a non-const store is associated with this object. This will fetch either a private or standalone store.
Definition at line 299 of file AuxElement.cxx.
|
protectedinherited |
True if this element had private data before it was added to its current container.
|
inherited |
Return true if this object has an associated non-const store.
This will be true for either a private or standalone store.
Definition at line 368 of file AuxElement.cxx.
|
inherited |
Return true if this object has an associated store.
This will be true for either a private or standalone store.
Definition at line 355 of file AuxElement.cxx.
uint8_t xAOD::TrackParticle_v1::hasValidTime | ( | ) | const |
Returns whether or not the track has a valid time.
|
protectedinherited |
True if this element currently has private data.
uint32_t xAOD::TrackParticle_v1::hitPattern | ( | ) | const |
uint64_t xAOD::TrackParticle_v1::identifierOfFirstHit | ( | ) | const |
Returns the offline identifier of the first hit.
|
inherited |
Return the index of this element within its container.
|
inherited |
Return the index of this element within its container.
Inherited from IAuxElement.
bool xAOD::TrackParticle_v1::indexOfParameterAtPosition | ( | unsigned int & | index, |
ParameterPosition | position | ||
) | const |
Function to determine if this TrackParticle contains track parameters at a certain position, and if so, what the 'index' is.
[in] | index | Filled with the index of the track parameters at 'position' - untouched otherwise. |
[out] | position | The location in the detector of the required track parameters. |
Definition at line 653 of file TrackParticle_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.
name | Name of the auxiliary variable |
clsname | The name of the associated class. May be blank |
Definition at line 135 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inherited |
Check if an aux variable is available for writing.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
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.
name | Name of the auxiliary variable |
clsname | The name of the associated class. May be blank |
Definition at line 152 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inherited |
Check if an aux variable is available for writing as a decoration.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
finaloverridevirtual |
The invariant mass of the particle..
Implements xAOD::IParticle.
Definition at line 83 of file TrackParticle_v1.cxx.
|
inherited |
Create a new (empty) private store for this object.
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
Definition at line 172 of file AuxElement.cxx.
|
inherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
If other
is an object that has aux data, then those data will be copied; otherwise, nothing will be done.
|
inherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
If other
is an object that has aux data, then those data will be copied; otherwise, nothing will be done.
|
privateinherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
This overload handles the case where other
does have aux data.
Definition at line 521 of file AuxElement.cxx.
|
privateinherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
This overload handles the case where other
does not have aux data.
|
protectedinherited |
True if this element has no private data.
float xAOD::TrackParticle_v1::numberDoF | ( | ) | const |
Returns the number of degrees of freedom of the overall track or vertex fit as float.
uint8_t xAOD::TrackParticle_v1::numberOfIBLOverflowsdEdx | ( | ) | const |
size_t xAOD::TrackParticle_v1::numberOfParameters | ( | ) | const |
Returns the number of additional parameters stored in the TrackParticle.
number of parameters should be the size of positions we need for them
Definition at line 553 of file TrackParticle_v1.cxx.
uint8_t xAOD::TrackParticle_v1::numberOfUsedHitsdEdx | ( | ) | const |
TrackParticle_v1 & xAOD::TrackParticle_v1::operator= | ( | const TrackParticle_v1 & | tp | ) |
Assignment operator. This can involve creating and copying an Auxilary store, and so should be used sparingly.
Definition at line 57 of file TrackParticle_v1.cxx.
|
finaloverridevirtual |
The full 4-momentum of the particle.
Implements xAOD::IParticle.
Definition at line 129 of file TrackParticle_v1.cxx.
xAOD::ParameterPosition xAOD::TrackParticle_v1::parameterPosition | ( | unsigned int | index | ) | const |
Return the ParameterPosition of the parameters at 'index'.
Definition at line 647 of file TrackParticle_v1.cxx.
Returns the parameter x momentum component, for 'index'.
Definition at line 612 of file TrackParticle_v1.cxx.
Returns the parameter y momentum component, for 'index'.
Definition at line 617 of file TrackParticle_v1.cxx.
Returns the parameter z momentum component, for 'index'.
Definition at line 622 of file TrackParticle_v1.cxx.
Returns the parameter x position, for 'index'.
Definition at line 597 of file TrackParticle_v1.cxx.
Returns the parameter y position, for 'index'.
Definition at line 602 of file TrackParticle_v1.cxx.
Returns the parameter z position, for 'index'.
Definition at line 607 of file TrackParticle_v1.cxx.
xAOD::ParticleHypothesis xAOD::TrackParticle_v1::particleHypothesis | ( | ) | const |
Returns the particle hypothesis used for Track fitting.
Definition at line 728 of file TrackParticle_v1.cxx.
std::bitset< xAOD::NumberOfTrackRecoInfo > xAOD::TrackParticle_v1::patternRecoInfo | ( | ) | const |
const Trk::Perigee & xAOD::TrackParticle_v1::perigeeParameters | ( | ) | const |
Returns the Trk::MeasuredPerigee track parameters.
These are defined as: \(\left(\begin{array}{c}d_0\\z_0\\\phi_0\\\theta\\q/p\\\end{array}\right)\)
Definition at line 485 of file TrackParticle_v1.cxx.
|
finaloverridevirtual |
The azimuthal angle ( \(\phi\)) of the particle (has range \(-\pi\) to \(+\pi\).)
Implements xAOD::IParticle.
float xAOD::TrackParticle_v1::phi0 | ( | ) | const |
Returns the \(\phi\) parameter, which has range \(-\pi\) to \(+\pi\).
Definition at line 158 of file TrackParticle_v1.cxx.
|
finaloverridevirtual |
The transverse momentum ( \(p_T\)) of the particle.
Implements xAOD::IParticle.
Definition at line 73 of file TrackParticle_v1.cxx.
float xAOD::TrackParticle_v1::qOverP | ( | ) | const |
Returns the \(q/p\) parameter.
float xAOD::TrackParticle_v1::radiusOfFirstHit | ( | ) | const |
Returns the radius of the first hit.
|
finaloverridevirtual |
The true rapidity (y) of the particle.
Implements xAOD::IParticle.
Definition at line 112 of file TrackParticle_v1.cxx.
|
inherited |
Release and free any private store associated with this object.
ExcBadPrivateStore
will be thrown if this object does not have a private store.
Definition at line 190 of file AuxElement.cxx.
|
privateinherited |
Out-of-line portion of destructor.
Delete a private store if we have one.
Definition at line 398 of file AuxElement.cxx.
void xAOD::TrackParticle_v1::resetCache | ( | ) |
void xAOD::TrackParticle_v1::setBeamlineTiltX | ( | float | tiltX | ) |
void xAOD::TrackParticle_v1::setBeamlineTiltY | ( | float | tiltY | ) |
|
inherited |
Synonym for setStore
with IConstAuxStore
.
store | The new store. |
void xAOD::TrackParticle_v1::setDefiningParameters | ( | float | d0, |
float | z0, | ||
float | phi0, | ||
float | theta, | ||
float | qOverP | ||
) |
void xAOD::TrackParticle_v1::setDefiningParameters | ( | float | d0, |
float | z0, | ||
float | phi0, | ||
float | theta, | ||
float | qOverP, | ||
float | time | ||
) |
Definition at line 202 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setDefiningParametersCovMatrix | ( | const ParametersCovMatrix_t & | cov | ) |
void xAOD::TrackParticle_v1::setDefiningParametersCovMatrixDiagVec | ( | const std::vector< float > & | vec | ) |
Set the defining parameters covariance matrix using a length 15 vector.
Set the diagonal elements of the defining parameters covariance matrix
Definition at line 394 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setDefiningParametersCovMatrixOffDiagVec | ( | const std::vector< float > & | vec | ) |
Set the off-diagonal elements of the defining parameters covariance matrix.
Definition at line 408 of file TrackParticle_v1.cxx.
Definition at line 460 of file TrackParticle_v1.cxx.
|
privateinherited |
Record that this element used to have private data.
void xAOD::TrackParticle_v1::setHasValidTime | ( | uint8_t | hasValidTime | ) |
|
privateinherited |
Record that this element currently has private data.
void xAOD::TrackParticle_v1::setHitPattern | ( | uint32_t | hitpattern | ) |
void xAOD::TrackParticle_v1::setIdentifierOfFirstHit | ( | uint64_t | id | ) |
Set the offline identifier of the first hit.
|
privateinherited |
Set the index/container for this element.
index | The index of this object within the container. |
container | The container holding this object. May be null if this object is being removed from a container. |
Usually this simply sets the index and container members of this object. However, in the case where this object has an associated private store, then we need to deal with releasing the store if the object is being added to a container, or making a new store if the object is being removed from a container.
|
privateinherited |
Set the index/container for this element.
index | The index of this object within the container. |
container | The container holding this object. May be null if this object is being removed from a container. |
This is called from setIndex
when we have a private store to deal with.
Definition at line 462 of file AuxElement.cxx.
|
inherited |
Synonym for setStore
with IAuxStore
.
store | The new store. |
|
privateinherited |
Record that this element does not have private data.
void xAOD::TrackParticle_v1::setNumberOfIBLOverflowsdEdx | ( | uint8_t | numoverflows | ) |
void xAOD::TrackParticle_v1::setNumberOfUsedHitsdEdx | ( | uint8_t | numhits | ) |
void xAOD::TrackParticle_v1::setParameterPosition | ( | unsigned int | index, |
xAOD::ParameterPosition | pos | ||
) |
Set the 'position' (i.e. where it is in ATLAS) of the parameter at 'index', using the ParameterPosition enum.
Definition at line 667 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setParticleHypothesis | ( | const ParticleHypothesis | hypo | ) |
void xAOD::TrackParticle_v1::setPatternRecognitionInfo | ( | const std::bitset< xAOD::NumberOfTrackRecoInfo > & | patternReco | ) |
Method setting the pattern recognition algorithm, using a bitset.
The bitset should be created using the TrackPatternRecoInfo enum as follows:
Definition at line 718 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setPatternRecognitionInfo | ( | uint64_t | patternReco | ) |
Method setting the pattern recognition algorithm, using a 64-bit int (which is faster than using a bitset).
The bit set should be created using the TrackPatternRecoInfo enum as follows:
Definition at line 713 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setRadiusOfFirstHit | ( | float | radius | ) |
Set the radius of the first hit.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
store | Link to the new store. |
Definition at line 249 of file AuxElement.cxx.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
Definition at line 221 of file AuxElement.cxx.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
Definition at line 237 of file AuxElement.cxx.
|
privateinherited |
Set the store associated with this object.
store | The new store. |
Helper for setStore
. Creates the AuxElementStandaloneData
object if needed and returns it.
store | The new store. |
Helper for setStore
. Creates the @x AuxElementStandaloneData object if needed and returns it.
Definition at line 418 of file AuxElement.cxx.
void xAOD::TrackParticle_v1::setSummaryValue | ( | float & | value, |
const SummaryType & | information | ||
) |
Set method for TrackSummary values.
Definition at line 758 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setSummaryValue | ( | uint8_t & | value, |
const SummaryType & | information | ||
) |
Set method for TrackSummary values.
Definition at line 752 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setTime | ( | float | time | ) |
void xAOD::TrackParticle_v1::setTimeResolution | ( | float | timeResolution | ) |
void xAOD::TrackParticle_v1::setTrackFitter | ( | const TrackFitter | fitter | ) |
Method for setting the fitter, using the TrackFitter enum.
Definition at line 693 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setTrackLink | ( | const ElementLink< TrackCollection > & | track | ) |
Set the link to the original track.
Definition at line 794 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setTrackParameterCovarianceMatrix | ( | unsigned int | index, |
std::vector< float > & | cov | ||
) |
Set the cov matrix of the parameter at 'index', using a vector of floats.
The vector \(\mathrm{v}(a1,a2,a3 ... a_{15})\) represents the lower diagonal, i.e. it gives a matrix of \(\left(\begin{array}{ccccc} a_1 & a_2 & a_4 & a_7 & a_{11} \\ a_2 & a_3 & a_5 & a_8 & a_{12} \\ a_4 & a_5 & a_6 & a_9 & a_{13} \\ a_7 & a_8 & a_9 & a_{10} & a_{14} \\ a_{11} & a_{12} & a_{13} & a_{14} & a_{15} \end{array}\right)\)
Definition at line 638 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setTrackParameters | ( | std::vector< std::vector< float > > & | parameters | ) |
Set the parameters via the passed vector of vectors.
The vector<float> should be of size 6: x,y,z,px,py,pz (charge is stored elsewhere)
Definition at line 567 of file TrackParticle_v1.cxx.
void xAOD::TrackParticle_v1::setTrackProperties | ( | const TrackProperties | properties | ) |
Methods setting the TrackProperties.
bool xAOD::TrackParticle_v1::summaryValue | ( | float & | value, |
const SummaryType & | information | ||
) | const |
Accessor for TrackSummary values.
If 'information' is stored in this TrackParticle and is of the correct templated type T, then the function fills 'value' and returns 'true', otherwise it returns 'false', and does not touch 'value'. See below for an example of how this is intended to be used.
[in] | information | The information being requested. This is not guaranteed to be stored in all TrackParticles. |
[out] | value | Only filled if this TrackParticle contains 'information', and the types match. |
Definition at line 744 of file TrackParticle_v1.cxx.
bool xAOD::TrackParticle_v1::summaryValue | ( | uint8_t & | value, |
const SummaryType & | information | ||
) | const |
Accessor for TrackSummary values.
If 'information' is stored in this TrackParticle and is of the correct templated type T, then the function fills 'value' and returns 'true', otherwise it returns 'false', and does not touch 'value'. See below for an example of how this is intended to be used.
[in] | information | The information being requested. This is not guaranteed to be stored in all TrackParticles. |
[out] | value | Only filled if this TrackParticle contains 'information', and the types match. |
Definition at line 736 of file TrackParticle_v1.cxx.
float xAOD::TrackParticle_v1::theta | ( | ) | const |
Returns the \(\theta\) parameter, which has range 0 to \(\pi\).
float xAOD::TrackParticle_v1::time | ( | ) | const |
Returns the time.
float xAOD::TrackParticle_v1::timeResolution | ( | ) | const |
Returns the time resolution.
const Trk::Track * xAOD::TrackParticle_v1::track | ( | ) | const |
Returns a pointer (which can be NULL) to the Trk::Track which was used to make this TrackParticle.
Definition at line 805 of file TrackParticle_v1.cxx.
xAOD::TrackFitter xAOD::TrackParticle_v1::trackFitter | ( | ) | const |
|
inherited |
Return true if index tracking is enabled for this object.
Always returns true. Included here to be consistent with AuxVectorBase when standalone objects may be used as template parameters.
const ElementLink< TrackCollection > & xAOD::TrackParticle_v1::trackLink | ( | ) | const |
Returns a link (which can be invalid) to the Trk::Track which was used to make this TrackParticle.
The function will return an invalid ElementLink in case nothing was set for it yet.
This is to avoid users having to always check both for the decoration being available, and the link being valid.
Definition at line 779 of file TrackParticle_v1.cxx.
xAOD::ParametersCovMatrix_t xAOD::TrackParticle_v1::trackParameterCovarianceMatrix | ( | unsigned int | index | ) | const |
Returns the TrackParticleCovMatrix_t (covariance matrix) at 'index', which corresponds to the parameters at the same index.
Definition at line 627 of file TrackParticle_v1.cxx.
TrackProperties xAOD::TrackParticle_v1::trackProperties | ( | ) | const |
Access methods for track properties, which returns 'true' if a logical AND of the parameter 'proprty' and the stored properties returns true.
i.e. you do:
|
finaloverridevirtual |
The type of the object as a simple enumeration.
Implements xAOD::IParticle.
Definition at line 146 of file TrackParticle_v1.cxx.
|
inherited |
Test to see if this object is currently using a private store.
Definition at line 260 of file AuxElement.cxx.
|
inherited |
Test to see if this object is currently using a standalone store.
Test to see if this object is currently using a private store.
Definition at line 270 of file AuxElement.cxx.
float xAOD::TrackParticle_v1::vx | ( | ) | const |
The x origin for the parameters.
float xAOD::TrackParticle_v1::vy | ( | ) | const |
The y origin for the parameters.
float xAOD::TrackParticle_v1::vz | ( | ) | const |
The z origin for the parameters.
float xAOD::TrackParticle_v1::z0 | ( | ) | const |
Returns the \(z_0\) parameter.
|
staticprivate |
Definition at line 349 of file TrackParticle_v1.h.
|
privateinherited |
The container of which this object is an element.
Should be null if this object is not within a container, except that it may also point at a private store.
Definition at line 324 of file AuxElement.h.
|
privateinherited |
The index of this element within its container.
Should be 0 if this object is not within a container.
Definition at line 128 of file IAuxElement.h.
|
private |
Cached MeasuredPerigee, built from this object.
Definition at line 368 of file TrackParticle_v1.h.
|
privateinherited |
Definition at line 137 of file IAuxElement.h.
|
staticconstexprinherited |
Mark that this type supports thinning operations.
See AthContainers/supportsThinning.h and AthenaPoolCnvSvc/T_AthenaPoolCnv.h. Helps guide which pool converter template will be used. If false, the default pool converter will be used rather than the aux store-specific one. Ordinary xAOD type should not touch this, but may be overridden in a derived class to handle certain special cases.
Definition at line 920 of file AuxElement.h.