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>>
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>>
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>>
bool isAvailableWritable (const std::string &name, const std::string &clsname="")
 Check if an aux variable is available for writing. 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>>
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>>
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>>
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>>
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>>
Decorator< T, ALLOC >::reference_type auxdecor (const std::string &name, const std::string &clsname) const
 Fetch an aux decoration, as a non-const reference. More...
 
void makePrivateStore ()
 Create a new (empty) private store for this object. More...
 
template<class U1 >
void makePrivateStore (const U1 &other)
 Create a new private store for this object and copy aux data. More...
 
template<class U1 >
void makePrivateStore (const U1 *other)
 Create a new private store for this object and copy aux data. More...
 
void releasePrivateStore ()
 Release and free any private store associated with this object. More...
 
void setStore (const SG::IConstAuxStore *store)
 Set the store associated with this object. More...
 
void setStore (SG::IAuxStore *store)
 Set the store associated with this object. More...
 
void setStore (const DataLink< SG::IConstAuxStore > &store)
 Set the store associated with this object. More...
 
void setConstStore (const SG::IConstAuxStore *store)
 Synonym for setStore with IConstAuxStore. More...
 
void setNonConstStore (SG::IAuxStore *store)
 Synonym for setStore with IAuxStore. More...
 
bool usingPrivateStore () const
 Test to see if this object is currently using a private store. More...
 
bool usingStandaloneStore () const
 Test to see if this object is currently using a standalone store. More...
 
const SG::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...
 
bool hasStore () const
 Return true if this object has an associated store. More...
 
bool hasNonConstStore () const
 Return true if this object has an associated non-const store. More...
 
bool clearDecorations () const
 Clear all decorations. More...
 
bool trackIndices () const
 Return true if index tracking is enabled for this object. More...
 
size_t index () const
 Return the index of this element within its container. More...
 
size_t index () const
 Return the index of this element within its container. More...
 

Static Public Attributes

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

Protected Member Functions

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

Private Types

enum  covMatrixIndex {
  d0_index =0, z0_index =1, phi_index =2, th_index =3,
  qp_index =4
}
 
typedef std::vector< std::pair< covMatrixIndex, covMatrixIndex > > covMatrixIndexPairVec
 
enum  PrivateStoreState : uint8_t { PrivateStoreState::NO_PRIVATE = 0, PrivateStoreState::HAVE_PRIVATE = 1, PrivateStoreState::HAD_PRIVATE = 2 }
 The current private data state. More...
 

Private Member Functions

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

Static Private Member Functions

static const covMatrixIndexPairVeccovMatrixComprIndexPairs ()
 

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 = 6
 

Functions for getting and setting user properties

template<class T >
T & auxdata (const std::string &name, const std::string &clsname="")
 Fetch an aux data variable, as a non-const reference. More...
 
template<class T >
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 >
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 >
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 43 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 522 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 519 of file AuxElement.h.

◆ covMatrixIndexPairVec

Definition at line 350 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 525 of file AuxElement.h.

◆ FourMom_t

Definition of the 4-momentum type.

Definition at line 72 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 78 of file TrackParticle_v1.h.

◆ TypelessConstAccessor

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

Definition at line 516 of file AuxElement.h.

Member Enumeration Documentation

◆ covMatrixIndex

Enumerator
d0_index 
z0_index 
phi_index 
th_index 
qp_index 

Definition at line 348 of file TrackParticle_v1.h.

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

46  : IParticle() {
47  // perigeeParameters cache initialized to be empty (default constructor)
48  }

◆ ~TrackParticle_v1()

xAOD::TrackParticle_v1::~TrackParticle_v1 ( )

Destructor.

Definition at line 71 of file TrackParticle_v1.cxx.

71 {}

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

51  : IParticle( tp ) {
53  // perigeeParameters cache initialized to be empty (default constructor)
54  // assume that this copy will create new cache as needed
55  }

Member Function Documentation

◆ auxdata() [1/4]

template<class T , class ALLOC = AuxAllocator_t<T>>
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>>
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 >
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 modifyable reference to the decoration

Definition at line 96 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

97  {
98 
99  return SG::AuxElement::auxdata< T >( name, clsname );
100  }

◆ auxdata() [4/4]

template<class T >
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 115 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

116  {
117 
118  return SG::AuxElement::auxdata< T >( name, clsname );
119  }

