ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::TrackParticle_v1 Class Reference

Class describing a TrackParticle. More...

#include <TrackParticle_v1.h>

Inheritance diagram for xAOD::TrackParticle_v1:
Collaboration diagram for xAOD::TrackParticle_v1:

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 Decorator = SG::Decorator<T, ALLOC>

Public Member Functions

 TrackParticle_v1 ()
 Default constructor.
 ~TrackParticle_v1 ()
 Destructor.
 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.
TrackParticle_v1operator= (const TrackParticle_v1 &tp)
 Assignment operator. This can involve creating and copying an Auxilary store, and so should be used sparingly.
bool summaryValue (uint8_t &value, const SummaryType &information) const
 Accessor for TrackSummary values.
bool summaryValue (float &value, const SummaryType &information) const
 Accessor for TrackSummary values.
void setSummaryValue (uint8_t &value, const SummaryType &information)
 Set method for TrackSummary values.
void setSummaryValue (float &value, const SummaryType &information)
 Set method for TrackSummary values.
void resetCache ()
 Reset the internal cache of the object.
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.
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.
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.
void assign (const AuxElement &other, bool warnUnlocked=false)
 Assignment.
const SG::AuxVectorDatacontainer () const
 Return the container holding this element.
SG::AuxVectorDatacontainer ()
 Return the container holding this element.
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.
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.
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.
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.
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.
void makePrivateStore ()
 Create a new (empty) private store for this object.
template<class U1>
void makePrivateStore (const U1 &other, bool warnUnlocked=false)
 Create a new private store for this object and copy aux data.
template<class U1>
void makePrivateStore (const U1 *other, bool warnUnlocked=false)
 Create a new private store for this object and copy aux data.
void releasePrivateStore ()
 Release and free any private store associated with this object.
void setStore (const SG::IConstAuxStore *store)
 Set the store associated with this object.
void setStore (SG::IAuxStore *store)
 Set the store associated with this object.
void setStore (const DataLink< SG::IConstAuxStore > &store)
 Set the store associated with this object.
void setConstStore (const SG::IConstAuxStore *store)
 Synonym for setStore with IConstAuxStore.
void setNonConstStore (SG::IAuxStore *store)
 Synonym for setStore with IAuxStore.
bool usingPrivateStore () const
 Test to see if this object is currently using a private store.
bool usingStandaloneStore () const
 Test to see if this object is currently using a standalone store.
void clearCache ()
 Clear the cached aux data pointers.
const SG::auxid_set_tgetAuxIDs () const
 Return a set of identifiers for existing data items for this object.
const SG::auxid_set_tgetDecorIDs () const
 Return a set of identifiers for decorations for this object.
bool hasStore () const
 Return true if this object has an associated store.
bool hasNonConstStore () const
 Return true if this object has an associated non-const store.
bool clearDecorations () const
 Clear all decorations.
bool trackIndices () const
 Return true if index tracking is enabled for this object.
size_t index () const
 Return the index of this element within its container.

Static Public Attributes

static constexpr bool supportsThinning = true
 Mark that this type supports thinning operations.

Protected Types

template<class T, class ALLOC = AuxAllocator_t<T>>
using Accessor

Protected Member Functions

const SG::IConstAuxStoregetConstStore () const
 Return the current store, as a const interface.
SG::IAuxStoregetStore () const
 Return the current store, as a non-const interface.
bool noPrivateData () const
 True if this element has no private data.
bool havePrivateData () const
 True if this element currently has private data.
bool hadPrivateData () const
 True if this element had private data before it was added to its current container.

Private Types

using covMatrixIndex = TrackingDetails::covMatrixIndex
typedef std::vector< std::pair< covMatrixIndex, covMatrixIndex > > covMatrixIndexPairVec
enum class  PrivateStoreState : uint8_t { NO_PRIVATE = 0 , HAVE_PRIVATE = 1 , HAD_PRIVATE = 2 }
 The current private data state. More...

Private Member Functions

void releasePrivateStoreForDtor ()
 Out-of-line portion of destructor.
void setIndex (size_t index, SG::AuxVectorData *container)
 Set the index/container for this element.
bool setIndexPrivate (size_t index, SG::AuxVectorData *container)
 Set the index/container for this element.
void makePrivateStore1 (const void *other, bool warnUnlocked)
 Create a new private store for this object and copy aux data.
void makePrivateStore1 (const AuxElement *other, bool warnUnlocked)
 Create a new private store for this object and copy aux data.
AuxElementStandaloneData * setStore1 (const SG::IConstAuxStore *store)
 Set the store associated with this object.
void clearAux ()
 Clear all aux data associated with this element.
void copyAux (const ConstAuxElement &other, bool warnUnlocked=false)
 Copy aux data from another object.
void setNoPrivateData ()
 Record that this element does not have private data.
void setHavePrivateData ()
 Record that this element currently has private data.
void setHadPrivateData ()
 Record that this element used to have private data.

Static Private Member Functions

static const covMatrixIndexPairVeccovMatrixComprIndexPairs ()
static void clearAuxHelper (AuxVectorData &container, size_t index)
 Clear all aux data associated with an element.
static void copyAuxHelper (AuxVectorData &container, size_t index, const ConstAuxElement &other, bool warnUnlocked)
 Copy aux data from another object.

Private Attributes

CxxUtils::CachedValue< Trk::Perigeem_perigeeParameters
 Cached MeasuredPerigee, built from this object.
const SG::AuxVectorDatam_container
 The container of which this object is an element.
size_t m_index
 The index of this element within its container.
PrivateStoreState m_privateStoreState

Static Private Attributes

static const std::size_t COVMATRIX_OFFDIAG_VEC_COMPR_SIZE = TrackingDetails::COVMATRIX_OFFDIAG_VEC_COMPR_SIZE

IParticle functions

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 override final
 The transverse momentum ( \(p_T\)) of the particle.
virtual double eta () const override final
 The pseudorapidity ( \(\eta\)) of the particle.
virtual double phi () const override final
 The azimuthal angle ( \(\phi\)) of the particle (has range \(-\pi\) to \(+\pi\).)
virtual double m () const override final
 The invariant mass of the particle..
virtual double e () const override final
 The total energy of the particle.
virtual double rapidity () const override final
 The true rapidity (y) of the particle.
virtual FourMom_t p4 () const override final
 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 override final
 The type of the object as a simple enumeration.

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.
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 qOverP () const
 Returns the \(q/p\) parameter.
float time () const
 Returns the time.
float timeResolution () const
 Returns the time resolution.
uint8_t hasValidTime () const
 Returns whether or not the track has a valid time.
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.
ParametersCovMatrixFilled_t definingParametersCovMatrixFilled () const
 Returns a 5x5 matrix describing which elements of the covariance matrix are known.
const std::vector< float > & definingParametersCovMatrixDiagVec () const
 Returns the diagonal elements of the defining parameters covariance matrix.
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))
std::vector< floatdefiningParametersCovMatrixVec () const
 Returns the length 6 vector containing the elements of defining parameters covariance matrix.
bool definingParametersCovMatrixOffDiagCompr () const
void setDefiningParameters (float d0, float z0, float phi0, float theta, float qOverP)
 Set the defining parameters.
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.
void setDefiningParametersCovMatrixDiagVec (const std::vector< float > &vec)
 Set the defining parameters covariance matrix using a length 15 vector.
void setDefiningParametersCovMatrixOffDiagVec (const std::vector< float > &vec)
 Set the off-diagonal elements of the defining parameters covariance matrix.
void setDefiningParametersCovMatrixVec (const std::vector< float > &cov)
void compressDefiningParametersCovMatrixOffDiag ()
 Delete some off-diagonal elements for compression.
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::PerigeeperigeeParameters () const
 Returns the Trk::MeasuredPerigee track parameters.

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
unsigned int index=0;
if (myTP.indexOfParameterAtPosition(index, xAOD::FirstMeasurement)){
CurvilinearParameters_t parameters = myTP.trackParameters(index);
}
Definition index.py:1
@ FirstMeasurement
Parameter defined at the position of the 1st measurement.
size_t numberOfParameters () const
 Returns the number of additional parameters stored in the TrackParticle.
const CurvilinearParameters_t trackParameters (unsigned int index) const
 Returns the track parameter vector at 'index'.
float parameterX (unsigned int index) const
 Returns the parameter x position, for 'index'.
float parameterY (unsigned int index) const
 Returns the parameter y position, for 'index'.
float parameterZ (unsigned int index) const
 Returns the parameter z position, for 'index'.
float parameterPX (unsigned int index) const
 Returns the parameter x momentum component, for 'index'.
float parameterPY (unsigned int index) const
 Returns the parameter y momentum component, for 'index'.
float parameterPZ (unsigned int index) const
 Returns the parameter z momentum component, for 'index'.
void setTrackParameters (std::vector< std::vector< float > > &parameters)
 Set the parameters via the passed vector of vectors.
ParametersCovMatrix_t trackParameterCovarianceMatrix (unsigned int index) const
 Returns the TrackParticleCovMatrix_t (covariance matrix) at 'index', which corresponds to the parameters at the same index.
void setTrackParameterCovarianceMatrix (unsigned int index, std::vector< float > &cov)
 Set the cov matrix of the parameter at 'index', using a vector of floats.
xAOD::ParameterPosition parameterPosition (unsigned int index) const
 Return the ParameterPosition of the parameters at 'index'.
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.
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.
const Trk::CurvilinearParameters curvilinearParameters (unsigned int index) const
 Returns a curvilinear representation of the parameters at 'index'.
float radiusOfFirstHit () const
 Returns the radius of the first hit.
void setRadiusOfFirstHit (float radius)
 Set the radius of the first hit.
uint64_t identifierOfFirstHit () const
 Returns the offline identifier of the first hit.
void setIdentifierOfFirstHit (uint64_t id)
 Set the offline identifier of the first hit.
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

Returns some information about quality of the track fit.

float chiSquared () const
 Returns the \( \chi^2 \) of the overall track fit.
