ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
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 Accessor = SG::Accessor< T, ALLOC >
 
template<class T , class ALLOC = AuxAllocator_t<T>>
using Decorator = SG::Decorator< T, ALLOC >
 

Public Member Functions

 TrackParticle_v1 ()
 Default constructor. More...
 
 ~TrackParticle_v1 ()
 Destructor. More...
 
 TrackParticle_v1 (const TrackParticle_v1 &o)
 Copy ctor. This involves copying the entire Auxilary store, and is a slow operation which should be used sparingly. More...
 
TrackParticle_v1operator= (const TrackParticle_v1 &tp)
 Assignment operator. This can involve creating and copying an Auxilary store, and so should be used sparingly. More...
 
bool summaryValue (uint8_t &value, const SummaryType &information) const
 Accessor for TrackSummary values. More...
 
bool summaryValue (float &value, const SummaryType &information) const
 Accessor for TrackSummary values. More...
 
void setSummaryValue (uint8_t &value, const SummaryType &information)
 Set method for TrackSummary values. More...
 
void setSummaryValue (float &value, const SummaryType &information)
 Set method for TrackSummary values. More...
 
void resetCache ()
 Reset the internal cache of the object. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type auxdata (const std::string &name)
 Fetch an aux data variable, as a non-const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type auxdata (const std::string &name) const
 Fetch an aux data variable, as a const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool isAvailableWritable (const std::string &name, const std::string &clsname="")
 Check if an aux variable is available for writing. More...
 
void assign (const AuxElement &other, bool warnUnlocked=false)
 Assignment. More...
 
const SG::AuxVectorDatacontainer () const
 Return the container holding this element. More...
 
SG::AuxVectorDatacontainer ()
 Return the container holding this element. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type auxdataConst (const std::string &name) const
 Fetch an aux data variable, as a const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type auxdataConst (const std::string &name, const std::string &clsname) const
 Fetch an aux data variable, as a const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED bool isAvailableWritableAsDecoration (const std::string &name, const std::string &clsname="") const
 Check if an aux variable is available for writing as a decoration. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type auxdecor (const std::string &name) const
 Fetch an aux decoration, as a non-const reference. More...
 
template<class T , class ALLOC = AuxAllocator_t<T>>
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type auxdecor (const std::string &name, const std::string &clsname) const
 Fetch an aux decoration, as a non-const reference. More...
 
void makePrivateStore ()
 Create a new (empty) private store for this object. More...
 
template<class U1 >
void makePrivateStore (const U1 &other, bool warnUnlocked=false)
 Create a new private store for this object and copy aux data. More...
 
template<class U1 >
void makePrivateStore (const U1 *other, bool warnUnlocked=false)
 Create a new private store for this object and copy aux data. More...
 
void releasePrivateStore ()
 Release and free any private store associated with this object. More...
 
void setStore (const SG::IConstAuxStore *store)
 Set the store associated with this object. More...
 
void setStore (SG::IAuxStore *store)
 Set the store associated with this object. More...
 
void setStore (const DataLink< SG::IConstAuxStore > &store)
 Set the store associated with this object. More...
 
void setConstStore (const SG::IConstAuxStore *store)
 Synonym for setStore with IConstAuxStore. More...
 
void setNonConstStore (SG::IAuxStore *store)
 Synonym for setStore with IAuxStore. More...
 
bool usingPrivateStore () const
 Test to see if this object is currently using a private store. More...
 
bool usingStandaloneStore () const
 Test to see if this object is currently using a standalone store. More...
 
const SG::IConstAuxStoregetConstStore () const
 Return the current store, as a const interface. More...
 
SG::IAuxStoregetStore () const
 Return the current store, as a non-const interface. More...
 
void clearCache ()
 Clear the cached aux data pointers. More...
 
const SG::auxid_set_tgetAuxIDs () const
 Return a set of identifiers for existing data items for this object. More...
 
const SG::auxid_set_tgetDecorIDs () const
 Return a set of identifiers for decorations for this object. More...
 
bool hasStore () const
 Return true if this object has an associated store. More...
 
bool hasNonConstStore () const
 Return true if this object has an associated non-const store. More...
 
bool clearDecorations () const
 Clear all decorations. More...
 
bool trackIndices () const
 Return true if index tracking is enabled for this object. More...
 
size_t index () const
 Return the index of this element within its container. More...
 
size_t index () const
 Return the index of this element within its container. More...
 

Static Public Attributes

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

Protected Member Functions

bool noPrivateData () const
 True if this element has no private data. More...
 
bool havePrivateData () const
 True if this element currently has private data. More...
 
bool hadPrivateData () const
 True if this element had private data before it was added to its current container. More...
 

Private Types

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

Private Member Functions

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