◆ auxdataConst() [1/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
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>>
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>>
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>>
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 150 of file TrackParticle_v1.cxx.

150  {
151  // static Accessor< float > acc( "charge" );
152  return (qOverP() > 0) ? 1 : ((qOverP() < 0) ? -1 : 0);
153  }

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

536 {
537  if (!m_container) return;
538  if (!m_container->hasStore()) return;
540  throw SG::ExcConstAuxData ("clearAux", SG::null_auxid);
541 
543  for (SG::auxid_t auxid : m_container->getWritableAuxIDs()) {
544  r.clear (auxid, *container(), index(), 1);
545  }
546 }

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

320 {
321  if (container())
322  container()->clearCache();
323 }

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

386 {
387  if (havePrivateData())
388  return m_container->clearDecorations();
389  return false;
390 }

◆ compressDefiningParametersCovMatrixOffDiag()

void xAOD::TrackParticle_v1::compressDefiningParametersCovMatrixOffDiag ( )

Delete some off-diagonal elements for compression.

Definition at line 436 of file TrackParticle_v1.cxx.

436  {
437 
438  ParametersCovMatrix_t cov = definingParametersCovMatrix();
439  std::vector< float > offDiagVecCompr;
440  offDiagVecCompr.resize(COVMATRIX_OFFDIAG_VEC_COMPR_SIZE);
441 
442  const covMatrixIndexPairVec& vecPairIndex = covMatrixComprIndexPairs();
443 
444  for(unsigned int k=0; k<COVMATRIX_OFFDIAG_VEC_COMPR_SIZE; ++k){
445  std::pair<covMatrixIndex,covMatrixIndex> pairIndex = vecPairIndex[k];
446  covMatrixIndex i = pairIndex.first;
447  covMatrixIndex j = pairIndex.second;
448  float offDiagElement = cov(i,i)>0 && cov(j,j)>0 ? cov(i,j)/sqrt(cov(i,i)*cov(j,j)) : 0;
449  offDiagVecCompr[k] = offDiagElement;
450  }
451 
452  accCovMatrixOffDiag( *this ) = offDiagVecCompr;
453  return;
454 
455  }

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

Copy aux data from another object.

Parameters
otherThe object from which to copy.

If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData.

All aux data items from other are copied to this object. Any aux data items associated with this object that are not present in other are cleared. (If other has no aux data, then all aux data items for this object are cleared.)

Definition at line 561 of file AuxElement.cxx.

562 {
563  if (!m_container) return;
564  if (!m_container->hasStore()) return;
566  throw SG::ExcConstAuxData ("copyAux");
567 
568  const SG::AuxVectorData* ocont = other.container();
569 
570  if (!ocont || !ocont->hasStore()) {
571  this->clearAux();
572  return;
573  }
574 
575  size_t oindex = other.index();
576  SG::auxid_set_t other_ids = ocont->getAuxIDs();
577 
579 
580  SG::AuxVectorData& cont = *container();
581  for (SG::auxid_t auxid : other_ids) {
582  r.copy (auxid, cont, index(), *ocont, oindex, 1);
583  }
584 
585  for (SG::auxid_t auxid : m_container->getWritableAuxIDs()) {
586  if (!other_ids.test (auxid)) {
587  r.clear (auxid, cont, index(), 1);
588  }
589  }
590 }

◆ covMatrixComprIndexPairs()

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

Definition at line 764 of file TrackParticle_v1.cxx.

764  {
765  static const covMatrixIndexPairVec result {
768  return result;
769  }

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

673  {
674 
675  static const Accessor< std::vector<float> > acc( "trackParameterCovarianceMatrices" );
676  unsigned int offset = index*15;
677  // copy the correct values into the temp matrix
678  ParametersCovMatrix_t cov;
679  auto it = acc(*this).begin()+offset;
680  Amg::expand(it,it+15,cov);
681  // retrieve the parameters to build the curvilinear frame
684  Trk::CurvilinearParameters param(pos,mom,charge(),std::move(cov));
685 
686  return param;
687  }

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

171  {
172  DefiningParameters_t tmp;
173  tmp << d0() , z0() , phi0() , theta() , qOverP();
174  return tmp;
175  }

◆ definingParametersCovMatrix()

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

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

Definition at line 246 of file TrackParticle_v1.cxx.

246  {
247 
248  // Set up the result matrix.
249  xAOD::ParametersCovMatrix_t cov;
250  cov.setZero();
251 
252  // Set the diagonal elements of the matrix.
253  if( accCovMatrixDiag.isAvailable( *this ) &&
254  ( static_cast< int >( accCovMatrixDiag( *this ).size() ) == cov.rows() ) ) {
255 
256  // Access the "raw" variable.
257  const std::vector< float >& diagVec = accCovMatrixDiag( *this );
258  // Set the diagonal elements using the raw variable.
259  for( int i = 0; i < cov.rows(); ++i ) {
260  cov( i, i ) = diagVec[ i ];
261  }
262  } else {
264  // If the variable is not available/set, set the matrix to identity.
265  cov.setIdentity();
266  }
267 
268  bool offDiagCompr = definingParametersCovMatrixOffDiagCompr();
269 
270  // Set the off-diagonal elements of the matrix.
271  if(!offDiagCompr){
272 
273  if( accCovMatrixOffDiag.isAvailable( *this ) &&
274  ( static_cast< int >( accCovMatrixOffDiag( *this ).size() ) ==
275  ( ( ( cov.rows() - 1 ) * cov.rows() ) / 2 ) ) ) {
276 
277  // Access the "raw" variable.
278  const std::vector< float >& offDiagVec = accCovMatrixOffDiag( *this );
279  // Set the off-diagonal elements using the raw variable.
280  std::size_t vecIndex = 0;
281  for( int i = 1; i < cov.rows(); ++i ) {
282  for( int j = 0; j < i; ++j, ++vecIndex ) {
283  float offDiagCoeff = cov(i,i)>0 && cov(j,j)>0 ? offDiagVec[vecIndex]*sqrt(cov(i,i)*cov(j,j)) : 0;
284  cov.fillSymmetric( i, j, offDiagCoeff );
285  }
286  }
287  }
288 
290 
291  }
292 
293  else{ //Compressed case
294 
295  if( accCovMatrixOffDiag.isAvailable( *this ) &&
296  ( static_cast< int >( accCovMatrixOffDiag( *this ).size() ) == COVMATRIX_OFFDIAG_VEC_COMPR_SIZE ) ) {
297  // Access the "raw" variable.
298  const std::vector< float >& offDiagVec = accCovMatrixOffDiag( *this );
299  // Set the off-diagonal elements using the raw variable.
300 
301  const covMatrixIndexPairVec& vecPairIndex = covMatrixComprIndexPairs();
302 
303  for(unsigned int k=0; k<COVMATRIX_OFFDIAG_VEC_COMPR_SIZE; ++k){
304  std::pair<covMatrixIndex,covMatrixIndex> pairIndex = vecPairIndex[k];
305  covMatrixIndex i = pairIndex.first;
306  covMatrixIndex j = pairIndex.second;
307  float offDiagCoeff = cov(i,i)>0 && cov(j,j)>0 ? offDiagVec[k]*sqrt(cov(i,i)*cov(j,j)) : 0;
308  cov.fillSymmetric( i, j, offDiagCoeff );
309  }
310 
311  }
312 
314 
315  }
316 
317 
318  // Return the filled matrix.
319  return cov;
320 
321  }

◆ definingParametersCovMatrixDiagVec()

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

Returns the diagonal elements of the defining parameters covariance matrix.

Definition at line 375 of file TrackParticle_v1.cxx.

375  {
376 
377  return accCovMatrixDiag( *this );
378  }

◆ definingParametersCovMatrixFilled()

ParametersCovMatrixFilled_t xAOD::TrackParticle_v1::definingParametersCovMatrixFilled ( ) const

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

Definition at line 323 of file TrackParticle_v1.cxx.

323  {
324 
325  // Create the result matrix.
327  result.setZero();
328 
329  // Check if the diagonal elements are available.
330  if( accCovMatrixDiag.isAvailable( *this ) &&
331  ( static_cast< int >( accCovMatrixDiag( *this ).size() ) == result.rows() ) ) {
332 
333  result.setIdentity();
334  }
335 
336  bool offDiagCompr = definingParametersCovMatrixOffDiagCompr();
337 
338  if(!offDiagCompr){
339 
340  // Check if the off-diagonal elements are available.
341  if( accCovMatrixOffDiag.isAvailable( *this ) &&
342  ( static_cast< int >( accCovMatrixOffDiag( *this ).size() ) ==
343  ( ( result.rows() * ( result.rows() - 1 ) ) / 2 ) ) ) {
344 
345  for( int i = 1; i < result.rows(); ++i ) {
346  for( int j = 0; j < i; ++j ) {
347  result.fillSymmetric( i, j, true );
348  }
349  }
350  }
351 
352  }
353 
354  else{
355 
356  if( accCovMatrixOffDiag.isAvailable( *this ) &&
357  ( static_cast< int >( accCovMatrixOffDiag( *this ).size() ) == COVMATRIX_OFFDIAG_VEC_COMPR_SIZE ) ){
358 
359  const covMatrixIndexPairVec& vecPairIndex = covMatrixComprIndexPairs();
360 
361  for(const auto& pairIndex : vecPairIndex){
362  covMatrixIndex i = pairIndex.first;
363  covMatrixIndex j = pairIndex.second;
364  result.fillSymmetric( i, j, true );
365  }
366 
367  }
368 
369  }
370 
371  // Return the object.
372  return result;
373  }

◆ definingParametersCovMatrixOffDiagCompr()

bool xAOD::TrackParticle_v1::definingParametersCovMatrixOffDiagCompr ( ) const

Definition at line 429 of file TrackParticle_v1.cxx.

429  {
430 
431  bool flag = false;
432  if(accCovMatrixOffDiag.isAvailable( *this )) flag = (static_cast< int >(accCovMatrixOffDiag( *this ).size())==COVMATRIX_OFFDIAG_VEC_COMPR_SIZE);
433  return flag;
434  }

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

380  {
381 
382  return accCovMatrixOffDiag( *this );
383  }

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

385  {
386 
387  std::vector< float > vec;
389  Amg::compress(cov,vec);
390  return vec;
391 
392  }

◆ e()

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

The total energy of the particle.

Implements xAOD::IParticle.

Definition at line 109 of file TrackParticle_v1.cxx.

109  {
110  return genvecP4().E();
111  }

◆ eta()

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

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

Implements xAOD::IParticle.

Definition at line 77 of file TrackParticle_v1.cxx.

77  {
78  return genvecP4().Eta();
79  }

◆ genvecP4()

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

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

Definition at line 116 of file TrackParticle_v1.cxx.

116  {
117  using namespace std;
118  float p = 10.e6; // 10 TeV (default value for very high pt muons, with qOverP==0)
119  if (fabs(qOverP())>0.) p = 1/fabs(qOverP());
120  float thetaT = theta();
121  float phiT = phi();
122  float sinTheta= sin(thetaT);
123  float px = p*sinTheta*cos(phiT);
124  float py = p*sinTheta*sin(phiT);
125  float pz = p*cos(thetaT);
126  return GenVecFourMom_t(px, py, pz, m());
127  }

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

336 {
337 #ifdef ATHCONTAINERS_R21_COMPAT
338  if (havePrivateData())
339  return m_container->getConstStore()->getAuxIDs();
340  if (container())
341  return container()->getAuxIDs();
342  static const SG::auxid_set_t null_set;
343  return null_set;
344 #else
346 #endif
347 }

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

285 {
286  if (havePrivateData()) {
287  return m_container->getConstStore();
288  }
289  return 0;
290 }

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

300 {
301  if (havePrivateData()) {
302 #ifdef ATHCONTAINERS_R21_COMPAT
304 #else
305  SG::AuxVectorData* container_nc ATLAS_THREAD_SAFE = const_cast<SG::AuxVectorData*>(container());
306 #endif
307  return container_nc->getStore();
308  }
309  return 0;
310 }

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

369 {
370  if (havePrivateData())
371  return m_container->hasNonConstStore();
372  return false;
373 }

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

356 {
357  if (havePrivateData())
358  return m_container->hasStore();
359  return false;
360 }

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

654  {
655  size_t maxParameters = numberOfParameters();
656  bool foundParameters=false;
657  for (size_t i=0; i<maxParameters; ++i){
658  if (parameterPosition(i)==position){
659  foundParameters=true;
660  index=i;
661  break;
662  }
663  }
664  return foundParameters;
665  }

◆ isAvailable()

template<class T >
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 131 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

132  {
133 
134  return SG::AuxElement::isAvailable< T >( name, clsname );
135  }

◆ isAvailableWritable() [1/2]

template<class T , class ALLOC = AuxAllocator_t<T>>
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 >
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 147 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

148  {
149 
150  return SG::AuxElement::isAvailableWritable< T >( name, clsname );
151  }

◆ isAvailableWritableAsDecoration()

template<class T , class ALLOC = AuxAllocator_t<T>>
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 83 of file TrackParticle_v1.cxx.

83  {
84  // Codes using a fitter set a hypothesis, and the
85  // particular fitter that was employed..
86  // A mass is never set/stored.
87  //
88  // In the past we were returning the mass of a charged pion always
89  //
90  // This created a confusion on why TrackParticles created by
91  // specific lepton fitter have a pion mass (the leptons per se have the
92  // correct mass). Lets try to remedy this.
93  uint8_t hypo = particleHypothesis();
94  if (hypo == xAOD::electron) {
95  // Since GX2 also set sometimes the hypo to electron
96  // lets also check for GSF.
99  return 0.510998;
100  }
101  }
102  if (hypo == xAOD::muon) {
103  return 105.658367;
104  }
105  // default charged pion
106  return 139.570;
107  }

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

173 {
174  if (m_container) {
175  throw SG::ExcBadPrivateStore ("store already exists");
176  }
177 
181 }

◆ makePrivateStore() [2/3]

template<class U1 >
void SG::AuxElement::makePrivateStore ( const U1 &  other)
inherited

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

Parameters
otherThe object from which aux data should be copied.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

If other is an object that has aux data, then those data will be copied; otherwise, nothing will be done.

◆ makePrivateStore() [3/3]

template<class U1 >
void SG::AuxElement::makePrivateStore ( const U1 *  other)
inherited

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

Parameters
otherThe object from which aux data should be copied.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

If other is an object that has aux data, then those data will be copied; otherwise, nothing will be done.

◆ makePrivateStore1() [1/2]

void SG::AuxElement::makePrivateStore1 ( const AuxElement other)
privateinherited

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

Parameters
otherThe object from which aux data should be copied.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

This overload handles the case where other does have aux data.

Definition at line 521 of file AuxElement.cxx.

522 {
524  if (other)
525  this->copyAux (*other);
526 }

◆ makePrivateStore1() [2/2]

void SG::AuxElement::makePrivateStore1 ( const void *  )
privateinherited

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

Parameters
otherThe object from which aux data should be copied.

ExcBadPrivateStore will be thrown if this object is already associated with a store.

This overload handles the case where other does not have aux data.

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

553  {
555  static const Accessor< std::vector<uint8_t> > acc( "parameterPosition" );
556  if(! acc.isAvailable( *this )) return 0;
557  return acc(*this).size();
558  }

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

57  {
58  if(this == &tp) return *this;
59 
60  if( ( ! hasStore() ) && ( ! container() ) ) {
62  }
63  this->IParticle::operator=( tp );
64 #ifndef XAOD_ANALYSIS
65  // assume that this copy will create new cache as needed
66  m_perigeeParameters.reset();
67 #endif // not XAOD_ANALYSIS
68  return *this;
69  }

◆ p4()

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

The full 4-momentum of the particle.

Implements xAOD::IParticle.

Definition at line 129 of file TrackParticle_v1.cxx.

129  {
131  using namespace std;
132  float p = 10.e6; // 10 TeV (default value for very high pt muons, with qOverP==0)
133  if (fabs(qOverP())>0.) p = 1/fabs(qOverP());
134  float thetaT = theta();
135  float phiT = phi();
136  float sinTheta= sin(thetaT);
137  float px = p*sinTheta*cos(phiT);
138  float py = p*sinTheta*sin(phiT);
139  float pz = p*cos(thetaT);
140  float e = pow (m(),2) +
141  pow( px,2) + pow( py,2) + pow( pz,2);
142  p4.SetPxPyPzE( px, py, pz, sqrt(e) );
143  return p4;
144  }

◆ parameterPosition()

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

Return the ParameterPosition of the parameters at 'index'.

Definition at line 647 of file TrackParticle_v1.cxx.

648  {
649  static const Accessor< std::vector<uint8_t> > acc( "parameterPosition" );
650  return static_cast<xAOD::ParameterPosition>(acc(*this).at(index));
651  }

◆ parameterPX()

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

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

Definition at line 612 of file TrackParticle_v1.cxx.

612  {
613  static const Accessor< std::vector<float> > acc( "parameterPX" );
614  return acc(*this).at(index);
615  }

◆ parameterPY()

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

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

Definition at line 617 of file TrackParticle_v1.cxx.

617  {
618  static const Accessor< std::vector<float> > acc( "parameterPY" );
619  return acc(*this).at(index);
620  }

◆ parameterPZ()

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

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

Definition at line 622 of file TrackParticle_v1.cxx.

622  {
623  static const Accessor< std::vector<float> > acc( "parameterPZ" );
624  return acc(*this).at(index);
625  }

◆ parameterX()

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

Returns the parameter x position, for 'index'.

Definition at line 597 of file TrackParticle_v1.cxx.

597  {
598  static const Accessor< std::vector<float> > acc( "parameterX" );
599  return acc(*this).at(index);
600  }

◆ parameterY()

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

Returns the parameter y position, for 'index'.

Definition at line 602 of file TrackParticle_v1.cxx.

602  {
603  static const Accessor< std::vector<float> > acc( "parameterY" );
604  return acc(*this).at(index);
605  }

◆ parameterZ()

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

Returns the parameter z position, for 'index'.

Definition at line 607 of file TrackParticle_v1.cxx.

607  {
608  static const Accessor< std::vector<float> > acc( "parameterZ" );
609  return acc(*this).at(index);
610  }

◆ particleHypothesis()

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

Returns the particle hypothesis used for Track fitting.

Definition at line 728 of file TrackParticle_v1.cxx.

728  {
729  static const Accessor<uint8_t> acc("particleHypothesis");
730  if (!acc.isAvailable(*this)) {
731  return xAOD::pion;
732  }
733  return static_cast<xAOD::ParticleHypothesis>(acc(*this));
734  }

◆ patternRecoInfo()

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

Access method for pattern recognition algorithm.

Definition at line 706 of file TrackParticle_v1.cxx.

707  {
708  static const Accessor< uint64_t > acc( "patternRecoInfo" );
709  std::bitset<xAOD::NumberOfTrackRecoInfo> tmp(acc(*this));
710  return tmp;
711  }

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

485  {
486 
487  // Require the cache to be valid and check if the cached pointer has been set
488  if(m_perigeeParameters.isValid()){
489  return *(m_perigeeParameters.ptr());
490  }
491  static const Accessor< float > acc1( "d0" );
492  static const Accessor< float > acc2( "z0" );
493  static const Accessor< float > acc3( "phi" );
494  static const Accessor< float > acc4( "theta" );
495  static const Accessor< float > acc5( "qOverP" );
496  static const Accessor< std::vector<float> > acc6( "definingParametersCovMatrix" );
497  ParametersCovMatrix_t cov = ParametersCovMatrix_t(definingParametersCovMatrix());
498  static const Accessor< float > acc7( "beamlineTiltX" );
499  static const Accessor< float > acc8( "beamlineTiltY" );
500 
501  if(!acc7.isAvailable( *this ) || !acc8.isAvailable( *this )){
502  Trk::Perigee tmpPerigeeParameters(
503  acc1(*this),
504  acc2(*this),
505  acc3(*this),
506  acc4(*this),
507  acc5(*this),
509  std::move(cov));
510  m_perigeeParameters.set(tmpPerigeeParameters);
511  return *(m_perigeeParameters.ptr());
512  }
513 
514  Amg::Translation3D amgtranslation(vx(),vy(),vz());
515  Amg::Transform3D pAmgTransf = amgtranslation * Amg::RotationMatrix3D::Identity();
516  pAmgTransf *= Amg::AngleAxis3D(acc8(*this), Amg::Vector3D(0.,1.,0.));
517  pAmgTransf *= Amg::AngleAxis3D(acc7(*this), Amg::Vector3D(1.,0.,0.));
518  Trk::Perigee tmpPerigeeParameters(acc1(*this),
519  acc2(*this),
520  acc3(*this),
521  acc4(*this),
522  acc5(*this),
523  pAmgTransf,
524  std::move(cov));
525 
526  m_perigeeParameters.set(tmpPerigeeParameters);
527  return *(m_perigeeParameters.ptr());
528  }

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

158  {
159 
160  static const Accessor< float > acc( "phi" );
161  return acc( *this );
162  }

◆ pt()

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

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

Implements xAOD::IParticle.

Definition at line 73 of file TrackParticle_v1.cxx.

73  {
74  return genvecP4().Pt();
75  }

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

112  {
113  return genvecP4().Rapidity();
114  }

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

191 {
192  if (hadPrivateData()) {
193  // We had a private store, but it was released because this object
194  // was added to a container. Just forget about it.
196  return;
197  }
198 
199  if (!havePrivateData() ||
200  !m_container ||
201  typeid(*m_container) != typeid(AuxElementPrivateData))
202  {
203  throw SG::ExcBadPrivateStore ("no private store exists");
204  }
205 
208  delete m_container;
209  m_container = 0;
210 }

◆ releasePrivateStoreForDtor()

void SG::AuxElement::releasePrivateStoreForDtor ( )
privateinherited

Out-of-line portion of destructor.

Delete a private store if we have one.

Definition at line 398 of file AuxElement.cxx.

399 {
400 #ifdef ATHCONTAINERS_R21_COMPAT
401  if (havePrivateData()) {
402  delete m_container;
403  }
404 #else
406 #endif
407 }

◆ resetCache()

void xAOD::TrackParticle_v1::resetCache ( )

Reset the internal cache of the object.

Definition at line 821 of file TrackParticle_v1.cxx.

821  {
822 #ifndef XAOD_ANALYSIS
823  m_perigeeParameters.reset();
824 #endif // not XAOD_ANALYSIS
825  }

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

177  {
178 #ifndef XAOD_ANALYSIS
179  // reset perigee cache if existing
180  if(m_perigeeParameters.isValid()) {
181  m_perigeeParameters.reset();
182  }
183 #endif // not XAOD_ANALYSIS
184  static const Accessor< float > acc1( "d0" );
185  acc1( *this ) = d0;
186 
187  static const Accessor< float > acc2( "z0" );
188  acc2( *this ) = z0;
189 
190  static const Accessor< float > acc3( "phi" );
191  acc3( *this ) = phi0;
192 
193  static const Accessor< float > acc4( "theta" );
194  acc4( *this ) = theta;
195 
196  static const Accessor< float > acc5( "qOverP" );
197  acc5( *this ) = qOverP;
198 
199  return;
200  }

◆ setDefiningParameters() [2/2]

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

Definition at line 202 of file TrackParticle_v1.cxx.

202  {
204  setTime(time);
205  return;
206  }

◆ setDefiningParametersCovMatrix()

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

Set the defining parameters covariance matrix.

Definition at line 213 of file TrackParticle_v1.cxx.

213  {
214 
215 #ifndef XAOD_ANALYSIS
216  // reset perigee cache if existing
217  if(m_perigeeParameters.isValid()) {
218  m_perigeeParameters.reset();
219  }
220 #endif // not XAOD_ANALYSIS
221 
222  // Extract the diagonal elements from the matrix.
223  std::vector< float > diagVec;
224  diagVec.reserve( cov.rows() );
225  for( int i = 0; i < cov.rows(); ++i ) {
226  diagVec.push_back( cov( i, i ) );
227  }
228  // Set the variable.
230 
231  // Extract the off-diagonal elements from the matrix.
232  std::vector< float > offDiagVec;
233  offDiagVec.reserve( ( ( cov.rows() - 1 ) * cov.rows() ) / 2 );
234  for( int i = 1; i < cov.rows(); ++i ) {
235  for( int j = 0; j < i; ++j ) {
236  float offDiagCoeff = (cov( i, i )>0 && cov( j, j )>0) ? cov( i, j )/sqrt(cov( i, i )*cov( j, j )) : 0;
237  offDiagVec.push_back( offDiagCoeff );
238  }
239  }
240  // Set the variable.
242 
243  return;
244  }

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

394  {
395 
396  if (vec.size() != ParametersCovMatrix_t::RowsAtCompileTime) {
397  throw std::runtime_error(
398  "Setting track definingParametersCovMatrixDiag with vector of size " +
399  std::to_string(vec.size()) + " instead of expected " +
400  std::to_string(ParametersCovMatrix_t::RowsAtCompileTime) +
401  " is not supported");
402  }
403 
404  accCovMatrixDiag( *this ) = vec;
405  return;
406  }

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

408  {
409 
410  bool offDiagCompr = definingParametersCovMatrixOffDiagCompr();
411 
412  unsigned int uncompr_size = ( ( ( ParametersCovMatrix_t::RowsAtCompileTime - 1 ) *
413  ParametersCovMatrix_t::RowsAtCompileTime ) / 2 );
414  unsigned int size = offDiagCompr ? COVMATRIX_OFFDIAG_VEC_COMPR_SIZE : uncompr_size;
415 
416  if( !(vec.size() == size || vec.size() == uncompr_size) ){ //If off-diagonal elements are already compressed, can either set with uncompressed or compressed vector
417  throw std::runtime_error(
418  "Setting track definingParametersCovMatrixOffDiag with vector of "
419  "size " +
420  std::to_string(vec.size()) + " instead of expected " +
421  std::to_string(size) + " or " + std::to_string(uncompr_size) +
422  " is not supported");
423  }
424 
425  accCovMatrixOffDiag( *this ) = vec;
426  return;
427  }

◆ setDefiningParametersCovMatrixVec()

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

Definition at line 460 of file TrackParticle_v1.cxx.

460  {
461 
462  xAOD::ParametersCovMatrix_t covMatrix;
463  if( !cov.empty() ) Amg::expand( cov.begin(), cov.end(),covMatrix );
464  else covMatrix.setIdentity();
466 
467  }

◆ setFitQuality()

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

Set the 'Fit Quality' information.

Definition at line 534 of file TrackParticle_v1.cxx.

534  {
535  static const Accessor< float > acc1( "chiSquared" );
536  acc1( *this ) = chiSquared;
537  static const Accessor< float > acc2( "numberDoF" );
538  acc2( *this ) = numberDoF;
539  }

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

463 {
464 #ifdef ATHCONTAINERS_R21_COMPAT
465  if (hadPrivateData()) {
466  // We had a private store, but it was released because we were added
467  // to a container.
468 
469  if (container == 0) {
470  // We're being moved out of the container. Make a new private
471  // store, copy the data, and switch to it.
472  auto privateData = new SG::AuxElementPrivateData;
473  AuxElement to (privateData, 0);
474  to.copyAux (*this);
477  m_container = privateData;
478  return true;
479  }
480  }
481  else if (havePrivateData() &&
482  typeid(*m_container) == typeid(AuxElementPrivateData))
483  {
484  // We currently have a private store.
485 
486  if (container != 0 && container != m_container) {
487  // We're being added to a container.
488  // Aux data has already been copied.
489  // Release private store.
492  delete m_container;
494  return false;
495  }
496  }
497  else {
498  // We have a standalone store.
499  throw SG::ExcBadPrivateStore ("Attempt to add/remove a standalone object "
500  "from a container.");
501  }
502 
505  return false;
506 #else
508 #endif
509 }

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

667  {
668  static const Accessor< std::vector<uint8_t> > acc( "parameterPosition" );
669  acc( *this ).at(index) = static_cast<uint8_t>(pos);
670  }

◆ setParametersOrigin()

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

Set the origin for the parameters.

Definition at line 473 of file TrackParticle_v1.cxx.

473  {
474  static const Accessor< float > acc1( "vx" );
475  acc1( *this ) = x;
476 
477  static const Accessor< float > acc2( "vy" );
478  acc2( *this ) = y;
479 
480  static const Accessor< float > acc3( "vz" );
481  acc3( *this ) = z;
482  }

◆ setParticleHypothesis()

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

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

Definition at line 723 of file TrackParticle_v1.cxx.

723  {
724  static const Accessor<uint8_t> acc("particleHypothesis");
725  acc(*this) = static_cast<uint8_t>(value);
726  }

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

718  {
719  static const Accessor< uint64_t > acc( "patternRecoInfo" );
720  acc( *this ) = patternReco.to_ullong();
721  }

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

713  {
714  static const Accessor< uint64_t > acc( "patternRecoInfo" );
715  acc( *this ) = patternReco;
716  }

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

250 {
251  AuxElementStandaloneData* data = setStore1 (store);
252  if (store)
253  data->setStore (store);
254 }

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

222 {
223  AuxElementStandaloneData* data = setStore1 (store);
224  if (store)
225  data->setStore (store);
226 }

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

238 {
239  AuxElementStandaloneData* data = setStore1 (store);
240  if (store)
241  data->setStore (store);
242 }

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

419 {
420  if (store) {
421  // Want this object be standalone.
422  if (!m_container) {
423  // Not in a container (and no private store). Make a new object.
424  AuxElementStandaloneData* data = new AuxElementStandaloneData;
426  m_container = data;
427  return data;
428  }
429  if (usingStandaloneStore()) {
430  // Standalone --- return existing object.
431  return static_cast<AuxElementStandaloneData*> (container());
432  }
433  // Otherwise, it's an error.
434  throw ExcBadPrivateStore ("Attempt to attach a standalone store to an "
435  "object in a container or with a private store.");
436  }
437 
438  else {
439  // Getting rid of a standalone store.
440  if (usingStandaloneStore()) {
442  delete m_container;
443  m_container = 0;
444  }
445  else if (m_container != 0)
446  throw ExcBadPrivateStore ("Attempt to remove a standalone store from an "
447  "object in a container or with a private store.");
448  return 0;
449  }
450 }

◆ setSummaryValue() [1/2]

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

Set method for TrackSummary values.

Definition at line 758 of file TrackParticle_v1.cxx.

758  {
760  // Set the value:
761  ( *acc )( *this ) = value;
762  }

◆ setSummaryValue() [2/2]

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

Set method for TrackSummary values.

Definition at line 752 of file TrackParticle_v1.cxx.

752  {
754  // Set the value:
755  ( *acc )( *this ) = value;
756  }

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

693  {
694  static const Accessor<uint8_t> acc("trackFitter");
695  acc(*this) = static_cast<uint8_t>(value);
696  }

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

795  {
796 
797  // The accessor:
798  static const Accessor< ElementLink< TrackCollection > > acc( "trackLink" );
799 
800  // Do the deed:
801  acc( *this ) = el;
802  return;
803  }

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

638  {
639  assert(cov.size()==15);
640  unsigned int offset = index*15;
641  static const Accessor< std::vector < float > > acc( "trackParameterCovarianceMatrices" );
642  std::vector<float>& v = acc(*this);
643  v.resize(offset+15);
644  std::copy(cov.begin(),cov.end(),v.begin()+offset );
645  }

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

567  {
568  static const Accessor< std::vector < float > > acc1( "parameterX" );
569  static const Accessor< std::vector < float > > acc2( "parameterY" );
570  static const Accessor< std::vector < float > > acc3( "parameterZ" );
571  static const Accessor< std::vector < float > > acc4( "parameterPX" );
572  static const Accessor< std::vector < float > > acc5( "parameterPY" );
573  static const Accessor< std::vector < float > > acc6( "parameterPZ" );
574  static const Accessor< std::vector<uint8_t> > acc7( "parameterPosition" );
575 
576  acc1(*this).resize(parameters.size());
577  acc2(*this).resize(parameters.size());
578  acc3(*this).resize(parameters.size());
579  acc4(*this).resize(parameters.size());
580  acc5(*this).resize(parameters.size());
581  acc6(*this).resize(parameters.size());
582  acc7(*this).resize(parameters.size());
583 
584  unsigned int index=0;
585  std::vector<std::vector<float> >::const_iterator it=parameters.begin(), itEnd=parameters.end();
586  for (;it!=itEnd;++it,++index){
587  assert((*it).size()==6);
588  acc1(*this).at(index)=(*it).at(0);
589  acc2(*this).at(index)=(*it).at(1);
590  acc3(*this).at(index)=(*it).at(2);
591  acc4(*this).at(index)=(*it).at(3);
592  acc5(*this).at(index)=(*it).at(4);
593  acc6(*this).at(index)=(*it).at(5);
594  }
595  }

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

744  {
746  if( ( ! acc ) || ( ! acc->isAvailable( *this ) ) ) return false;
747  // Retrieve the value:
748  value = ( *acc )( *this );
749  return true;
750  }

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

736  {
738  if( ( ! acc ) || ( ! acc->isAvailable( *this ) ) ) return false;
739  // Retrieve the value:
740  value = ( *acc )( *this );
741  return true;
742  }

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

805  {
806 
807  // The accessor:
808  static const ConstAccessor< ElementLink< TrackCollection > > acc( "trackLink" );
809 
810  if( ! acc.isAvailable( *this ) ) {
811  return nullptr;
812  }
813  if( ! acc( *this ).isValid() ) {
814  return nullptr;
815  }
816 
817  return *( acc( *this ) );
818  }

◆ trackFitter()

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

Returns the fitter.

Definition at line 698 of file TrackParticle_v1.cxx.

698  {
699  static const Accessor<uint8_t> acc("trackFitter");
700  if (!acc.isAvailable(*this)) {
702  }
703  return static_cast<xAOD::TrackFitter>(acc(*this));
704  }

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

779  {
780 
781  // The accessor:
782  static const ConstAccessor< ElementLink< TrackCollection > > acc( "trackLink" );
783 
784  // Check if one of them is available:
785  if( acc.isAvailable( *this ) ) {
786  return acc( *this );
787  }
788 
789  // If no Trk::Track link was not set (yet), return a dummy object:
791  return dummy;
792  }

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

628  {
629  static const Accessor< std::vector<float> > acc( "trackParameterCovarianceMatrices" );
630  unsigned int offset = index*15;
631  // copy the correct values into the temp matrix
632  xAOD::ParametersCovMatrix_t tmp;
633  std::vector<float>::const_iterator it = acc(*this).begin()+offset;
634  Amg::expand(it,it+15,tmp);
635  return tmp;
636  }

◆ trackParameters()

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

Returns the track parameter vector at 'index'.

Definition at line 560 of file TrackParticle_v1.cxx.

560  {
561  CurvilinearParameters_t tmp;
564  return tmp;
565  }

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

146  {
147  return Type::TrackParticle;
148  }

◆ usingPrivateStore()

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

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

Definition at line 260 of file AuxElement.cxx.

261 {
262  return havePrivateData() &&
263  typeid(*m_container) == typeid(AuxElementPrivateData);
264 }

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

271 {
272  return havePrivateData() &&
273  typeid(*m_container) == typeid(AuxElementStandaloneData);
274 }

◆ 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 = 6
staticprivate

Definition at line 349 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 298 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 368 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 883 of file AuxElement.h.


The documentation for this class was generated from the following files:
python.CaloBCIDAvgAlgConfig.acc3
def acc3
Definition: CaloBCIDAvgAlgConfig.py:68
SG::AuxVectorData::getConstStore
const SG::IConstAuxStore * getConstStore() const
Return the current store, as a const interface.
xAOD::TrackParticle_v1::GenVecFourMom_t
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzM4D< double > > GenVecFourMom_t
Base 4 Momentum type for TrackParticle.
Definition: TrackParticle_v1.h:78
beamspotman.r
def r
Definition: beamspotman.py:676
store
StoreGateSvc * store
Definition: fbtTestBasics.cxx:69
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:152
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
xAOD::TrackParticle_v1::th_index
@ th_index
Definition: TrackParticle_v1.h:348
xAOD::TrackParticle_v1::m
virtual double m() const override final
The invariant mass of the particle..
Definition: TrackParticle_v1.cxx:83
xAOD::trackSummaryAccessorV1< float >
const SG::AuxElement::Accessor< float > * trackSummaryAccessorV1< float >(xAOD::SummaryType type)
Definition: TrackSummaryAccessors_v1.cxx:127
beamspotPlotBcids.k
k
Definition: beamspotPlotBcids.py:524
get_generator_info.result
result
Definition: get_generator_info.py:21
test_pyathena.px
px
Definition: test_pyathena.py:18
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Amg::compress
void compress(const AmgSymMatrix(N) &covMatrix, std::vector< float > &vec)
Definition: EventPrimitivesHelpers.h:56
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
xAOD::electron
@ electron
Definition: TrackingPrimitives.h:194
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:49
SG::Accessor< float >
xAOD::TrackParticle_v1::vx
float vx() const
The x origin for the parameters.
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:394
xAOD::TrackParticle_v1::charge
float charge() const
Returns the charge.
Definition: TrackParticle_v1.cxx:150
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:217
index
Definition: index.py:1
xAOD::TrackFitter
TrackFitter
Enums to identify who created this track and which properties does it have.
Definition: TrackingPrimitives.h:39
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
SG::AuxElement::copyAux
void copyAux(const ConstAuxElement &other)
Copy aux data from another object.
Definition: AuxElement.cxx:561
SG::ConstAuxElement::m_container
const SG::AuxVectorData * m_container
The container of which this object is an element.
Definition: AuxElement.h:298
xAOD::TrackParticle_v1::vz
float vz() const
The z origin for the parameters.
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
xAOD::TrackParticle_v1::parameterPX
float parameterPX(unsigned int index) const
Returns the parameter x momentum component, for 'index'.
Definition: TrackParticle_v1.cxx:612
xAOD::TrackParticle_v1::m_perigeeParameters
CxxUtils::CachedValue< Trk::Perigee > m_perigeeParameters
Cached MeasuredPerigee, built from this object.
Definition: TrackParticle_v1.h:368
skel.it
it
Definition: skel.GENtoEVGEN.py:424
xAOD::TrackParticle_v1::FourMom_t
IParticle::FourMom_t FourMom_t
Definition of the 4-momentum type.
Definition: TrackParticle_v1.h:72
SG::AuxVectorData::hasNonConstStore
bool hasNonConstStore() const
Return true if this object has an associated non-const store.
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
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:196
xAOD::TrackParticle_v1::setDefiningParameters
void setDefiningParameters(float d0, float z0, float phi0, float theta, float qOverP)
Set the defining parameters.
Definition: TrackParticle_v1.cxx:177
athena.value
value
Definition: athena.py:122
SG::AuxElement::usingStandaloneStore
bool usingStandaloneStore() const
Test to see if this object is currently using a standalone store.
Definition: AuxElement.cxx:270
xAOD::TrackParticle_v1::qp_index
@ qp_index
Definition: TrackParticle_v1.h:348
SG::ConstAuxElement::setIndexPrivate
bool setIndexPrivate(size_t index, const SG::AuxVectorData *container)
Set the index/container for this element.
Definition: AuxElement.cxx:96
xAOD::TrackParticle_v1::covMatrixIndex
covMatrixIndex
Definition: TrackParticle_v1.h:348
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
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:209
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::TrackParticle_v1::d0_index
@ d0_index
Definition: TrackParticle_v1.h:348
xAOD::numberOfBLayerHits
@ numberOfBLayerHits
these are the hits in the first pixel layer, i.e.
Definition: TrackingPrimitives.h:231
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:597
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:201
SG::AuxTypeRegistry
Handle mappings between names and auxid_t.
Definition: AuxTypeRegistry.h:62
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
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:129
xAOD::TrackParticle_v1::parameterY
float parameterY(unsigned int index) const
Returns the parameter y position, for 'index'.
Definition: TrackParticle_v1.cxx:602
xAOD::TrackProperties
TrackProperties
Definition: TrackingPrimitives.h:65
xAOD::TrackParticle_v1::parameterPY
float parameterPY(unsigned int index) const
Returns the parameter y momentum component, for 'index'.
Definition: TrackParticle_v1.cxx:617
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
xAOD::TrackParticle_v1::definingParametersCovMatrixOffDiagCompr
bool definingParametersCovMatrixOffDiagCompr() const
Definition: TrackParticle_v1.cxx:429
xAOD::TrackParticle_v1::trackFitter
TrackFitter trackFitter() const
Returns the fitter.
Definition: TrackParticle_v1.cxx:698
lumiFormat.i
int i
Definition: lumiFormat.py:92
z
#define z
SG::AuxElement::clearAux
void clearAux()
Clear all aux data associated with this element.
Definition: AuxElement.cxx:535
xAOD::FirstMeasurement
@ FirstMeasurement
Parameter defined at the position of the 1st measurement.
Definition: TrackingPrimitives.h:213
SG::AuxElement::AuxElement
AuxElement()
Default constructor.
python.CaloBCIDAvgAlgConfig.acc1
def acc1
Definition: CaloBCIDAvgAlgConfig.py:48
xAOD::covMatrix
covMatrix
Definition: TrackMeasurement_v1.cxx:19
SG::IAuxElement::havePrivateData
bool havePrivateData() const
True if this element currently has private data.
xAOD::GaussianSumFilter
@ GaussianSumFilter
Tracks from Gaussian Sum Filter.
Definition: TrackingPrimitives.h:49
master.flag
bool flag
Definition: master.py:29
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
SG::AuxVectorData::getStore
SG::IAuxStore * getStore()
Return the current store, as a non-const interface.
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
python.CaloBCIDAvgAlgConfig.acc2
def acc2
Definition: CaloBCIDAvgAlgConfig.py:58
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
python.xAODType.dummy
dummy
Definition: xAODType.py:4
SG::AuxElementPrivateData
Internal data container for private store.
Definition: AuxElement.cxx:45
xAOD::TrackParticle_v1::covMatrixIndexPairVec
std::vector< std::pair< covMatrixIndex, covMatrixIndex > > covMatrixIndexPairVec
Definition: TrackParticle_v1.h:350
xAOD::TrackParticle_v1::genvecP4
GenVecFourMom_t genvecP4() const
The full 4-momentum of the particle : GenVector form.
Definition: TrackParticle_v1.cxx:116
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:647
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::TrackParticle_v1::particleHypothesis
ParticleHypothesis particleHypothesis() const
Returns the particle hypothesis used for Track fitting.
Definition: TrackParticle_v1.cxx:728
python.LuminosityCondAlgConfig.acc6
def acc6
Definition: LuminosityCondAlgConfig.py:254
xAOD::TrackParticle_v1::phi0
float phi0() const
Returns the parameter, which has range to .
Definition: TrackParticle_v1.cxx:158
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:246
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.
xAOD::TrackParticle_v1::z0_index
@ z0_index
Definition: TrackParticle_v1.h:348
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:622
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
SG::AuxVectorData::clearCache
void clearCache()
Clear the cached aux data pointers.
xAOD::Fatras
@ Fatras
Track from FATRAS.
Definition: TrackingPrimitives.h:115
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:172
xAOD::TrackParticle_v1::e
virtual double e() const override final
The total energy of the particle.
Definition: TrackParticle_v1.cxx:109
xAOD::TrackParticle_v1::numberOfParameters
size_t numberOfParameters() const
Returns the number of additional parameters stored in the TrackParticle.
Definition: TrackParticle_v1.cxx:553
xAOD::TrackParticle_v1::setDefiningParametersCovMatrix
void setDefiningParametersCovMatrix(const ParametersCovMatrix_t &cov)
Set the defining parameters covariance matrix.
Definition: TrackParticle_v1.cxx:213
xAOD::ParticleHypothesis
ParticleHypothesis
Definition: TrackingPrimitives.h:192
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
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:355
python.PyAthena.v
v
Definition: PyAthena.py:157
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:61
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
y
#define y
SG::AuxVectorData::clearDecorations
bool clearDecorations() const
Clear all decorations.
Definition: AuxVectorData.cxx:593
xAOD::TrackParticle_v1::COVMATRIX_OFFDIAG_VEC_COMPR_SIZE
static const std::size_t COVMATRIX_OFFDIAG_VEC_COMPR_SIZE
Definition: TrackParticle_v1.h:349
SG::ExcBadPrivateStore
Exception — Bad use of private store.
Definition: Control/AthContainers/AthContainers/exceptions.h:113
Amg::Translation3D
Eigen::Translation< double, 3 > Translation3D
Definition: GeoPrimitives.h:44
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:408
xAOD::TrackParticle_v1::parameterZ
float parameterZ(unsigned int index) const
Returns the parameter z position, for 'index'.
Definition: TrackParticle_v1.cxx:607
SG::auxid_set_t
A set of aux data identifiers.
Definition: AuxTypes.h:47
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:167
calibdata.copy
bool copy
Definition: calibdata.py:27
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:79
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:34
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:27
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
xAOD::TrackParticle_v1::covMatrixComprIndexPairs
static const covMatrixIndexPairVec & covMatrixComprIndexPairs()
Definition: TrackParticle_v1.cxx:764
SG::IConstAuxStore::getAuxIDs
virtual const SG::auxid_set_t & getAuxIDs() const =0
Return a set of identifiers for existing data items in this store.
xAOD::AmgSymMatrix
AmgSymMatrix(N) toEigen(const ConstMatrixMap< N > &xAODmat)
Definition: MeasurementDefs.h:86
SG::AuxElement::setStore1
AuxElementStandaloneData * setStore1(const SG::IConstAuxStore *store)
Set the store associated with this object.
Definition: AuxElement.cxx:418
xAOD::TrackParticle_v1::phi
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
xAOD::TrackParticle_v1::phi_index
@ phi_index
Definition: TrackParticle_v1.h:348