float numberDoF () const
 Returns the number of degrees of freedom of the overall track or vertex fit as float.
void setFitQuality (float chiSquared, float numberDoF)
 Set the 'Fit Quality' information.

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.
void setPatternRecognitionInfo (const std::bitset< xAOD::NumberOfTrackRecoInfo > &patternReco)
 Method setting the pattern recognition algorithm, using a bitset.
void setPatternRecognitionInfo (uint64_t patternReco)
 Method setting the pattern recognition algorithm, using a 64-bit int (which is faster than using a bitset).
void setTrackFitter (const TrackFitter fitter)
 Method for setting the fitter, using the TrackFitter enum.
void setParticleHypothesis (const ParticleHypothesis hypo)
 Method for setting the particle type, using the ParticleHypothesis enum.
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.
std::bitset< NumberOfTrackRecoInfopatternRecoInfo () const
 Access method for pattern recognition algorithm.
ParticleHypothesis particleHypothesis () const
 Returns the particle hypothesis used for Track fitting.
TrackFitter trackFitter () const
 Returns the fitter.

Links

const ElementLink< TrackCollection > & trackLink () const
 Returns a link (which can be invalid) to the Trk::Track which was used to make this TrackParticle.
void setTrackLink (const ElementLink< TrackCollection > &track)
 Set the link to the original track.
const Trk::Tracktrack () const
 Returns a pointer (which can be NULL) to the Trk::Track which was used to make this TrackParticle.

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.

Detailed Description

Member Typedef Documentation

◆ Accessor

template<class T, class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::Accessor
protectedinherited

Definition at line 572 of file AuxElement.h.

◆ ConstAccessor

template<class T, class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::ConstAccessor = SG::ConstAccessor<T, ALLOC>
inherited

Definition at line 569 of file AuxElement.h.

◆ covMatrixIndex

◆ covMatrixIndexPairVec

Definition at line 351 of file TrackParticle_v1.h.

◆ Decorator

template<class T, class ALLOC = AuxAllocator_t<T>>
using SG::AuxElement::Decorator = SG::Decorator<T, ALLOC>
inherited

Definition at line 575 of file AuxElement.h.

◆ FourMom_t

Definition of the 4-momentum type.

Definition at line 73 of file TrackParticle_v1.h.

◆ GenVecFourMom_t

typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double> > xAOD::TrackParticle_v1::GenVecFourMom_t

Base 4 Momentum type for TrackParticle.

Definition at line 79 of file TrackParticle_v1.h.

◆ TypelessConstAccessor

using SG::AuxElement::TypelessConstAccessor = ConstAuxElement::TypelessConstAccessor
inherited

Definition at line 566 of file AuxElement.h.

Member Enumeration Documentation

◆ PrivateStoreState

enum class SG::IAuxElement::PrivateStoreState : uint8_t
strongprivateinherited

The current private data state.

Enumerator
NO_PRIVATE 
HAVE_PRIVATE 
HAD_PRIVATE 

Definition at line 131 of file IAuxElement.h.

132 {
133 NO_PRIVATE = 0,
134 HAVE_PRIVATE = 1,
135 HAD_PRIVATE = 2,
136 };

Constructor & Destructor Documentation

◆ TrackParticle_v1() [1/2]

xAOD::TrackParticle_v1::TrackParticle_v1 ( )

Default constructor.

Definition at line 47 of file TrackParticle_v1.cxx.

48 : IParticle() {
49 // perigeeParameters cache initialized to be empty (default constructor)
50 }
IParticle()=default

◆ ~TrackParticle_v1()

xAOD::TrackParticle_v1::~TrackParticle_v1 ( )

Destructor.

Definition at line 73 of file TrackParticle_v1.cxx.

73{}

◆ TrackParticle_v1() [2/2]

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 52 of file TrackParticle_v1.cxx.

53 : IParticle( tp ) {
54 makePrivateStore( tp );
55 // perigeeParameters cache initialized to be empty (default constructor)
56 // assume that this copy will create new cache as needed
57 }
void makePrivateStore()
Create a new (empty) private store for this object.

Member Function Documentation

◆ assign()

void SG::AuxElement::assign ( const AuxElement & other,
bool warnUnlocked = false )
inherited

Assignment.

Parameters
otherThe object from which we're assigning.
warnUnlockedIf true, then warn when we skip unlocked decorations.

We don't copy container/index, as assignment doesn't change where this object is. However, if we have aux data, then we copy aux data if we're copying from an object that also has it; otherwise, if we're copying from an object with no aux data, then we clear ours.

◆ auxdata() [1/4]

template<class T, class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type SG::AuxElement::auxdata ( const std::string & name)
inherited

Fetch an aux data variable, as a non-const reference.

Parameters
nameName 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.

◆ auxdata() [2/4]

template<class T, class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type SG::AuxElement::auxdata ( const std::string & name) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName 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.

◆ auxdata() [3/4]

template<class T>
XAOD_AUXDATA_DEPRECATED T & xAOD::IParticle::auxdata ( const std::string & name,
const std::string & clsname = "" )
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.

Parameters
nameName of the aux variable
clsnameThe 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
101 return SG::Accessor< T >(name, clsname)(*this);
102 }

◆ auxdata() [4/4]

template<class T>
XAOD_AUXDATA_DEPRECATED const T & xAOD::IParticle::auxdata ( const std::string & name,
const std::string & clsname = "" ) const
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.

Parameters
nameName of the aux variable
clsnameThe 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
121 return SG::ConstAccessor< T >( name, clsname )( *this );
122 }

◆ auxdataConst() [1/2]

template<class T, class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type SG::AuxElement::auxdataConst ( const std::string & name) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName 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.

◆ auxdataConst() [2/2]

template<class T, class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type SG::AuxElement::auxdataConst ( const std::string & name,
const std::string & clsname ) const
inherited

Fetch an aux data variable, as a const reference.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ auxdecor() [1/2]

template<class T, class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type SG::AuxElement::auxdecor ( const std::string & name) const
inherited

Fetch an aux decoration, as a non-const reference.

Parameters
nameName 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.

◆ auxdecor() [2/2]

template<class T, class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type SG::AuxElement::auxdecor ( const std::string & name,
const std::string & clsname ) const
inherited

Fetch an aux decoration, as a non-const reference.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ beamlineTiltX()

float xAOD::TrackParticle_v1::beamlineTiltX ( ) const

◆ beamlineTiltY()

float xAOD::TrackParticle_v1::beamlineTiltY ( ) const

◆ charge()

float xAOD::TrackParticle_v1::charge ( ) const

Returns the charge.

Definition at line 143 of file TrackParticle_v1.cxx.

143 {
145 }
float qOverP() const
Returns the parameter.
float charge(float qOverP)

◆ chiSquared()

float xAOD::TrackParticle_v1::chiSquared ( ) const

Returns the \( \chi^2 \) of the overall track fit.

◆ clearAux()

void SG::AuxElement::clearAux ( )
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 580 of file AuxElement.cxx.

581{
582 if (!m_container) return;
584}
static void clearAuxHelper(AuxVectorData &container, size_t index)
Clear all aux data associated with an element.
const SG::AuxVectorData * container() const
Return the container holding this element.
size_t index() const
Return the index of this element within its container.
const SG::AuxVectorData * m_container
The container of which this object is an element.
Definition AuxElement.h:335

◆ clearAuxHelper()

void SG::AuxElement::clearAuxHelper ( AuxVectorData & container,
size_t index )
staticprivateinherited

Clear all aux data associated with an element.

Parameters
containerContainer of the element.
indexIndex of this element within the container.

If the associated aux data is const, this throws ExcConstAuxData.

Definition at line 639 of file AuxElement.cxx.

640{
641 if (!container.hasStore()) return;
642 if (!container.hasNonConstStore()) {
643 throw SG::ExcConstAuxData ("clearAux", SG::null_auxid);
644 }
645
646 SG::AuxTypeRegistry& r = SG::AuxTypeRegistry::instance();
647 for (SG::auxid_t auxid : container.getWritableAuxIDs()) {
648 r.clear (auxid, container, index, 1);
649 }
650}
static AuxTypeRegistry & instance()
Return the singleton registry instance.
int r
Definition globals.cxx:22
static const auxid_t null_auxid
To signal no aux data item.
Definition AuxTypes.h:30
size_t auxid_t
Identifier for a particular aux data item.
Definition AuxTypes.h:27

◆ clearCache()

void SG::AuxElement::clearCache ( )
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 339 of file AuxElement.cxx.

340{
341 if (container())
343}
void clearCache()
Clear the cached aux data pointers.

◆ clearDecorations()

bool SG::AuxElement::clearDecorations ( ) const
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 428 of file AuxElement.cxx.

429{
430 if (havePrivateData())
431 return m_container->clearDecorations();
432 return false;
433}
bool havePrivateData() const
True if this element currently has private data.

◆ compressDefiningParametersCovMatrixOffDiag()

void xAOD::TrackParticle_v1::compressDefiningParametersCovMatrixOffDiag ( )

Delete some off-diagonal elements for compression.

Definition at line 366 of file TrackParticle_v1.cxx.

366 {
367
368 ParametersCovMatrix_t cov = definingParametersCovMatrix();
369 std::vector< float > offDiagVecCompr;
370 offDiagVecCompr.resize(COVMATRIX_OFFDIAG_VEC_COMPR_SIZE);
371
372 const covMatrixIndexPairVec& vecPairIndex = covMatrixComprIndexPairs();
373
374 for(unsigned int k=0; k<COVMATRIX_OFFDIAG_VEC_COMPR_SIZE; ++k){
375 std::pair<covMatrixIndex,covMatrixIndex> pairIndex = vecPairIndex[k];
376 covMatrixIndex i = pairIndex.first;
377 covMatrixIndex j = pairIndex.second;
378 float offDiagElement = cov(i,i)>0 && cov(j,j)>0 ? cov(i,j)/sqrt(cov(i,i)*cov(j,j)) : 0;
379 offDiagVecCompr[k] = offDiagElement;
380 }
381
382 accCovMatrixOffDiag( *this ) = offDiagVecCompr;
383 return;
384
385 }
TrackingDetails::covMatrixIndex covMatrixIndex
static const covMatrixIndexPairVec & covMatrixComprIndexPairs()
const ParametersCovMatrix_t definingParametersCovMatrix() const
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.
static const std::size_t COVMATRIX_OFFDIAG_VEC_COMPR_SIZE
std::vector< std::pair< covMatrixIndex, covMatrixIndex > > covMatrixIndexPairVec
static const SG::AuxElement::Accessor< std::vector< float > > accCovMatrixOffDiag("definingParametersCovMatrixOffDiag")