Static Private Member Functions

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

Private Attributes

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

Static Private Attributes

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

Functions for getting and setting user properties

template<class T >
XAOD_AUXDATA_DEPRECATED T & auxdata (const std::string &name, const std::string &clsname="")
 Fetch an aux data variable, as a non-const reference. More...
 
template<class T >
XAOD_AUXDATA_DEPRECATED const T & auxdata (const std::string &name, const std::string &clsname="") const
 Fetch an aux data variable, as a const reference. More...
 
template<class T >
XAOD_AUXDATA_DEPRECATED bool isAvailable (const std::string &name, const std::string &clsname="") const
 Check if a user property is available for reading or not. More...
 
template<class T >
XAOD_AUXDATA_DEPRECATED bool isAvailableWritable (const std::string &name, const std::string &clsname="") const
 Check if a user property is available for writing or not. More...
 

IParticle functions

typedef IParticle::FourMom_t FourMom_t
 Definition of the 4-momentum type. More...
 
typedef ROOT::Math::LorentzVector< ROOT::Math::PxPyPzM4D< double > > GenVecFourMom_t
 Base 4 Momentum type for TrackParticle. More...
 
virtual double pt () const override final
 The transverse momentum ( \(p_T\)) of the particle. More...
 
virtual double eta () const override final
 The pseudorapidity ( \(\eta\)) of the particle. More...
 
virtual double phi () const override final
 The azimuthal angle ( \(\phi\)) of the particle (has range \(-\pi\) to \(+\pi\).) More...
 
virtual double m () const override final
 The invariant mass of the particle.. More...
 
virtual double e () const override final
 The total energy of the particle. More...
 
virtual double rapidity () const override final
 The true rapidity (y) of the particle. More...
 
virtual FourMom_t p4 () const override final
 The full 4-momentum of the particle. More...
 
GenVecFourMom_t genvecP4 () const
 The full 4-momentum of the particle : GenVector form. More...
 
virtual Type::ObjectType type () const override final
 The type of the object as a simple enumeration. More...
 

Defining parameters functions

The 'defining parameters' are key to the concept of a TrackParticle, and give the values for the IParticle interface ( pt(), phi(), eta() etc.).

They use the Trk::Perigee coordinate system, and are defined as: \(( d_0, z_0, \phi, \theta, q/p )\). The parameters are expressed with respect to an origin (returned by vx(), vy() and vy() ), currently intended to be the 'beamspot'. This origin is expected to be the same for all track particles in a collection (and this may be be enforced). The \(\phi\) parameter is returned by either the phi() or the phi0() methods, the difference just being whether it is returned as a float or a double (it is stored as a float)

float charge () const
 Returns the charge. More...
 
float d0 () const
 Returns the \(d_0\) parameter. More...
 
float z0 () const
 Returns the \(z_0\) parameter. More...
 
float phi0 () const
 Returns the \(\phi\) parameter, which has range \(-\pi\) to \(+\pi\). More...
 
float theta () const
 Returns the \(\theta\) parameter, which has range 0 to \(\pi\). More...
 
float qOverP () const
 Returns the \(q/p\) parameter. More...
 
float time () const
 Returns the time. More...
 
float timeResolution () const
 Returns the time resolution. More...
 
uint8_t hasValidTime () const
 Returns whether or not the track has a valid time. More...
 
DefiningParameters_t definingParameters () const
 Returns a SVector of the Perigee track parameters. More...
 
const ParametersCovMatrix_t definingParametersCovMatrix () const
 Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix. More...
 
ParametersCovMatrixFilled_t definingParametersCovMatrixFilled () const
 Returns a 5x5 matrix describing which elements of the covariance matrix are known. More...
 
const std::vector< float > & definingParametersCovMatrixDiagVec () const
 Returns the diagonal elements of the defining parameters covariance matrix. More...
 
const std::vector< float > & definingParametersCovMatrixOffDiagVec () const
 Returns the correlation coefficient associated with the off-diagonal elements of the covariance matrix = cov(X,Y)/sqrt(cov(X,X)*cov(Y,Y)) More...
 
std::vector< floatdefiningParametersCovMatrixVec () const
 Returns the length 6 vector containing the elements of defining parameters covariance matrix. More...
 
bool definingParametersCovMatrixOffDiagCompr () const
 
void setDefiningParameters (float d0, float z0, float phi0, float theta, float qOverP)
 Set the defining parameters. More...
 
void setDefiningParameters (float d0, float z0, float phi0, float theta, float qOverP, float time)
 
void setTime (float time)
 
void setTimeResolution (float timeResolution)
 
void setHasValidTime (uint8_t hasValidTime)
 
void setDefiningParametersCovMatrix (const ParametersCovMatrix_t &cov)
 Set the defining parameters covariance matrix. More...
 