◆ container() [1/2]

SG::AuxVectorData * SG::AuxElement::container ( )
inherited

Return the container holding this element.

◆ container() [2/2]

const SG::AuxVectorData * SG::AuxElement::container ( ) const
inherited

Return the container holding this element.

◆ copyAux()

void SG::AuxElement::copyAux ( const ConstAuxElement & other,
bool warnUnlocked = false )
privateinherited

Copy aux data from another object.

Parameters
otherThe object from which to copy.
warnUnlockedIf true, then warn when we skip unlocked decorations.

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 600 of file AuxElement.cxx.

602{
603 if (!m_container) return;
604 copyAuxHelper (*container(), index(), other, warnUnlocked);
605}
static void copyAuxHelper(AuxVectorData &container, size_t index, const ConstAuxElement &other, bool warnUnlocked)
Copy aux data from another object.

◆ copyAuxHelper()

void SG::AuxElement::copyAuxHelper ( AuxVectorData & container,
size_t index,
const ConstAuxElement & other,
bool warnUnlocked )
staticprivateinherited

Copy aux data from another object.

Parameters
containerContainer of the element.
indexIndex of this element within the container.
otherThe object from which to copy.
warnUnlockedIf true, then warn when we skip unlocked decorations.

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 667 of file AuxElement.cxx.

671{
672 if (!container.hasStore()) return;
673 if (!container.hasNonConstStore())
674 throw SG::ExcConstAuxData ("copyAux");
675
676 const SG::AuxVectorData* ocont = other.container();
677
678 if (!ocont || !ocont->hasStore()) {
680 return;
681 }
682
683#ifndef XAOD_STANDALONE
684 const SG::auxid_set_t& other_decors = ocont->getDecorIDs();
685#endif
686 SG::auxid_set_t other_ids = ocont->getAuxIDs();
687
688 size_t oindex = other.index();
689 SG::AuxTypeRegistry& r = SG::AuxTypeRegistry::instance();
690
691 for (SG::auxid_t auxid : other_ids) {
692#ifndef XAOD_STANDALONE
693 if (other_decors.test (auxid)) {
694 // Don't copy decorations --- another thread may be modifying them.
695 other_ids.reset (auxid);
696 // Warn if we skip a decoration (except for mcEventWeights,
697 // for which this is expected).
698 if (warnUnlocked && r.getName(auxid) != "mcEventWeights") {
699 std::ostringstream ss;
700 ss << "skipped unlocked decoration " << r.getName(auxid)
701 << " (" << auxid << ")";
702 ATHCONTAINERS_WARNING("copyAux", ss.str());
703 }
704 }
705 else
706#endif
707 if (!r.isLinked (auxid)) {
708 r.copy (auxid, container, index, *ocont, oindex, 1);
709 }
710 }
711
712 for (SG::auxid_t auxid : container.getWritableAuxIDs()) {
713 if (!other_ids.test (auxid)) {
714 r.clear (auxid, container, index, 1);
715 }
716 }
717}
static Double_t ss
bool test(bit_t bit) const
Test to see if a bit is set.
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items in store associated with this object.
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
bool hasStore() const
Return true if this object has an associated store.
#define ATHCONTAINERS_WARNING(ctx, msg)
Definition error.h:57

◆ covMatrixComprIndexPairs()

const TrackParticle_v1::covMatrixIndexPairVec & xAOD::TrackParticle_v1::covMatrixComprIndexPairs ( )
staticprivate

Definition at line 694 of file TrackParticle_v1.cxx.

694 {
697 return result;
698 }
constexpr std::array< std::pair< covMatrixIndex, covMatrixIndex >, COVMATRIX_OFFDIAG_VEC_COMPR_SIZE > covMatrixComprIndexPairs

◆ curvilinearParameters()

const Trk::CurvilinearParameters xAOD::TrackParticle_v1::curvilinearParameters ( unsigned int index) const

Returns a curvilinear representation of the parameters at 'index'.

Note
This is only available in Athena.

Definition at line 603 of file TrackParticle_v1.cxx.

603 {
604
605 static const Accessor< std::vector<float> > acc( "trackParameterCovarianceMatrices" );
606 unsigned int offset = index*15;
607 // copy the correct values into the temp matrix
608 ParametersCovMatrix_t cov;
609 auto it = acc(*this).begin()+offset;
610 Amg::expand(it,it+15,cov);
611 // retrieve the parameters to build the curvilinear frame
614 Trk::CurvilinearParameters param(pos,mom,charge(),std::move(cov));
615
616 return param;
617 }
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
size_t index() const
Return the index of this element within its container.
float parameterPX(unsigned int index) const
Returns the parameter x momentum component, for 'index'.
float parameterX(unsigned int index) const
Returns the parameter x position, for 'index'.
float parameterPY(unsigned int index) const
Returns the parameter y momentum component, for 'index'.
float parameterZ(unsigned int index) const
Returns the parameter z position, for 'index'.
float parameterY(unsigned int index) const
Returns the parameter y position, for 'index'.
float charge() const
Returns the charge.
float parameterPZ(unsigned int index) const
Returns the parameter z momentum component, for 'index'.
void expand(std::vector< float >::const_iterator it, std::vector< float >::const_iterator, AmgSymMatrix(N) &covMatrix)
Eigen::Matrix< double, 3, 1 > Vector3D
CurvilinearParametersT< TrackParametersDim, Charged, PlaneSurface > CurvilinearParameters
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.

◆ d0()

float xAOD::TrackParticle_v1::d0 ( ) const

Returns the \(d_0\) parameter.

◆ definingParameters()

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 163 of file TrackParticle_v1.cxx.

163 {
164 DefiningParameters_t tmp;
165 tmp << d0() , z0() , phi0() , theta() , qOverP();
166 return tmp;
167 }
float z0() const
Returns the parameter.
float theta() const
Returns the parameter, which has range 0 to .
float d0() const
Returns the parameter.
float phi0() const
Returns the parameter, which has range to .

◆ definingParametersCovMatrix()

const xAOD::ParametersCovMatrix_t xAOD::TrackParticle_v1::definingParametersCovMatrix ( ) const

Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.

Definition at line 238 of file TrackParticle_v1.cxx.

238 {
239
240 std::span<const float> covMatrixDiag;
241 if( accCovMatrixDiag.isAvailable( *this ))
242 covMatrixDiag = std::span<const float>( accCovMatrixDiag( *this ) );
243 std::span<const float> covMatrixOffDiag;
244 if( accCovMatrixOffDiag.isAvailable( *this ))
245 covMatrixOffDiag = std::span<const float>( accCovMatrixOffDiag( *this ) );
246 bool valid = true;
247 auto result = TrackingDetails::definingParametersCovMatrix( covMatrixDiag, covMatrixOffDiag, valid );
249 return result;
250 }
list valid
Definition calibdata.py:44
void covarianceUnsetHook()
Function that would be possible to use to debug what client is trying to access covariance matrix fro...
xAOD::ParametersCovMatrix_t definingParametersCovMatrix(std::span< const float > covMatrixDiag, std::span< const float > covMatrixOffDiag, bool &valid)
static const SG::AuxElement::Accessor< std::vector< float > > accCovMatrixDiag("definingParametersCovMatrixDiag")

◆ definingParametersCovMatrixDiagVec()

const std::vector< float > & xAOD::TrackParticle_v1::definingParametersCovMatrixDiagVec ( ) const

Returns the diagonal elements of the defining parameters covariance matrix.

Definition at line 304 of file TrackParticle_v1.cxx.

304 {
305
306 return accCovMatrixDiag( *this );
307 }

◆ definingParametersCovMatrixFilled()

ParametersCovMatrixFilled_t xAOD::TrackParticle_v1::definingParametersCovMatrixFilled ( ) const

Returns a 5x5 matrix describing which elements of the covariance matrix are known.

Definition at line 252 of file TrackParticle_v1.cxx.

252 {
253
254 // Create the result matrix.
256 result.setZero();
257
258 // Check if the diagonal elements are available.
259 if( accCovMatrixDiag.isAvailable( *this ) &&
260 ( static_cast< int >( accCovMatrixDiag( *this ).size() ) == result.rows() ) ) {
261
262 result.setIdentity();
263 }
264
265 bool offDiagCompr = definingParametersCovMatrixOffDiagCompr();
266
267 if(!offDiagCompr){
268
269 // Check if the off-diagonal elements are available.
270 if( accCovMatrixOffDiag.isAvailable( *this ) &&
271 ( static_cast< int >( accCovMatrixOffDiag( *this ).size() ) ==
272 ( ( result.rows() * ( result.rows() - 1 ) ) / 2 ) ) ) {
273
274 for( int i = 1; i < result.rows(); ++i ) {
275 for( int j = 0; j < i; ++j ) {
276 result.fillSymmetric( i, j, true );
277 }
278 }
279 }
280
281 }
282
283 else{
284
285 if( accCovMatrixOffDiag.isAvailable( *this ) &&
286 ( static_cast< int >( accCovMatrixOffDiag( *this ).size() ) == COVMATRIX_OFFDIAG_VEC_COMPR_SIZE ) ){
287
288 const covMatrixIndexPairVec& vecPairIndex = covMatrixComprIndexPairs();
289
290 for(const auto& pairIndex : vecPairIndex){
291 covMatrixIndex i = pairIndex.first;
292 covMatrixIndex j = pairIndex.second;
293 result.fillSymmetric( i, j, true );
294 }
295
296 }
297
298 }
299
300 // Return the object.
301 return result;
302 }
bool definingParametersCovMatrixOffDiagCompr() const
Eigen::Matrix< bool, 5, 5, 0, 5, 5 > ParametersCovMatrixFilled_t

◆ definingParametersCovMatrixOffDiagCompr()

bool xAOD::TrackParticle_v1::definingParametersCovMatrixOffDiagCompr ( ) const

Definition at line 358 of file TrackParticle_v1.cxx.

358 {
359
360 std::span<const float> covMatrixOffDiag;
361 if( accCovMatrixOffDiag.isAvailable( *this ))
362 covMatrixOffDiag = std::span<const float>( accCovMatrixOffDiag( *this ) );
364 }
bool definingParametersCovMatrixOffDiagCompr(std::span< const float > covMatrixOffDiag)

◆ definingParametersCovMatrixOffDiagVec()

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 309 of file TrackParticle_v1.cxx.

309 {
310
311 return accCovMatrixOffDiag( *this );
312 }

◆ definingParametersCovMatrixVec()

std::vector< float > xAOD::TrackParticle_v1::definingParametersCovMatrixVec ( ) const

Returns the length 6 vector containing the elements of defining parameters covariance matrix.

Definition at line 314 of file TrackParticle_v1.cxx.

314 {
315
316 std::vector< float > vec;
318 Amg::compress(cov,vec);
319 return vec;
320
321 }
std::vector< size_t > vec
#define AmgSymMatrix(dim)

◆ e()

double xAOD::TrackParticle_v1::e ( ) const
finaloverridevirtual

The total energy of the particle.

Implements xAOD::IParticle.

Definition at line 111 of file TrackParticle_v1.cxx.

111 {
112 return genvecP4().E();
113 }
GenVecFourMom_t genvecP4() const
The full 4-momentum of the particle : GenVector form.

◆ eta()

double xAOD::TrackParticle_v1::eta ( ) const
finaloverridevirtual

The pseudorapidity ( \(\eta\)) of the particle.

Implements xAOD::IParticle.

Definition at line 79 of file TrackParticle_v1.cxx.

79 {
80 return genvecP4().Eta();
81 }

◆ genvecP4()

TrackParticle_v1::GenVecFourMom_t xAOD::TrackParticle_v1::genvecP4 ( ) const

The full 4-momentum of the particle : GenVector form.

Definition at line 118 of file TrackParticle_v1.cxx.

118 {
119 return TrackingDetails::genvecP4(qOverP(), theta(), phi(), m());
120 }
virtual double m() const override final
The invariant mass of the particle..
GenVecFourMom_t genvecP4(float qOverP, float thetaT, float phiT, double m)

◆ getAuxIDs()

const SG::auxid_set_t & SG::AuxElement::getAuxIDs ( ) const
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 355 of file AuxElement.cxx.

356{
357#ifdef ATHCONTAINERS_R21_COMPAT
358 if (havePrivateData())
359 return m_container->getConstStore()->getAuxIDs();
360 if (container())
361 return container()->getAuxIDs();
362 static const SG::auxid_set_t null_set;
363 return null_set;
364#else
366#endif
367}
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.

◆ getConstStore()

const SG::IConstAuxStore * SG::AuxElement::getConstStore ( ) const
protectedinherited

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 869 of file AuxElement.cxx.

305{
306 if (havePrivateData()) {
307 return m_container->getConstStore();
308 }
309 return 0;
310}

◆ getDecorIDs()

const SG::auxid_set_t & SG::AuxElement::getDecorIDs ( ) const
inherited

Return a set of identifiers for decorations 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 378 of file AuxElement.cxx.

379{
380#ifdef ATHCONTAINERS_R21_COMPAT
381 if (havePrivateData())
382 return m_container->getConstStore()->getDecorIDs();
383 if (container())
384 return container()->getDecorIDs();
385 static const SG::auxid_set_t null_set;
386 return null_set;
387#else
389#endif
390}
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.

◆ getStore()

SG::IAuxStore * SG::AuxElement::getStore ( ) const
protectedinherited

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 878 of file AuxElement.cxx.

320{
321 if (havePrivateData()) {
322#ifdef ATHCONTAINERS_R21_COMPAT
323 SG::AuxVectorData* container_nc ATLAS_THREAD_SAFE = m_container;
324#else
325 SG::AuxVectorData* container_nc ATLAS_THREAD_SAFE = const_cast<SG::AuxVectorData*>(container());
326#endif
327 return container_nc->getStore();
328 }
329 return 0;
330}
#define ATLAS_THREAD_SAFE

◆ hadPrivateData()

bool SG::IAuxElement::hadPrivateData ( ) const
protectedinherited

True if this element had private data before it was added to its current container.

◆ hasNonConstStore()

bool SG::AuxElement::hasNonConstStore ( ) const
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 411 of file AuxElement.cxx.

412{
413 if (havePrivateData())
414 return m_container->hasNonConstStore();
415 return false;
416}

◆ hasStore()

bool SG::AuxElement::hasStore ( ) const
inherited

Return true if this object has an associated store.

This will be true for either a private or standalone store.

Definition at line 398 of file AuxElement.cxx.

399{
400 if (havePrivateData())
401 return m_container->hasStore();
402 return false;
403}

◆ hasValidTime()

uint8_t xAOD::TrackParticle_v1::hasValidTime ( ) const

Returns whether or not the track has a valid time.

◆ havePrivateData()

bool SG::IAuxElement::havePrivateData ( ) const
protectedinherited

True if this element currently has private data.

◆ hitPattern()

uint32_t xAOD::TrackParticle_v1::hitPattern ( ) const

◆ identifierOfFirstHit()

uint64_t xAOD::TrackParticle_v1::identifierOfFirstHit ( ) const

Returns the offline identifier of the first hit.

◆ index()

size_t SG::IAuxElement::index ( ) const
inherited

Return the index of this element within its container.

Inherited from IAuxElement.

◆ indexOfParameterAtPosition()

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.

Parameters
[in]indexFilled with the index of the track parameters at 'position' - untouched otherwise.
[out]positionThe location in the detector of the required track parameters.
Returns
Returns 'true' if the TrackParticle parameters at 'position', returns False otherwise.

Definition at line 583 of file TrackParticle_v1.cxx.

584 {
585 size_t maxParameters = numberOfParameters();
586 bool foundParameters=false;
587 for (size_t i=0; i<maxParameters; ++i){
588 if (parameterPosition(i)==position){
589 foundParameters=true;
590 index=i;
591 break;
592 }
593 }
594 return foundParameters;
595 }
xAOD::ParameterPosition parameterPosition(unsigned int index) const
Return the ParameterPosition of the parameters at 'index'.
size_t numberOfParameters() const
Returns the number of additional parameters stored in the TrackParticle.

◆ isAvailable()

template<class T>
XAOD_AUXDATA_DEPRECATED bool xAOD::IParticle::isAvailable ( const std::string & name,
const std::string & clsname = "" ) const
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.

Parameters
nameName of the auxiliary variable
clsnameThe 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
138 return SG::ConstAccessor< T >(name, clsname).isAvailable(*this);
139 }

◆ isAvailableWritable() [1/2]

template<class T, class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool SG::AuxElement::isAvailableWritable ( const std::string & name,
const std::string & clsname = "" )
inherited

Check if an aux variable is available for writing.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ isAvailableWritable() [2/2]

template<class T>
XAOD_AUXDATA_DEPRECATED bool xAOD::IParticle::isAvailableWritable ( const std::string & name,
const std::string & clsname = "" ) const
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.

Parameters
nameName of the auxiliary variable
clsnameThe 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
155 return SG::Accessor< T >(name, clsname).isAvailableWritable(*this);
156 }

◆ isAvailableWritableAsDecoration()

template<class T, class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool SG::AuxElement::isAvailableWritableAsDecoration ( const std::string & name,
const std::string & clsname = "" ) const
inherited

Check if an aux variable is available for writing as a decoration.

Parameters
nameName of the aux variable.
clsnameThe 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.

◆ m()

double xAOD::TrackParticle_v1::m ( ) const
finaloverridevirtual

The invariant mass of the particle..

Implements xAOD::IParticle.

Definition at line 85 of file TrackParticle_v1.cxx.

85 {
86 // Codes using a fitter set a hypothesis, and the
87 // particular fitter that was employed..
88 // A mass is never set/stored.
89 //
90 // In the past we were returning the mass of a charged pion always
91 //
92 // This created a confusion on why TrackParticles created by
93 // specific lepton fitter have a pion mass (the leptons per se have the
94 // correct mass). Lets try to remedy this.
96 if (hypo == xAOD::electron) {
97 // Since GX2 also set sometimes the hypo to electron
98 // lets also check for GSF.
100 if (fitter == xAOD::GaussianSumFilter) {
102 }
103 }
104 if (hypo == xAOD::muon) {
106 }
107 // default charged pion
109 }
TrackFitter trackFitter() const
Returns the fitter.
ParticleHypothesis particleHypothesis() const
Returns the particle hypothesis used for Track fitting.
const ShapeFitter * fitter
constexpr double muonMassInMeV
the mass of the muon (in MeV)
constexpr double chargedPionMassInMeV
the mass of the charged pion (in MeV)
constexpr double electronMassInMeV
the mass of the electron (in MeV)
@ GaussianSumFilter
Tracks from Gaussian Sum Filter.

◆ makePrivateStore() [1/3]

void SG::AuxElement::makePrivateStore ( )
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 192 of file AuxElement.cxx.

193{
194 if (m_container) {
195 throw SG::ExcBadPrivateStore ("store already exists");
196 }
197
198 m_container = new SG::AuxElementPrivateData;
201}
void setIndex(size_t index)
Set the index of this element within its container.
void setHavePrivateData()
Record that this element currently has private data.