void setDefiningParametersCovMatrixDiagVec (const std::vector< float > &vec)
 Set the defining parameters covariance matrix using a length 15 vector. More...
 
void setDefiningParametersCovMatrixOffDiagVec (const std::vector< float > &vec)
 Set the off-diagonal elements of the defining parameters covariance matrix. More...
 
void setDefiningParametersCovMatrixVec (const std::vector< float > &cov)
 
void compressDefiningParametersCovMatrixOffDiag ()
 Delete some off-diagonal elements for compression. More...
 
float vx () const
 The x origin for the parameters. More...
 
float vy () const
 The y origin for the parameters. More...
 
float vz () const
 The z origin for the parameters. More...
 
void setParametersOrigin (float x, float y, float z)
 Set the origin for the parameters. More...
 
const Trk::PerigeeperigeeParameters () const
 Returns the Trk::MeasuredPerigee track parameters. More...
 

Curvilinear functions

The set of functions which return other track parameters.

The remaining track parameters (i.e. not the 'defining parameters') use the 'curvilinear' coordinate system, and are represented by the parameters \((x,y,z,p_x,p_y,p_z)\). The parameters can have an associated local 5x5 error/covariance matrix. They are expressed at various points through the detector, which can be determined by the parameterPosition() method.

// Example code to use parameters
unsigned int index=0;
if (myTP.indexOfParameterAtPosition(index, xAOD::FirstMeasurement)){
CurvilinearParameters_t parameters = myTP.trackParameters(index);
}
size_t numberOfParameters () const
 Returns the number of additional parameters stored in the TrackParticle. More...
 
const CurvilinearParameters_t trackParameters (unsigned int index) const
 Returns the track parameter vector at 'index'. More...
 
float parameterX (unsigned int index) const
 Returns the parameter x position, for 'index'. More...
 
float parameterY (unsigned int index) const
 Returns the parameter y position, for 'index'. More...
 
float parameterZ (unsigned int index) const
 Returns the parameter z position, for 'index'. More...
 
float parameterPX (unsigned int index) const
 Returns the parameter x momentum component, for 'index'. More...
 
float parameterPY (unsigned int index) const
 Returns the parameter y momentum component, for 'index'. More...
 
float parameterPZ (unsigned int index) const
 Returns the parameter z momentum component, for 'index'. More...
 
void setTrackParameters (std::vector< std::vector< float > > &parameters)
 Set the parameters via the passed vector of vectors. More...
 
ParametersCovMatrix_t trackParameterCovarianceMatrix (unsigned int index) const
 Returns the TrackParticleCovMatrix_t (covariance matrix) at 'index', which corresponds to the parameters at the same index. More...
 
void setTrackParameterCovarianceMatrix (unsigned int index, std::vector< float > &cov)
 Set the cov matrix of the parameter at 'index', using a vector of floats. More...
 
xAOD::ParameterPosition parameterPosition (unsigned int index) const
 Return the ParameterPosition of the parameters at 'index'. More...
 
bool indexOfParameterAtPosition (unsigned int &index, ParameterPosition position) const
 Function to determine if this TrackParticle contains track parameters at a certain position, and if so, what the 'index' is. More...
 
void setParameterPosition (unsigned int index, ParameterPosition pos)
 Set the 'position' (i.e. where it is in ATLAS) of the parameter at 'index', using the ParameterPosition enum. More...
 
const Trk::CurvilinearParameters curvilinearParameters (unsigned int index) const
 Returns a curvilinear representation of the parameters at 'index'. More...
 
float radiusOfFirstHit () const
 Returns the radius of the first hit. More...
 
void setRadiusOfFirstHit (float radius)
 Set the radius of the first hit. More...
 
uint64_t identifierOfFirstHit () const
 Returns the offline identifier of the first hit. More...
 
void setIdentifierOfFirstHit (uint64_t id)
 Set the offline identifier of the first hit. More...
 
float beamlineTiltX () const
 
void setBeamlineTiltX (float tiltX)
 
float beamlineTiltY () const
 
void setBeamlineTiltY (float tiltY)
 
uint32_t hitPattern () const
 
void setHitPattern (uint32_t hitpattern)
 
uint8_t numberOfUsedHitsdEdx () const
 
void setNumberOfUsedHitsdEdx (uint8_t numhits)
 
uint8_t numberOfIBLOverflowsdEdx () const
 
void setNumberOfIBLOverflowsdEdx (uint8_t numoverflows)
 

Fit quality functions

Returns some information about quality of the track fit.

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

TrackInfo functions

Contains information about the 'fitter' of this Trk::Track / TrackParticle.

Additionally there is some information about how the e.g. fit was configured. Also the information on the properties of the track fit is stored.