◆ makePrivateStore() [2/3]

template<class U1>
void SG::AuxElement::makePrivateStore ( const U1 & other,
bool warnUnlocked = false )
inherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf true, then warn when we skip unlocked decorations.

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.

◆ makePrivateStore() [3/3]

template<class U1>
void SG::AuxElement::makePrivateStore ( const U1 * other,
bool warnUnlocked = false )
inherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf true, then warn when we skip unlocked decorations.

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.

◆ makePrivateStore1() [1/2]

void SG::AuxElement::makePrivateStore1 ( const AuxElement * other,
bool warnUnlocked )
privateinherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf true, then warn when we skip unlocked decorations.

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 565 of file AuxElement.cxx.

567{
569 if (other)
570 this->copyAux (*other, warnUnlocked);
571}
void copyAux(const ConstAuxElement &other, bool warnUnlocked=false)
Copy aux data from another object.

◆ makePrivateStore1() [2/2]

void SG::AuxElement::makePrivateStore1 ( const void * other,
bool warnUnlocked )
privateinherited

Create a new private store for this object and copy aux data.

Parameters
otherThe object from which aux data should be copied.
warnUnlockedIf true, then warn when we skip unlocked decorations.

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.

◆ noPrivateData()

bool SG::IAuxElement::noPrivateData ( ) const
protectedinherited

True if this element has no private data.

◆ numberDoF()

float xAOD::TrackParticle_v1::numberDoF ( ) const

Returns the number of degrees of freedom of the overall track or vertex fit as float.

◆ numberOfIBLOverflowsdEdx()

uint8_t xAOD::TrackParticle_v1::numberOfIBLOverflowsdEdx ( ) const

◆ numberOfParameters()

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 483 of file TrackParticle_v1.cxx.

483 {
485 static const Accessor< std::vector<uint8_t> > acc( "parameterPosition" );
486 if(! acc.isAvailable( *this )) return 0;
487 return acc(*this).size();
488 }

◆ numberOfUsedHitsdEdx()

uint8_t xAOD::TrackParticle_v1::numberOfUsedHitsdEdx ( ) const

◆ operator=()

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 59 of file TrackParticle_v1.cxx.

59 {
60 if(this == &tp) return *this;
61
62 if( ( ! hasStore() ) && ( ! container() ) ) {
64 }
65 this->IParticle::operator=( tp );
66#ifndef XAOD_ANALYSIS
67 // assume that this copy will create new cache as needed
68 m_perigeeParameters.reset();
69#endif // not XAOD_ANALYSIS
70 return *this;
71 }
bool hasStore() const
Return true if this object has an associated store.
IParticle & operator=(const IParticle &)=default
CxxUtils::CachedValue< Trk::Perigee > m_perigeeParameters
Cached MeasuredPerigee, built from this object.

◆ p4()

TrackParticle_v1::FourMom_t xAOD::TrackParticle_v1::p4 ( ) const
finaloverridevirtual

The full 4-momentum of the particle.

Implements xAOD::IParticle.

Definition at line 122 of file TrackParticle_v1.cxx.

122 {
124 using namespace std;
125 float p = 10.e6; // 10 TeV (default value for very high pt muons, with qOverP==0)
126 if (fabs(qOverP())>0.) p = 1/fabs(qOverP());
127 float thetaT = theta();
128 float phiT = phi();
129 float sinTheta= sin(thetaT);
130 float px = p*sinTheta*cos(phiT);
131 float py = p*sinTheta*sin(phiT);
132 float pz = p*cos(thetaT);
133 float e = pow (m(),2) +
134 pow( px,2) + pow( py,2) + pow( pz,2);
135 p4.SetPxPyPzE( px, py, pz, sqrt(e) );
136 return p4;
137 }
constexpr int pow(int base, int exp) noexcept
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
virtual double e() const override final
The total energy of the particle.

◆ parameterPosition()

xAOD::ParameterPosition xAOD::TrackParticle_v1::parameterPosition ( unsigned int index) const

Return the ParameterPosition of the parameters at 'index'.

Definition at line 577 of file TrackParticle_v1.cxx.

578 {
579 static const Accessor< std::vector<uint8_t> > acc( "parameterPosition" );
580 return static_cast<xAOD::ParameterPosition>(acc(*this).at(index));
581 }
ParameterPosition
Enum allowing us to know where in ATLAS the parameters are defined.

◆ parameterPX()

float xAOD::TrackParticle_v1::parameterPX ( unsigned int index) const

Returns the parameter x momentum component, for 'index'.

Definition at line 542 of file TrackParticle_v1.cxx.

542 {
543 static const Accessor< std::vector<float> > acc( "parameterPX" );
544 return acc(*this).at(index);
545 }

◆ parameterPY()

float xAOD::TrackParticle_v1::parameterPY ( unsigned int index) const

Returns the parameter y momentum component, for 'index'.

Definition at line 547 of file TrackParticle_v1.cxx.

547 {
548 static const Accessor< std::vector<float> > acc( "parameterPY" );
549 return acc(*this).at(index);
550 }

◆ parameterPZ()

float xAOD::TrackParticle_v1::parameterPZ ( unsigned int index) const

Returns the parameter z momentum component, for 'index'.

Definition at line 552 of file TrackParticle_v1.cxx.

552 {
553 static const Accessor< std::vector<float> > acc( "parameterPZ" );
554 return acc(*this).at(index);
555 }

◆ parameterX()

float xAOD::TrackParticle_v1::parameterX ( unsigned int index) const

Returns the parameter x position, for 'index'.

Definition at line 527 of file TrackParticle_v1.cxx.

527 {
528 static const Accessor< std::vector<float> > acc( "parameterX" );
529 return acc(*this).at(index);
530 }

◆ parameterY()

float xAOD::TrackParticle_v1::parameterY ( unsigned int index) const

Returns the parameter y position, for 'index'.

Definition at line 532 of file TrackParticle_v1.cxx.

532 {
533 static const Accessor< std::vector<float> > acc( "parameterY" );
534 return acc(*this).at(index);
535 }

◆ parameterZ()

float xAOD::TrackParticle_v1::parameterZ ( unsigned int index) const

Returns the parameter z position, for 'index'.

Definition at line 537 of file TrackParticle_v1.cxx.

537 {
538 static const Accessor< std::vector<float> > acc( "parameterZ" );
539 return acc(*this).at(index);
540 }

◆ particleHypothesis()

xAOD::ParticleHypothesis xAOD::TrackParticle_v1::particleHypothesis ( ) const

Returns the particle hypothesis used for Track fitting.

Definition at line 658 of file TrackParticle_v1.cxx.

658 {
659 static const Accessor<uint8_t> acc("particleHypothesis");
660 if (!acc.isAvailable(*this)) {
661 return xAOD::pion;
662 }
663 return static_cast<xAOD::ParticleHypothesis>(acc(*this));
664 }

◆ patternRecoInfo()

std::bitset< xAOD::NumberOfTrackRecoInfo > xAOD::TrackParticle_v1::patternRecoInfo ( ) const

Access method for pattern recognition algorithm.

Definition at line 636 of file TrackParticle_v1.cxx.

637 {
638 static const Accessor< uint64_t > acc( "patternRecoInfo" );
639 std::bitset<xAOD::NumberOfTrackRecoInfo> tmp(acc(*this));
640 return tmp;
641 }

◆ perigeeParameters()

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)\)

Note
This is only available in Athena.

Definition at line 415 of file TrackParticle_v1.cxx.

415 {
416
417 // Require the cache to be valid and check if the cached pointer has been set
418 if(m_perigeeParameters.isValid()){
419 return *(m_perigeeParameters.ptr());
420 }
421 static const Accessor< float > acc1( "d0" );
422 static const Accessor< float > acc2( "z0" );
423 static const Accessor< float > acc3( "phi" );
424 static const Accessor< float > acc4( "theta" );
425 static const Accessor< float > acc5( "qOverP" );
426 static const Accessor< std::vector<float> > acc6( "definingParametersCovMatrix" );
427 ParametersCovMatrix_t cov = ParametersCovMatrix_t(definingParametersCovMatrix());
428 static const Accessor< float > acc7( "beamlineTiltX" );
429 static const Accessor< float > acc8( "beamlineTiltY" );
430
431 if(!acc7.isAvailable( *this ) || !acc8.isAvailable( *this )){
432 Trk::Perigee tmpPerigeeParameters(
433 acc1(*this),
434 acc2(*this),
435 acc3(*this),
436 acc4(*this),
437 acc5(*this),
438 Trk::PerigeeSurface(Amg::Vector3D(vx(), vy(), vz())),
439 std::move(cov));
440 m_perigeeParameters.set(tmpPerigeeParameters);
441 return *(m_perigeeParameters.ptr());
442 }
443
444 Amg::Translation3D amgtranslation(vx(),vy(),vz());
445 Amg::Transform3D pAmgTransf = amgtranslation * Amg::RotationMatrix3D::Identity();
446 pAmgTransf *= Amg::AngleAxis3D(acc8(*this), Amg::Vector3D(0.,1.,0.));
447 pAmgTransf *= Amg::AngleAxis3D(acc7(*this), Amg::Vector3D(1.,0.,0.));
448 Trk::Perigee tmpPerigeeParameters(acc1(*this),
449 acc2(*this),
450 acc3(*this),
451 acc4(*this),
452 acc5(*this),
453 pAmgTransf,
454 std::move(cov));
455
456 m_perigeeParameters.set(tmpPerigeeParameters);
457 return *(m_perigeeParameters.ptr());
458 }
float vx() const
The x origin for the parameters.
float vz() const
The z origin for the parameters.
float vy() const
The y origin for the parameters.
Eigen::AngleAxisd AngleAxis3D
Eigen::Affine3d Transform3D
Eigen::Translation< double, 3 > Translation3D
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee

◆ phi()

virtual double xAOD::TrackParticle_v1::phi ( ) const
finaloverridevirtual

The azimuthal angle ( \(\phi\)) of the particle (has range \(-\pi\) to \(+\pi\).)

Implements xAOD::IParticle.

◆ phi0()

float xAOD::TrackParticle_v1::phi0 ( ) const

Returns the \(\phi\) parameter, which has range \(-\pi\) to \(+\pi\).

Definition at line 150 of file TrackParticle_v1.cxx.

150 {
151
152 static const Accessor< float > acc( "phi" );
153 return acc( *this );
154 }

◆ pt()

double xAOD::TrackParticle_v1::pt ( ) const
finaloverridevirtual

The transverse momentum ( \(p_T\)) of the particle.

Implements xAOD::IParticle.

Definition at line 75 of file TrackParticle_v1.cxx.

75 {
76 return genvecP4().Pt();
77 }

◆ qOverP()

float xAOD::TrackParticle_v1::qOverP ( ) const

Returns the \(q/p\) parameter.

◆ radiusOfFirstHit()

float xAOD::TrackParticle_v1::radiusOfFirstHit ( ) const

Returns the radius of the first hit.

◆ rapidity()

double xAOD::TrackParticle_v1::rapidity ( ) const
finaloverridevirtual

The true rapidity (y) of the particle.

Implements xAOD::IParticle.

Definition at line 114 of file TrackParticle_v1.cxx.

114 {
115 return genvecP4().Rapidity();
116 }

◆ releasePrivateStore()

void SG::AuxElement::releasePrivateStore ( )
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 210 of file AuxElement.cxx.

211{
212 if (hadPrivateData()) {
213 // We had a private store, but it was released because this object
214 // was added to a container. Just forget about it.
216 return;
217 }
218
219 if (!havePrivateData() ||
220 !m_container ||
221 typeid(*m_container) != typeid(AuxElementPrivateData))
222 {
223 throw SG::ExcBadPrivateStore ("no private store exists");
224 }
225
228 delete m_container;
229 m_container = 0;
230}
bool hadPrivateData() const
True if this element had private data before it was added to its current container.
void setNoPrivateData()
Record that this element does not have private data.

◆ releasePrivateStoreForDtor()

void SG::AuxElement::releasePrivateStoreForDtor ( )
privateinherited

Out-of-line portion of destructor.

Delete a private store if we have one.

Definition at line 441 of file AuxElement.cxx.

442{
443#ifdef ATHCONTAINERS_R21_COMPAT
444 if (havePrivateData()) {
445 delete m_container;
446 }
447#else
449#endif
450}
void releasePrivateStoreForDtor()
Out-of-line portion of destructor.

◆ resetCache()

void xAOD::TrackParticle_v1::resetCache ( )

Reset the internal cache of the object.

Definition at line 750 of file TrackParticle_v1.cxx.

750 {
751#ifndef XAOD_ANALYSIS
752 m_perigeeParameters.reset();
753#endif // not XAOD_ANALYSIS
754 }

◆ setBeamlineTiltX()

void xAOD::TrackParticle_v1::setBeamlineTiltX ( float tiltX)

◆ setBeamlineTiltY()

void xAOD::TrackParticle_v1::setBeamlineTiltY ( float tiltY)

◆ setConstStore()

void SG::AuxElement::setConstStore ( const SG::IConstAuxStore * store)
inherited

Synonym for setStore with IConstAuxStore.

Parameters
storeThe new store.

◆ setDefiningParameters() [1/2]

void xAOD::TrackParticle_v1::setDefiningParameters ( float d0,
float z0,
float phi0,
float theta,
float qOverP )

Set the defining parameters.

Definition at line 169 of file TrackParticle_v1.cxx.

169 {
170#ifndef XAOD_ANALYSIS
171 // reset perigee cache if existing
172 if(m_perigeeParameters.isValid()) {
173 m_perigeeParameters.reset();
174 }
175#endif // not XAOD_ANALYSIS
176 static const Accessor< float > acc1( "d0" );
177 acc1( *this ) = d0;
178
179 static const Accessor< float > acc2( "z0" );
180 acc2( *this ) = z0;
181
182 static const Accessor< float > acc3( "phi" );
183 acc3( *this ) = phi0;
184
185 static const Accessor< float > acc4( "theta" );
186 acc4( *this ) = theta;
187
188 static const Accessor< float > acc5( "qOverP" );
189 acc5( *this ) = qOverP;
190
191 return;
192 }

◆ setDefiningParameters() [2/2]

void xAOD::TrackParticle_v1::setDefiningParameters ( float d0,
float z0,
float phi0,
float theta,
float qOverP,
float time )

Definition at line 194 of file TrackParticle_v1.cxx.

194 {
196 setTime(time);
197 return;
198 }
float time() const
Returns the time.
void setDefiningParameters(float d0, float z0, float phi0, float theta, float qOverP)
Set the defining parameters.
void setTime(float time)

◆ setDefiningParametersCovMatrix()

void xAOD::TrackParticle_v1::setDefiningParametersCovMatrix ( const ParametersCovMatrix_t & cov)

Set the defining parameters covariance matrix.

Definition at line 205 of file TrackParticle_v1.cxx.

205 {
206
207#ifndef XAOD_ANALYSIS
208 // reset perigee cache if existing
209 if(m_perigeeParameters.isValid()) {
210 m_perigeeParameters.reset();
211 }
212#endif // not XAOD_ANALYSIS
213
214 // Extract the diagonal elements from the matrix.
215 std::vector< float > diagVec;
216 diagVec.reserve( cov.rows() );
217 for( int i = 0; i < cov.rows(); ++i ) {
218 diagVec.push_back( cov( i, i ) );
219 }
220 // Set the variable.
222
223 // Extract the off-diagonal elements from the matrix.
224 std::vector< float > offDiagVec;
225 offDiagVec.reserve( ( ( cov.rows() - 1 ) * cov.rows() ) / 2 );
226 for( int i = 1; i < cov.rows(); ++i ) {
227 for( int j = 0; j < i; ++j ) {
228 float offDiagCoeff = (cov( i, i )>0 && cov( j, j )>0) ? cov( i, j )/sqrt(cov( i, i )*cov( j, j )) : 0;
229 offDiagVec.push_back( offDiagCoeff );
230 }
231 }
232 // Set the variable.
234
235 return;
236 }
void setDefiningParametersCovMatrixOffDiagVec(const std::vector< float > &vec)
Set the off-diagonal elements of the defining parameters covariance matrix.
void setDefiningParametersCovMatrixDiagVec(const std::vector< float > &vec)
Set the defining parameters covariance matrix using a length 15 vector.

◆ setDefiningParametersCovMatrixDiagVec()

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 323 of file TrackParticle_v1.cxx.

323 {
324
325 if (vec.size() != ParametersCovMatrix_t::RowsAtCompileTime) {
326 throw std::runtime_error(
327 "Setting track definingParametersCovMatrixDiag with vector of size " +
328 std::to_string(vec.size()) + " instead of expected " +
329 std::to_string(ParametersCovMatrix_t::RowsAtCompileTime) +
330 " is not supported");
331 }
332
333 accCovMatrixDiag( *this ) = vec;
334 return;
335 }

◆ setDefiningParametersCovMatrixOffDiagVec()

void xAOD::TrackParticle_v1::setDefiningParametersCovMatrixOffDiagVec ( const std::vector< float > & vec)

Set the off-diagonal elements of the defining parameters covariance matrix.

Definition at line 337 of file TrackParticle_v1.cxx.

337 {
338
339 bool offDiagCompr = definingParametersCovMatrixOffDiagCompr();
340
341 unsigned int uncompr_size = ( ( ( ParametersCovMatrix_t::RowsAtCompileTime - 1 ) *
342 ParametersCovMatrix_t::RowsAtCompileTime ) / 2 );
343 unsigned int size = offDiagCompr ? COVMATRIX_OFFDIAG_VEC_COMPR_SIZE : uncompr_size;
344
345 if( !(vec.size() == size || vec.size() == uncompr_size) ){ //If off-diagonal elements are already compressed, can either set with uncompressed or compressed vector
346 throw std::runtime_error(
347 "Setting track definingParametersCovMatrixOffDiag with vector of "
348 "size " +
349 std::to_string(vec.size()) + " instead of expected " +
350 std::to_string(size) + " or " + std::to_string(uncompr_size) +
351 " is not supported");
352 }
353
354 accCovMatrixOffDiag( *this ) = vec;
355 return;
356 }

◆ setDefiningParametersCovMatrixVec()

void xAOD::TrackParticle_v1::setDefiningParametersCovMatrixVec ( const std::vector< float > & cov)

Definition at line 390 of file TrackParticle_v1.cxx.

390 {
391
392 xAOD::ParametersCovMatrix_t covMatrix;
393 if( !cov.empty() ) Amg::expand( cov.begin(), cov.end(),covMatrix );
394 else covMatrix.setIdentity();
396
397 }
void setDefiningParametersCovMatrix(const ParametersCovMatrix_t &cov)
Set the defining parameters covariance matrix.

◆ setFitQuality()

void xAOD::TrackParticle_v1::setFitQuality ( float chiSquared,
float numberDoF )

Set the 'Fit Quality' information.

Definition at line 464 of file TrackParticle_v1.cxx.

464 {
465 static const Accessor< float > acc1( "chiSquared" );
466 acc1( *this ) = chiSquared;
467 static const Accessor< float > acc2( "numberDoF" );
468 acc2( *this ) = numberDoF;
469 }
float numberDoF() const
Returns the number of degrees of freedom of the overall track or vertex fit as float.
float chiSquared() const
Returns the of the overall track fit.

◆ setHadPrivateData()

void SG::IAuxElement::setHadPrivateData ( )
privateinherited

Record that this element used to have private data.

◆ setHasValidTime()

void xAOD::TrackParticle_v1::setHasValidTime ( uint8_t hasValidTime)

◆ setHavePrivateData()