void setTrackProperties (const TrackProperties properties)
 Methods setting the TrackProperties. More...
 
void setPatternRecognitionInfo (const std::bitset< xAOD::NumberOfTrackRecoInfo > &patternReco)
 Method setting the pattern recognition algorithm, using a bitset. More...
 
void setPatternRecognitionInfo (uint64_t patternReco)
 Method setting the pattern recognition algorithm, using a 64-bit int (which is faster than using a bitset). More...
 
void setTrackFitter (const TrackFitter fitter)
 Method for setting the fitter, using the TrackFitter enum. More...
 
void setParticleHypothesis (const ParticleHypothesis hypo)
 Method for setting the particle type, using the ParticleHypothesis enum. More...
 
TrackProperties trackProperties () const
 Access methods for track properties, which returns 'true' if a logical AND of the parameter 'proprty' and the stored properties returns true. More...
 
std::bitset< NumberOfTrackRecoInfopatternRecoInfo () const
 Access method for pattern recognition algorithm. More...
 
ParticleHypothesis particleHypothesis () const
 Returns the particle hypothesis used for Track fitting. More...
 
TrackFitter trackFitter () const
 Returns the fitter. More...
 

Links

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

Detailed Description

Class describing a TrackParticle.

Author
Edward Moyse Edwar.nosp@m.d.Mo.nosp@m.yse@c.nosp@m.ern..nosp@m.ch
Markus Elsing Marku.nosp@m.s.El.nosp@m.sing@.nosp@m.cern.nosp@m..ch

Definition at line 44 of file TrackParticle_v1.h.

Member Typedef Documentation

◆ Accessor

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

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

Definition at line 349 of file TrackParticle_v1.h.

◆ 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 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  }

◆ ~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 ) {
55  // perigeeParameters cache initialized to be empty (default constructor)
56  // assume that this copy will create new cache as needed
57  }

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  {
144  return TrackingDetails::charge (qOverP());
145  }

◆ 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 }

◆ 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 
647  for (SG::auxid_t auxid : container.getWritableAuxIDs()) {
648  r.clear (auxid, container, index, 1);
649  }
650 }

◆ 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())
342  container()->clearCache();
343 }

◆ 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 }

◆ 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  }

◆ 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 }

◆ 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;
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();
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 }

◆ covMatrixComprIndexPairs()

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

Definition at line 694 of file TrackParticle_v1.cxx.

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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 }

◆ getConstStore()

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

Return the current store, as a const interface.

This will be non-zero if either a const or non-const store is associated with this object. This will fetch either a private or standalone store.

Definition at line 304 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())
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 }

◆ getStore()

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

Return the current store, as a non-const interface.

This will be non-zero if a non-const store is associated with this object. This will fetch either a private or standalone store.

Definition at line 319 of file AuxElement.cxx.

320 {
321  if (havePrivateData()) {
322 #ifdef ATHCONTAINERS_R21_COMPAT
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 }

◆ 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() [1/2]

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

Return the index of this element within its container.

◆ index() [2/2]

size_t SG::IAuxElement::index
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  }

◆ 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.
95  uint8_t hypo = particleHypothesis();
96  if (hypo == xAOD::electron) {
97  // Since GX2 also set sometimes the hypo to electron
98  // lets also check for GSF.
102  }
103  }
104  if (hypo == xAOD::muon) {
106  }
107  // default charged pion
109  }

◆ 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 
201 }

◆ 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 }

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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),
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  }

◆ 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 }

◆ 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 }

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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  }

◆ 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 }

◆ 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  }

◆ 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);

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 }

◆ 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;
469  m_container = data;
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 }

◆ 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  {
690  // Set the value:
691  ( *acc )( *this ) = value;
692  }

◆ 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  }

◆ 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!");
}
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  {
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  }

◆ 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  }

◆ 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:
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

constexpr 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:
python.CaloBCIDAvgAlgConfig.acc3
def acc3
Definition: CaloBCIDAvgAlgConfig.py:69
SG::AuxVectorData::getConstStore
const SG::IConstAuxStore * getConstStore() const
Return the current store, as a const interface.
SGTest::store
TestStore store
Definition: TestStore.cxx:23
beamspotman.r
def r
Definition: beamspotman.py:672
LArSamples::FitterData::fitter
const ShapeFitter * fitter
Definition: ShapeFitter.cxx:23
SG::ConstAuxElement::getAuxIDs
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.
Definition: AuxElement.cxx:153
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:196
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
xAOD::AmgSymMatrix
AmgSymMatrix(N) toEigen(const ConstMatrixMap< N > &xAODmat) requires(N > 1)
Definition: MeasurementDefs.h:88
xAOD::TrackParticle_v1::m
virtual double m() const override final
The invariant mass of the particle..
Definition: TrackParticle_v1.cxx:85
xAOD::trackSummaryAccessorV1< float >
const SG::AuxElement::Accessor< float > * trackSummaryAccessorV1< float >(xAOD::SummaryType type)
Definition: TrackSummaryAccessors_v1.cxx:127
get_generator_info.result
result
Definition: get_generator_info.py:21
test_pyathena.px
px
Definition: test_pyathena.py:18
Amg::compress
void compress(const AmgSymMatrix(N) &covMatrix, std::vector< float > &vec)
Definition: EventPrimitivesHelpers.h:56
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:553
xAOD::electron
@ electron
Definition: TrackingPrimitives.h:195
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:640
SG::Accessor< T >
xAOD::TrackParticle_v1::vx
float vx() const
The x origin for the parameters.
SG::AuxVectorData::getDecorIDs
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
Definition: AuxVectorData.cxx:215
xAOD::TrackParticle_v1::setDefiningParametersCovMatrixDiagVec
void setDefiningParametersCovMatrixDiagVec(const std::vector< float > &vec)
Set the defining parameters covariance matrix using a length 15 vector.
Definition: TrackParticle_v1.cxx:323
xAOD::TrackParticle_v1::charge
float charge() const
Returns the charge.
Definition: TrackParticle_v1.cxx:143
Trk::PerigeeSurface
Definition: PerigeeSurface.h:43
SG::AuxVectorData::getWritableAuxIDs
const SG::auxid_set_t & getWritableAuxIDs() const
Return a set of identifiers for writable data items in this store.
Definition: AuxVectorData.cxx:231
index
Definition: index.py:1
xAOD::TrackFitter
TrackFitter
Enums to identify who created this track and which properties does it have.
Definition: TrackingPrimitives.h:40
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
SG::ConstAuxElement::m_container
const SG::AuxVectorData * m_container
The container of which this object is an element.
Definition: AuxElement.h:335
ParticleConstants::PDG2011::muonMassInMeV
constexpr double muonMassInMeV
the mass of the muon (in MeV)
Definition: ParticleConstants.h:29
xAOD::TrackParticle_v1::vz
float vz() const
The z origin for the parameters.
xAOD::TrackParticle_v1::parameterPX
float parameterPX(unsigned int index) const
Returns the parameter x momentum component, for 'index'.
Definition: TrackParticle_v1.cxx:542
SG::AuxElement::clearAuxHelper
static void clearAuxHelper(AuxVectorData &container, size_t index)
Clear all aux data associated with an element.
Definition: AuxElement.cxx:639
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
xAOD::TrackParticle_v1::m_perigeeParameters
CxxUtils::CachedValue< Trk::Perigee > m_perigeeParameters
Cached MeasuredPerigee, built from this object.
Definition: TrackParticle_v1.h:369
skel.it
it
Definition: skel.GENtoEVGEN.py:407
xAOD::TrackParticle_v1::FourMom_t
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
Definition: TrackParticle_v1.h:73
SG::AuxVectorData::hasNonConstStore
bool hasNonConstStore() const
Return true if this object has an associated non-const store.
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:200
xAOD::TrackingDetails::genvecP4
GenVecFourMom_t genvecP4(float qOverP, float thetaT, float phiT, double m)
Definition: TrackingDetails.h:52
xAOD::TrackParticle_v1::z0
float z0() const
Returns the parameter.
xAOD::TrackParticle_v1::chiSquared
float chiSquared() const
Returns the of the overall track fit.
ParticleTest.tp
tp
Definition: ParticleTest.py:25
xAOD::pion
@ pion
Definition: TrackingPrimitives.h:197
xAOD::TrackParticle_v1::setDefiningParameters
void setDefiningParameters(float d0, float z0, float phi0, float theta, float qOverP)
Set the defining parameters.
Definition: TrackParticle_v1.cxx:169
athena.value
value
Definition: athena.py:124
SG::AuxElement::usingStandaloneStore
bool usingStandaloneStore() const
Test to see if this object is currently using a standalone store.
Definition: AuxElement.cxx:290
SG::ConstAuxElement::setIndexPrivate
bool setIndexPrivate(size_t index, const SG::AuxVectorData *container)
Set the index/container for this element.
Definition: AuxElement.cxx:97
xAOD::TrackingDetails::covMatrixComprIndexPairs
constexpr std::array< std::pair< covMatrixIndex, covMatrixIndex >, COVMATRIX_OFFDIAG_VEC_COMPR_SIZE > covMatrixComprIndexPairs
Definition: TrackingDetails.h:42
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:9
SG::ConstAccessor< T >
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
xAOD::trackSummaryAccessorV1< uint8_t >
const SG::AuxElement::Accessor< uint8_t > * trackSummaryAccessorV1< uint8_t >(xAOD::SummaryType type)
Definition: TrackSummaryAccessors_v1.cxx:25
xAOD::ParameterPosition
ParameterPosition
Enum allowing us to know where in ATLAS the parameters are defined.
Definition: TrackingPrimitives.h:210
MuonR4::to_string
std::string to_string(const SectorProjector proj)
Definition: MsTrackSeeder.cxx:66
SG::ExcConstAuxData
Exception — Non-const operation performed on const aux data.
Definition: Control/AthContainers/AthContainers/exceptions.h:77
SG::IAuxElement::setNoPrivateData
void setNoPrivateData()
Record that this element does not have private data.
x
#define x
xAOD::py
py
Definition: CompositeParticle_v1.cxx:160
xAOD::numberOfBLayerHits
@ numberOfBLayerHits
these are the hits in the first pixel layer, i.e.
Definition: TrackingPrimitives.h:232
xAOD::TrackParticle_v1::d0
float d0() const
Returns the parameter.
Amg::expand
void expand(std::vector< float >::const_iterator it, std::vector< float >::const_iterator, AmgSymMatrix(N) &covMatrix)
Definition: EventPrimitivesHelpers.h:75
xAOD::TrackParticle_v1::parameterX
float parameterX(unsigned int index) const
Returns the parameter x position, for 'index'.
Definition: TrackParticle_v1.cxx:527
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:92
SG::AuxVectorData::getAuxIDs
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items in store associated with this object.
Definition: AuxVectorData.cxx:203
xAOD::TrackingDetails::definingParametersCovMatrix
xAOD::ParametersCovMatrix_t definingParametersCovMatrix(std::span< const float > covMatrixDiag, std::span< const float > covMatrixOffDiag, bool &valid)
Definition: TrackingDetails.h:74
SG::AuxTypeRegistry
Handle mappings between names and auxid_t.
Definition: AuxTypeRegistry.h:61
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
ParticleConstants::PDG2011::chargedPionMassInMeV
constexpr double chargedPionMassInMeV
the mass of the charged pion (in MeV)
Definition: ParticleConstants.h:41
SG::IAuxElement::index
size_t index() const
Return the index of this element within its container.
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
CxxUtils::vec
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
Definition: vec.h:207
SG::IAuxElement::setHadPrivateData
void setHadPrivateData()
Record that this element used to have private data.
xAOD::TrackParticle_v1::p4
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Definition: TrackParticle_v1.cxx:122
xAOD::TrackParticle_v1::parameterY
float parameterY(unsigned int index) const
Returns the parameter y position, for 'index'.
Definition: TrackParticle_v1.cxx:532
xAOD::TrackProperties
TrackProperties
Definition: TrackingPrimitives.h:66
calibdata.valid
list valid
Definition: calibdata.py:44
xAOD::TrackParticle_v1::parameterPY
float parameterPY(unsigned int index) const
Returns the parameter y momentum component, for 'index'.
Definition: TrackParticle_v1.cxx:547
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
xAOD::TrackParticle_v1::definingParametersCovMatrixOffDiagCompr
bool definingParametersCovMatrixOffDiagCompr() const
Definition: TrackParticle_v1.cxx:358
xAOD::TrackingDetails::definingParametersCovMatrixOffDiagCompr
bool definingParametersCovMatrixOffDiagCompr(std::span< const float > covMatrixOffDiag)
Definition: TrackingDetails.h:65
xAOD::TrackParticle_v1::trackFitter
TrackFitter trackFitter() const
Returns the fitter.
Definition: TrackParticle_v1.cxx:628
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
SG::AuxElement::copyAux
void copyAux(const ConstAuxElement &other, bool warnUnlocked=false)
Copy aux data from another object.
Definition: AuxElement.cxx:600
xAOD::FirstMeasurement
@ FirstMeasurement
Parameter defined at the position of the 1st measurement.
Definition: TrackingPrimitives.h:214
SG::AuxElement::AuxElement
AuxElement()
Default constructor.
python.CaloBCIDAvgAlgConfig.acc1
def acc1
Definition: CaloBCIDAvgAlgConfig.py:49
xAOD::covMatrix
covMatrix
Definition: TrackMeasurement_v1.cxx:19
SG::IAuxElement::havePrivateData
bool havePrivateData() const
True if this element currently has private data.
ATHCONTAINERS_WARNING
#define ATHCONTAINERS_WARNING(ctx, msg)
Definition: error.h:57
xAOD::GaussianSumFilter
@ GaussianSumFilter
Tracks from Gaussian Sum Filter.
Definition: TrackingPrimitives.h:50
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
SG::AuxVectorData::getStore
SG::IAuxStore * getStore()
Return the current store, as a non-const interface.
CalibDbCompareRT.dummy
dummy
Definition: CalibDbCompareRT.py:59
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
SG::ConstAuxElement::getDecorIDs
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
Definition: AuxElement.cxx:172
python.CaloBCIDAvgAlgConfig.acc2
def acc2
Definition: CaloBCIDAvgAlgConfig.py:59
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
SG::AuxElementPrivateData
Internal data container for private store.
Definition: AuxElement.cxx:46
python.getProblemFolderFromLogs.el
dictionary el
Definition: getProblemFolderFromLogs.py:48
xAOD::TrackParticle_v1::covMatrixIndexPairVec
std::vector< std::pair< covMatrixIndex, covMatrixIndex > > covMatrixIndexPairVec
Definition: TrackParticle_v1.h:351
xAOD::TrackParticle_v1::genvecP4
GenVecFourMom_t genvecP4() const
The full 4-momentum of the particle : GenVector form.
Definition: TrackParticle_v1.cxx:118
Trk::CurvilinearParametersT
Definition: CurvilinearParametersT.h:48
xAOD::TrackParticle_v1::parameterPosition
xAOD::ParameterPosition parameterPosition(unsigned int index) const
Return the ParameterPosition of the parameters at 'index'.
Definition: TrackParticle_v1.cxx:577
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
SG::AuxVectorData::hasStore
bool hasStore() const
Return true if this object has an associated store.
python.LArRecUtilsConfig.acc4
def acc4
Definition: LArRecUtilsConfig.py:196
python.LArRecUtilsConfig.acc5
def acc5
Definition: LArRecUtilsConfig.py:205
xAOD::TrackingDetails::charge
float charge(float qOverP)
Definition: TrackingDetails.h:47
xAOD::TrackParticle_v1::particleHypothesis
ParticleHypothesis particleHypothesis() const
Returns the particle hypothesis used for Track fitting.
Definition: TrackParticle_v1.cxx:658
python.LuminosityCondAlgConfig.acc6
def acc6
Definition: LuminosityCondAlgConfig.py:254
xAOD::TrackParticle_v1::covMatrixIndex
TrackingDetails::covMatrixIndex covMatrixIndex
Definition: TrackParticle_v1.h:349
xAOD::TrackParticle_v1::phi0
float phi0() const
Returns the parameter, which has range to .
Definition: TrackParticle_v1.cxx:150
xAOD::TrackParticle_v1::qOverP
float qOverP() const
Returns the parameter.
xAOD::TrackParticle_v1::definingParametersCovMatrix
const ParametersCovMatrix_t definingParametersCovMatrix() const
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.
Definition: TrackParticle_v1.cxx:238
Amg
Definition of ATLAS Math & Geometry primitives (Amg)
Definition: AmgStringHelpers.h:19
xAOD::TrackParticle_v1::vy
float vy() const
The y origin for the parameters.
SG::IAuxElement::setHavePrivateData
void setHavePrivateData()
Record that this element currently has private data.
xAOD::TrackParticle_v1::parameterPZ
float parameterPZ(unsigned int index) const
Returns the parameter z momentum component, for 'index'.
Definition: TrackParticle_v1.cxx:552
SG::AuxVectorData::clearCache
void clearCache()
Clear the cached aux data pointers.
xAOD::Fatras
@ Fatras
Track from FATRAS.
Definition: TrackingPrimitives.h:116
python.LuminosityCondAlgConfig.acc7
def acc7
Definition: LuminosityCondAlgConfig.py:262
SG::AuxElement::makePrivateStore
void makePrivateStore()
Create a new (empty) private store for this object.
Definition: AuxElement.cxx:192
xAOD::TrackParticle_v1::e
virtual double e() const override final
The total energy of the particle.
Definition: TrackParticle_v1.cxx:111
xAOD::TrackParticle_v1::numberOfParameters
size_t numberOfParameters() const
Returns the number of additional parameters stored in the TrackParticle.
Definition: TrackParticle_v1.cxx:483
xAOD::TrackParticle_v1::setDefiningParametersCovMatrix
void setDefiningParametersCovMatrix(const ParametersCovMatrix_t &cov)
Set the defining parameters covariance matrix.
Definition: TrackParticle_v1.cxx:205
xAOD::ParticleHypothesis
ParticleHypothesis
Definition: TrackingPrimitives.h:193
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:16
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:39
xAOD::TrackParticle_v1::time
float time() const
Returns the time.
SG::AuxElement::hasStore
bool hasStore() const
Return true if this object has an associated store.
Definition: AuxElement.cxx:398
python.PyAthena.v
v
Definition: PyAthena.py:154
xAOD::IParticle::IParticle
IParticle()=default
SG::IAuxElement::setIndex
void setIndex(size_t index)
Set the index of this element within its container.
xAOD::NumberOfTrackFitters
@ NumberOfTrackFitters
maximum number of enums
Definition: TrackingPrimitives.h:62
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
y
#define y
SG::AuxVectorData::clearDecorations
bool clearDecorations() const
Clear all decorations.
Definition: AuxVectorData.cxx:653
xAOD::TrackParticle_v1::COVMATRIX_OFFDIAG_VEC_COMPR_SIZE
static const std::size_t COVMATRIX_OFFDIAG_VEC_COMPR_SIZE
Definition: TrackParticle_v1.h:350
SG::ExcBadPrivateStore
Exception — Bad use of private store.
Definition: Control/AthContainers/AthContainers/exceptions.h:113
SG::Accessor::isAvailableWritable
bool isAvailableWritable(ELT &e) const
Test to see if this variable exists in the store and is writable.
Amg::Translation3D
Eigen::Translation< double, 3 > Translation3D
Definition: GeoPrimitives.h:44
SG::IConstAuxStore::getDecorIDs
virtual const SG::auxid_set_t & getDecorIDs() const =0
Return a set of identifiers for decorations in this store.
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
xAOD::TrackParticle_v1::setDefiningParametersCovMatrixOffDiagVec
void setDefiningParametersCovMatrixOffDiagVec(const std::vector< float > &vec)
Set the off-diagonal elements of the defining parameters covariance matrix.
Definition: TrackParticle_v1.cxx:337
xAOD::TrackParticle_v1::parameterZ
float parameterZ(unsigned int index) const
Returns the parameter z position, for 'index'.
Definition: TrackParticle_v1.cxx:537
SG::auxid_set_t
A set of aux data identifiers.
Definition: AuxTypes.h:47
SG::ConstAccessor::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Amg::AngleAxis3D
Eigen::AngleAxisd AngleAxis3D
Definition: GeoPrimitives.h:45
xAOD::TrackParticle_v1::numberDoF
float numberDoF() const
Returns the number of degrees of freedom of the overall track or vertex fit as float.
xAOD::TrackParticle_v1::setTime
void setTime(float time)
SG::AuxVectorData
Manage lookup of vectors of auxiliary data.
Definition: AuxVectorData.h:164
calibdata.copy
bool copy
Definition: calibdata.py:26
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
SG::ConstAuxElement::releasePrivateStoreForDtor
void releasePrivateStoreForDtor()
Out-of-line portion of destructor.
Definition: AuxElement.cxx:80
SG::AuxElement::container
const SG::AuxVectorData * container() const
Return the container holding this element.
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
xAOD::ParametersCovMatrixFilled_t
Eigen::Matrix< bool, 5, 5, 0, 5, 5 > ParametersCovMatrixFilled_t
Definition: TrackingPrimitives.h:35
xAODTrackParticlePrivate::covarianceUnsetHook
void covarianceUnsetHook()
Function that would be possible to use to debug what client is trying to access covariance matrix fro...
Definition: TrackParticle_v1.cxx:29
pow
constexpr int pow(int base, int exp) noexcept
Definition: ap_fixedTest.cxx:15
xAOD::TrackParticle_v1::theta
float theta() const
Returns the parameter, which has range 0 to .
Trk::numberOfCscPhiHits
@ numberOfCscPhiHits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:107
SG::IAuxElement::hadPrivateData
bool hadPrivateData() const
True if this element had private data before it was added to its current container.
xAOD::IParticle::operator=
IParticle & operator=(const IParticle &)=default
SG::AuxElement::copyAuxHelper
static void copyAuxHelper(AuxVectorData &container, size_t index, const ConstAuxElement &other, bool warnUnlocked)
Copy aux data from another object.
Definition: AuxElement.cxx:667
xAOD::TrackParticle_v1::covMatrixComprIndexPairs
static const covMatrixIndexPairVec & covMatrixComprIndexPairs()
Definition: TrackParticle_v1.cxx:694
SG::IConstAuxStore::getAuxIDs
virtual const SG::auxid_set_t & getAuxIDs() const =0
Return a set of identifiers for existing data items in this store.
SG::AuxElement::setStore1
AuxElementStandaloneData * setStore1(const SG::IConstAuxStore *store)
Set the store associated with this object.
Definition: AuxElement.cxx:461
xAOD::TrackParticle_v1::phi
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
fitman.k
k
Definition: fitman.py:528
CxxUtils::ConcurrentBitset::test
bool test(bit_t bit) const
Test to see if a bit is set.
ParticleConstants::PDG2011::electronMassInMeV
constexpr double electronMassInMeV
the mass of the electron (in MeV)
Definition: ParticleConstants.h:26