void SG::IAuxElement::setHavePrivateData ( )
privateinherited

Record that this element currently has private data.

◆ setHitPattern()

void xAOD::TrackParticle_v1::setHitPattern ( uint32_t hitpattern)

◆ setIdentifierOfFirstHit()

void xAOD::TrackParticle_v1::setIdentifierOfFirstHit ( uint64_t id)

Set the offline identifier of the first hit.

◆ setIndex()

void SG::AuxElement::setIndex ( size_t index,
SG::AuxVectorData * container )
privateinherited

Set the index/container for this element.

Parameters
indexThe index of this object within the container.
containerThe 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.

◆ setIndexPrivate()

bool SG::AuxElement::setIndexPrivate ( size_t index,
SG::AuxVectorData * container )
privateinherited

Set the index/container for this element.

Parameters
indexThe index of this object within the container.
containerThe 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 505 of file AuxElement.cxx.

506{
507#ifdef ATHCONTAINERS_R21_COMPAT
508 if (hadPrivateData()) {
509 // We had a private store, but it was released because we were added
510 // to a container.
511
512 if (container == 0) {
513 // We're being moved out of the container. Make a new private
514 // store, copy the data, and switch to it.
515 auto privateData = new SG::AuxElementPrivateData;
516 AuxElement to (privateData, 0);
517 to.copyAux (*this);
520 m_container = privateData;
521 return true;
522 }
523 }
524 else if (havePrivateData() &&
525 typeid(*m_container) == typeid(AuxElementPrivateData))
526 {
527 // We currently have a private store.
528
529 if (container != 0 && container != m_container) {
530 // We're being added to a container.
531 // Aux data has already been copied.
532 // Release private store.
535 delete m_container;
537 return false;
538 }
539 }
540 else {
541 // We have a standalone store.
542 throw SG::ExcBadPrivateStore ("Attempt to add/remove a standalone object "
543 "from a container.");
544 }
545
548 return false;
549#else
551#endif
552}
AuxElement()
Default constructor.
bool setIndexPrivate(size_t index, const SG::AuxVectorData *container)
Set the index/container for this element.
void setHadPrivateData()
Record that this element used to have private data.
CONT to(RANGE &&r)
Definition ranges.h:39

◆ setNonConstStore()

void SG::AuxElement::setNonConstStore ( SG::IAuxStore * store)
inherited

Synonym for setStore with IAuxStore.

Parameters
storeThe new store.

◆ setNoPrivateData()

void SG::IAuxElement::setNoPrivateData ( )
privateinherited

Record that this element does not have private data.

◆ setNumberOfIBLOverflowsdEdx()

void xAOD::TrackParticle_v1::setNumberOfIBLOverflowsdEdx ( uint8_t numoverflows)

◆ setNumberOfUsedHitsdEdx()

void xAOD::TrackParticle_v1::setNumberOfUsedHitsdEdx ( uint8_t numhits)

◆ setParameterPosition()

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 597 of file TrackParticle_v1.cxx.

597 {
598 static const Accessor< std::vector<uint8_t> > acc( "parameterPosition" );
599 acc( *this ).at(index) = static_cast<uint8_t>(pos);
600 }

◆ setParametersOrigin()

void xAOD::TrackParticle_v1::setParametersOrigin ( float x,
float y,
float z )

Set the origin for the parameters.

Definition at line 403 of file TrackParticle_v1.cxx.

403 {
404 static const Accessor< float > acc1( "vx" );
405 acc1( *this ) = x;
406
407 static const Accessor< float > acc2( "vy" );
408 acc2( *this ) = y;
409
410 static const Accessor< float > acc3( "vz" );
411 acc3( *this ) = z;
412 }
#define y
#define x
#define z

◆ setParticleHypothesis()

void xAOD::TrackParticle_v1::setParticleHypothesis ( const ParticleHypothesis hypo)

Method for setting the particle type, using the ParticleHypothesis enum.

Definition at line 653 of file TrackParticle_v1.cxx.

653 {
654 static const Accessor<uint8_t> acc("particleHypothesis");
655 acc(*this) = static_cast<uint8_t>(value);
656 }

◆ setPatternRecognitionInfo() [1/2]

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:

const std::bitset<xAOD::NumberOfTrackRecoInfo> patternReco;
patternReco.set(xAOD::Fatras);
@ Fatras
Track from FATRAS.

Definition at line 648 of file TrackParticle_v1.cxx.

648 {
649 static const Accessor< uint64_t > acc( "patternRecoInfo" );
650 acc( *this ) = patternReco.to_ullong();
651 }

◆ setPatternRecognitionInfo() [2/2]

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:

uint64_t patternReco;
patternReco |= (1<<static_cast<uint64_t>(xAOD::Fatras))

Definition at line 643 of file TrackParticle_v1.cxx.

643 {
644 static const Accessor< uint64_t > acc( "patternRecoInfo" );
645 acc( *this ) = patternReco;
646 }

◆ setRadiusOfFirstHit()

void xAOD::TrackParticle_v1::setRadiusOfFirstHit ( float radius)

Set the radius of the first hit.

◆ setStore() [1/3]

void SG::AuxElement::setStore ( const DataLink< SG::IConstAuxStore > & store)
inherited

Set the store associated with this object.

Parameters
storeThe 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.

Parameters
storeLink to the new store.

Definition at line 269 of file AuxElement.cxx.

270{
271 AuxElementStandaloneData* data = setStore1 (store);
272 if (store)
273 data->setStore (store);
274}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
AuxElementStandaloneData * setStore1(const SG::IConstAuxStore *store)
Set the store associated with this object.

◆ setStore() [2/3]

void SG::AuxElement::setStore ( const SG::IConstAuxStore * store)
inherited

Set the store associated with this object.

Parameters
storeThe 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 241 of file AuxElement.cxx.

242{
243 AuxElementStandaloneData* data = setStore1 (store);
244 if (store)
245 data->setStore (store);
246}

◆ setStore() [3/3]

void SG::AuxElement::setStore ( SG::IAuxStore * store)
inherited

Set the store associated with this object.

Parameters
storeThe 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 257 of file AuxElement.cxx.

258{
259 AuxElementStandaloneData* data = setStore1 (store);
260 if (store)
261 data->setStore (store);
262}

◆ setStore1()

AuxElementStandaloneData * SG::AuxElement::setStore1 ( const SG::IConstAuxStore * store)
privateinherited

Set the store associated with this object.

Parameters
storeThe new store.

Helper for setStore. Creates the AuxElementStandaloneData object if needed and returns it.

Parameters
storeThe new store.

Helper for setStore. Creates the @x AuxElementStandaloneData object if needed and returns it.

Definition at line 461 of file AuxElement.cxx.

462{
463 if (store) {
464 // Want this object be standalone.
465 if (!m_container) {
466 // Not in a container (and no private store). Make a new object.
467 AuxElementStandaloneData* data = new AuxElementStandaloneData;
470 return data;
471 }
472 if (usingStandaloneStore()) {
473 // Standalone --- return existing object.
474 return static_cast<AuxElementStandaloneData*> (container());
475 }
476 // Otherwise, it's an error.
477 throw ExcBadPrivateStore ("Attempt to attach a standalone store to an "
478 "object in a container or with a private store.");
479 }
480
481 else {
482 // Getting rid of a standalone store.
483 if (usingStandaloneStore()) {
485 delete m_container;
486 m_container = 0;
487 }
488 else if (m_container != 0)
489 throw ExcBadPrivateStore ("Attempt to remove a standalone store from an "
490 "object in a container or with a private store.");
491 return 0;
492 }
493}
bool usingStandaloneStore() const
Test to see if this object is currently using a standalone store.

◆ setSummaryValue() [1/2]

void xAOD::TrackParticle_v1::setSummaryValue ( float & value,
const SummaryType & information )

Set method for TrackSummary values.

Definition at line 688 of file TrackParticle_v1.cxx.

688 {
689 const xAOD::TrackParticle_v1::Accessor< float >* acc = trackSummaryAccessorV1<float>( information );
690 // Set the value:
691 ( *acc )( *this ) = value;
692 }
const SG::AuxElement::Accessor< float > * trackSummaryAccessorV1< float >(xAOD::SummaryType type)

◆ setSummaryValue() [2/2]

void xAOD::TrackParticle_v1::setSummaryValue ( uint8_t & value,
const SummaryType & information )

Set method for TrackSummary values.

Definition at line 682 of file TrackParticle_v1.cxx.

682 {
684 // Set the value:
685 ( *acc )( *this ) = value;
686 }
const SG::AuxElement::Accessor< uint8_t > * trackSummaryAccessorV1< uint8_t >(xAOD::SummaryType type)

◆ setTime()

void xAOD::TrackParticle_v1::setTime ( float time)

◆ setTimeResolution()

void xAOD::TrackParticle_v1::setTimeResolution ( float timeResolution)

◆ setTrackFitter()

void xAOD::TrackParticle_v1::setTrackFitter ( const TrackFitter fitter)

Method for setting the fitter, using the TrackFitter enum.

Definition at line 623 of file TrackParticle_v1.cxx.

623 {
624 static const Accessor<uint8_t> acc("trackFitter");
625 acc(*this) = static_cast<uint8_t>(value);
626 }

◆ setTrackLink()

void xAOD::TrackParticle_v1::setTrackLink ( const ElementLink< TrackCollection > & track)

Set the link to the original track.

Note
This is only available in Athena.

Definition at line 723 of file TrackParticle_v1.cxx.

724 {
725
726 // The accessor:
727 static const Accessor< ElementLink< TrackCollection > > acc( "trackLink" );
728
729 // Do the deed:
730 acc( *this ) = el;
731 return;
732 }

◆ setTrackParameterCovarianceMatrix()

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 568 of file TrackParticle_v1.cxx.

568 {
569 assert(cov.size()==15);
570 unsigned int offset = index*15;
571 static const Accessor< std::vector < float > > acc( "trackParameterCovarianceMatrices" );
572 std::vector<float>& v = acc(*this);
573 v.resize(offset+15);
574 std::copy(cov.begin(),cov.end(),v.begin()+offset );
575 }

◆ setTrackParameters()

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 497 of file TrackParticle_v1.cxx.

497 {
498 static const Accessor< std::vector < float > > acc1( "parameterX" );
499 static const Accessor< std::vector < float > > acc2( "parameterY" );
500 static const Accessor< std::vector < float > > acc3( "parameterZ" );
501 static const Accessor< std::vector < float > > acc4( "parameterPX" );
502 static const Accessor< std::vector < float > > acc5( "parameterPY" );
503 static const Accessor< std::vector < float > > acc6( "parameterPZ" );
504 static const Accessor< std::vector<uint8_t> > acc7( "parameterPosition" );
505
506 acc1(*this).resize(parameters.size());
507 acc2(*this).resize(parameters.size());
508 acc3(*this).resize(parameters.size());
509 acc4(*this).resize(parameters.size());
510 acc5(*this).resize(parameters.size());
511 acc6(*this).resize(parameters.size());
512 acc7(*this).resize(parameters.size());
513
514 unsigned int index=0;
515 std::vector<std::vector<float> >::const_iterator it=parameters.begin(), itEnd=parameters.end();
516 for (;it!=itEnd;++it,++index){
517 assert((*it).size()==6);
518 acc1(*this).at(index)=(*it).at(0);
519 acc2(*this).at(index)=(*it).at(1);
520 acc3(*this).at(index)=(*it).at(2);
521 acc4(*this).at(index)=(*it).at(3);
522 acc5(*this).at(index)=(*it).at(4);
523 acc6(*this).at(index)=(*it).at(5);
524 }
525 }

◆ setTrackProperties()

void xAOD::TrackParticle_v1::setTrackProperties ( const TrackProperties properties)

Methods setting the TrackProperties.

◆ summaryValue() [1/2]

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.

if( myParticle.summaryValue(numberOfBLayerHits,xAOD::numberOfBLayerHits) ){
ATH_MSG_INFO("Successfully retrieved the integer value, numberOfBLayerHits");
}
float numberOfCscPhiHits=0.0; //Wrong! This is actually an int too.
if( !myParticle.summaryValue(numberOfCscPhiHits,xAOD::numberOfCscPhiHits) ){
ATH_MSG_INFO("Types must match!");
}
#define ATH_MSG_INFO(x)
@ numberOfBLayerHits
these are the hits in the first pixel layer, i.e.
Parameters
[in]informationThe information being requested. This is not guaranteed to be stored in all TrackParticles.
[out]valueOnly filled if this TrackParticle contains 'information', and the types match.
Returns
Returns 'true' if the TrackParticle contains 'information', and its concrete type matches 'value' (templated type T).

Definition at line 674 of file TrackParticle_v1.cxx.

674 {
675 const xAOD::TrackParticle_v1::Accessor< float >* acc = trackSummaryAccessorV1<float>( information );
676 if( ( ! acc ) || ( ! acc->isAvailable( *this ) ) ) return false;
677 // Retrieve the value:
678 value = ( *acc )( *this );
679 return true;
680 }

◆ summaryValue() [2/2]

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.

if( myParticle.summaryValue(numberOfBLayerHits,xAOD::numberOfBLayerHits) ){
ATH_MSG_INFO("Successfully retrieved the integer value, numberOfBLayerHits");
}
float numberOfCscPhiHits=0.0; //Wrong! This is actually an int too.
if( !myParticle.summaryValue(numberOfCscPhiHits,xAOD::numberOfCscPhiHits) ){
ATH_MSG_INFO("Types must match!");
}
Parameters
[in]informationThe information being requested. This is not guaranteed to be stored in all TrackParticles.
[out]valueOnly filled if this TrackParticle contains 'information', and the types match.
Returns
Returns 'true' if the TrackParticle contains 'information', and its concrete type matches 'value' (templated type T).

Definition at line 666 of file TrackParticle_v1.cxx.

666 {
668 if( ( ! acc ) || ( ! acc->isAvailable( *this ) ) ) return false;
669 // Retrieve the value:
670 value = ( *acc )( *this );
671 return true;
672 }

◆ theta()

float xAOD::TrackParticle_v1::theta ( ) const

Returns the \(\theta\) parameter, which has range 0 to \(\pi\).

◆ time()

float xAOD::TrackParticle_v1::time ( ) const

Returns the time.

◆ timeResolution()

float xAOD::TrackParticle_v1::timeResolution ( ) const

Returns the time resolution.

◆ track()

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.

Note
This is only available in Athena.

Definition at line 734 of file TrackParticle_v1.cxx.

734 {
735
736 // The accessor:
737 static const ConstAccessor< ElementLink< TrackCollection > > acc( "trackLink" );
738
739 if( ! acc.isAvailable( *this ) ) {
740 return nullptr;
741 }
742 if( ! acc( *this ).isValid() ) {
743 return nullptr;
744 }
745
746 return *( acc( *this ) );
747 }
SG::ConstAccessor< T, ALLOC > ConstAccessor
Helper class to provide type-safe access to aux data.
Definition AuxElement.h:131

◆ trackFitter()

xAOD::TrackFitter xAOD::TrackParticle_v1::trackFitter ( ) const

Returns the fitter.

Definition at line 628 of file TrackParticle_v1.cxx.

628 {
629 static const Accessor<uint8_t> acc("trackFitter");
630 if (!acc.isAvailable(*this)) {
632 }
633 return static_cast<xAOD::TrackFitter>(acc(*this));
634 }
TrackFitter
Enums to identify who created this track and which properties does it have.
@ NumberOfTrackFitters
maximum number of enums

◆ trackIndices()

bool SG::AuxElement::trackIndices ( ) 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.

◆ trackLink()

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.

Note
This is only available in Athena.

This is to avoid users having to always check both for the decoration being available, and the link being valid.

Returns
An element link to the parent Trk::Track of this track particle

Definition at line 708 of file TrackParticle_v1.cxx.

708 {
709
710 // The accessor:
711 static const ConstAccessor< ElementLink< TrackCollection > > acc( "trackLink" );
712
713 // Check if one of them is available:
714 if( acc.isAvailable( *this ) ) {
715 return acc( *this );
716 }
717
718 // If no Trk::Track link was not set (yet), return a dummy object:
719 static const ElementLink< TrackCollection > dummy;
720 return dummy;
721 }

◆ trackParameterCovarianceMatrix()

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 557 of file TrackParticle_v1.cxx.

558 {
559 static const Accessor< std::vector<float> > acc( "trackParameterCovarianceMatrices" );
560 unsigned int offset = index*15;
561 // copy the correct values into the temp matrix
562 xAOD::ParametersCovMatrix_t tmp;
563 std::vector<float>::const_iterator it = acc(*this).begin()+offset;
564 Amg::expand(it,it+15,tmp);
565 return tmp;
566 }

◆ trackParameters()

const CurvilinearParameters_t xAOD::TrackParticle_v1::trackParameters ( unsigned int index) const

Returns the track parameter vector at 'index'.

Definition at line 490 of file TrackParticle_v1.cxx.

490 {
491 CurvilinearParameters_t tmp;
494 return tmp;
495 }

◆ trackProperties()

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:

TrackProperties testProperty;
testProperty.set(SOMEPROPERTY);
if (trackParticle.trackProperties(testProperty)) doSomething();
Todo
  • fix the above (or make something nicer)

◆ type()

Type::ObjectType xAOD::TrackParticle_v1::type ( ) const
finaloverridevirtual

The type of the object as a simple enumeration.

Implements xAOD::IParticle.

Definition at line 139 of file TrackParticle_v1.cxx.

139 {
140 return Type::TrackParticle;
141 }

◆ usingPrivateStore()

bool SG::AuxElement::usingPrivateStore ( ) const
inherited

Test to see if this object is currently using a private store.

Definition at line 280 of file AuxElement.cxx.

281{
282 return havePrivateData() &&
283 typeid(*m_container) == typeid(AuxElementPrivateData);
284}

◆ usingStandaloneStore()

bool SG::AuxElement::usingStandaloneStore ( ) const
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 290 of file AuxElement.cxx.

291{
292 return havePrivateData() &&
293 typeid(*m_container) == typeid(AuxElementStandaloneData);
294}

◆ vx()

float xAOD::TrackParticle_v1::vx ( ) const

The x origin for the parameters.

◆ vy()

float xAOD::TrackParticle_v1::vy ( ) const

The y origin for the parameters.

◆ vz()

float xAOD::TrackParticle_v1::vz ( ) const

The z origin for the parameters.

◆ z0()

float xAOD::TrackParticle_v1::z0 ( ) const

Returns the \(z_0\) parameter.

Member Data Documentation

◆ COVMATRIX_OFFDIAG_VEC_COMPR_SIZE

const std::size_t xAOD::TrackParticle_v1::COVMATRIX_OFFDIAG_VEC_COMPR_SIZE = TrackingDetails::COVMATRIX_OFFDIAG_VEC_COMPR_SIZE
staticprivate

Definition at line 350 of file TrackParticle_v1.h.

◆ m_container

const SG::AuxVectorData* SG::ConstAuxElement::m_container
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 335 of file AuxElement.h.

◆ m_index

size_t SG::IAuxElement::m_index
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.

◆ m_perigeeParameters

CxxUtils::CachedValue<Trk::Perigee> xAOD::TrackParticle_v1::m_perigeeParameters
private

Cached MeasuredPerigee, built from this object.

Note
This is only available in Athena.

Definition at line 369 of file TrackParticle_v1.h.

◆ m_privateStoreState

PrivateStoreState SG::IAuxElement::m_privateStoreState
privateinherited

Definition at line 137 of file IAuxElement.h.

◆ supportsThinning

bool SG::AuxElement::supportsThinning = true
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 959 of file AuxElement.h.


The documentation for this class was generated from the following files: