![]() |
ATLAS Offline Software
|
Class describing a Vertex. More...
#include <Vertex_v1.h>
Public Types | |
using | TypelessConstAccessor = ConstAuxElement::TypelessConstAccessor |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | ConstAccessor = SG::ConstAccessor< T, ALLOC > |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | Accessor = SG::Accessor< T, ALLOC > |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
using | Decorator = SG::Decorator< T, ALLOC > |
Public Member Functions | |
Vertex_v1 () | |
Default constructor. More... | |
Vertex_v1 (const Vertex_v1 &other) | |
Copy constructor. More... | |
Vertex_v1 & | operator= (const Vertex_v1 &tp) |
Assignment operator. This can involve creating and copying an Auxilary store, and so should be used sparingly. More... | |
Type::ObjectType | type () const |
A little helper function for identifying the type in template code. More... | |
float | x () const |
Returns the x position. More... | |
void | setX (float value) |
Sets the x position. More... | |
float | y () const |
Returns the y position. More... | |
void | setY (float value) |
Sets the y position. More... | |
float | z () const |
Returns the z position. More... | |
void | setZ (float value) |
Sets the z position. More... | |
float | time () const |
Returns the time. More... | |
void | setTime (float value) |
Sets the time. More... | |
float | timeResolution () const |
Returns the time resolution. More... | |
void | setTimeResolution (float value) |
Sets the time resolution. More... | |
uint8_t | hasValidTime () const |
Returns whether or not the vertex has a valid time. More... | |
void | setHasValidTime (uint8_t value) |
Sets whether or not the vertex has a valid time. More... | |
const std::vector< float > & | covariance () const |
Returns the covariance matrix as a simple vector of values. More... | |
void | setCovariance (const std::vector< float > &value) |
Sets the covariance matrix as a simple vector of values. More... | |
const Amg::Vector3D & | position () const |
Returns the 3-pos. More... | |
void | setPosition (const Amg::Vector3D &position) |
Sets the 3-position. More... | |
const | AmgSymMatrix (3) &covariancePosition() const |
Returns the vertex covariance matrix. More... | |
void | setCovariancePosition (const AmgSymMatrix(3)&covariancePosition) |
Sets the vertex covariance matrix. More... | |
VxType::VertexType | vertexType () const |
The type of the vertex. More... | |
void | setVertexType (VxType::VertexType vType) |
Set the type of the vertex. More... | |
std::vector< Trk::VxTrackAtVertex > & | vxTrackAtVertex () |
Non-const access to the VxTrackAtVertex vector. More... | |
const std::vector< Trk::VxTrackAtVertex > & | vxTrackAtVertex () const |
Const access to the vector of tracks fitted to the vertex (may not exist!) More... | |
bool | vxTrackAtVertexAvailable () const |
Check if VxTrackAtVertices are attached to the object. More... | |
void | resetCache () |
Reset the internal cache of the object. More... | |
void | assign (const AuxElement &other, bool warnUnlocked=false) |
Assignment. More... | |
const SG::AuxVectorData * | container () const |
Return the container holding this element. More... | |
SG::AuxVectorData * | container () |
Return the container holding this element. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type | auxdata (const std::string &name) |
Fetch an aux data variable, as a non-const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type | auxdata (const std::string &name, const std::string &clsname) |
Fetch an aux data variable, as a non-const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdata (const std::string &name) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdata (const std::string &name, const std::string &clsname) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdataConst (const std::string &name) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdataConst (const std::string &name, const std::string &clsname) const |
Fetch an aux data variable, as a const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED bool | isAvailable (const std::string &name, const std::string &clsname="") const |
Check if an aux variable is available for reading. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritable (const std::string &name, const std::string &clsname="") |
Check if an aux variable is available for writing. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritableAsDecoration (const std::string &name, const std::string &clsname="") const |
Check if an aux variable is available for writing as a decoration. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type | auxdecor (const std::string &name) const |
Fetch an aux decoration, as a non-const reference. More... | |
template<class T , class ALLOC = AuxAllocator_t<T>> | |
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type | auxdecor (const std::string &name, const std::string &clsname) const |
Fetch an aux decoration, as a non-const reference. More... | |
void | makePrivateStore () |
Create a new (empty) private store for this object. More... | |
template<class U1 > | |
void | makePrivateStore (const U1 &other, bool warnUnlocked=false) |
Create a new private store for this object and copy aux data. More... | |
template<class U1 > | |
void | makePrivateStore (const U1 *other, bool warnUnlocked=false) |
Create a new private store for this object and copy aux data. More... | |
void | releasePrivateStore () |
Release and free any private store associated with this object. More... | |
void | setStore (const SG::IConstAuxStore *store) |
Set the store associated with this object. More... | |
void | setStore (SG::IAuxStore *store) |
Set the store associated with this object. More... | |
void | setStore (const DataLink< SG::IConstAuxStore > &store) |
Set the store associated with this object. More... | |
void | setConstStore (const SG::IConstAuxStore *store) |
Synonym for setStore with IConstAuxStore . More... | |
void | setNonConstStore (SG::IAuxStore *store) |
Synonym for setStore with IAuxStore . More... | |
bool | usingPrivateStore () const |
Test to see if this object is currently using a private store. More... | |
bool | usingStandaloneStore () const |
Test to see if this object is currently using a standalone store. More... | |
const SG::IConstAuxStore * | getConstStore () const |
Return the current store, as a const interface. More... | |
SG::IAuxStore * | getStore () const |
Return the current store, as a non-const interface. More... | |
void | clearCache () |
Clear the cached aux data pointers. More... | |
const SG::auxid_set_t & | getAuxIDs () const |
Return a set of identifiers for existing data items for this object. More... | |
const SG::auxid_set_t & | getDecorIDs () const |
Return a set of identifiers for decorations for this object. More... | |
bool | hasStore () const |
Return true if this object has an associated store. More... | |
bool | hasNonConstStore () const |
Return true if this object has an associated non-const store. More... | |
bool | clearDecorations () const |
Clear all decorations. More... | |
bool | trackIndices () const |
Return true if index tracking is enabled for this object. More... | |
size_t | index () const |
Return the index of this element within its container. More... | |
size_t | index () const |
Return the index of this element within its container. More... | |
Static Public Attributes | |
static constexpr bool | supportsThinning = true |
Mark that this type supports thinning operations. More... | |
Protected Member Functions | |
bool | noPrivateData () const |
True if this element has no private data. More... | |
bool | havePrivateData () const |
True if this element currently has private data. More... | |
bool | hadPrivateData () const |
True if this element had private data before it was added to its current container. More... | |
Private Types | |
enum | PrivateStoreState : uint8_t { PrivateStoreState::NO_PRIVATE = 0, PrivateStoreState::HAVE_PRIVATE = 1, PrivateStoreState::HAD_PRIVATE = 2 } |
The current private data state. More... | |
Private Member Functions | |
void | releasePrivateStoreForDtor () |
Out-of-line portion of destructor. More... | |
void | setIndex (size_t index, SG::AuxVectorData *container) |
Set the index/container for this element. More... | |
bool | setIndexPrivate (size_t index, SG::AuxVectorData *container) |
Set the index/container for this element. More... | |
void | makePrivateStore1 (const void *other, bool warnUnlocked) |
Create a new private store for this object and copy aux data. More... | |
void | makePrivateStore1 (const AuxElement *other, bool warnUnlocked) |
Create a new private store for this object and copy aux data. More... | |
AuxElementStandaloneData * | setStore1 (const SG::IConstAuxStore *store) |
Set the store associated with this object. More... | |
void | clearAux () |
Clear all aux data associated with this element. More... | |
void | copyAux (const ConstAuxElement &other, bool warnUnlocked=false) |
Copy aux data from another object. More... | |
void | setNoPrivateData () |
Record that this element does not have private data. More... | |
void | setHavePrivateData () |
Record that this element currently has private data. More... | |
void | setHadPrivateData () |
Record that this element used to have private data. More... | |
Private Attributes | |
CxxUtils::CachedValue< Amg::Vector3D > | m_position |
Cached position of the vertex. More... | |
CxxUtils::CachedValue< AmgSymMatrix(3)> | m_covariance |
Cached covariance of the vertex. More... | |
const SG::AuxVectorData * | m_container |
The container of which this object is an element. More... | |
size_t | m_index |
The index of this element within its container. More... | |
PrivateStoreState | m_privateStoreState |
Fit quality functions | |
float | chiSquared () const |
Returns the \( \chi^2 \) of the vertex fit as float. More... | |
float | numberDoF () const |
Returns the number of degrees of freedom of the vertex fit as float. More... | |
void | setFitQuality (float chiSquared, float numberDoF) |
Set the 'Fit Quality' information. More... | |
Track particle contents operations | |
typedef std::vector< ElementLink< xAOD::TrackParticleContainer > > | TrackParticleLinks_t |
Type for the associated track particles. More... | |
typedef std::vector< ElementLink< xAOD::NeutralParticleContainer > > | NeutralParticleLinks_t |
Type for the associated neutral particles. More... | |
const TrackParticleLinks_t & | trackParticleLinks () const |
Get all the particles associated with the vertex. More... | |
void | setTrackParticleLinks (const TrackParticleLinks_t &trackParticles) |
Set all track particle links at once. More... | |
const std::vector< float > & | trackWeights () const |
Get all the track weights. More... | |
void | setTrackWeights (const std::vector< float > &weights) |
Set all the track weights. More... | |
const NeutralParticleLinks_t & | neutralParticleLinks () const |
Get all the particles associated with the vertex. More... | |
void | setNeutralParticleLinks (const NeutralParticleLinks_t &neutralParticles) |
Set all neutral particle links at once. More... | |
const std::vector< float > & | neutralWeights () const |
Get all the neutral weights. More... | |
void | setNeutralWeights (const std::vector< float > &weights) |
Set all the neutral weights. More... | |
const TrackParticle * | trackParticle (size_t i) const |
Get the pointer to a given track that was used in vertex reco. More... | |
float | trackWeight (size_t i) const |
Get the weight of a given track in the vertex reconstruction. More... | |
size_t | nTrackParticles () const |
Get the number of tracks associated with this vertex. More... | |
const NeutralParticle * | neutralParticle (size_t i) const |
Get the pointer to a given neutral that was used in vertex reco. More... | |
float | neutralWeight (size_t i) const |
Get the weight of a given neutral in the vertex reconstruction. More... | |
size_t | nNeutralParticles () const |
Get the number of neutrals associated with this vertex. More... | |
void | addTrackAtVertex (const ElementLink< TrackParticleContainer > &tr, float weight=1.0) |
Add a new track to the vertex. More... | |
void | addNeutralAtVertex (const ElementLink< NeutralParticleContainer > &tr, float weight=1.0) |
Add a new neutral to the vertex. More... | |
void | clearTracks () |
Remove all tracks from the vertex. More... | |
void | clearNeutrals () |
Remove all neutrals from the vertex. More... | |
Class describing a Vertex.
Definition at line 42 of file Vertex_v1.h.
|
inherited |
Definition at line 572 of file AuxElement.h.
|
inherited |
Definition at line 569 of file AuxElement.h.
|
inherited |
Definition at line 575 of file AuxElement.h.
typedef std::vector< ElementLink< xAOD::NeutralParticleContainer > > xAOD::Vertex_v1::NeutralParticleLinks_t |
Type for the associated neutral particles.
Definition at line 141 of file Vertex_v1.h.
typedef std::vector< ElementLink< xAOD::TrackParticleContainer > > xAOD::Vertex_v1::TrackParticleLinks_t |
Type for the associated track particles.
Definition at line 128 of file Vertex_v1.h.
|
inherited |
Definition at line 566 of file AuxElement.h.
|
strongprivateinherited |
The current private data state.
Enumerator | |
---|---|
NO_PRIVATE | |
HAVE_PRIVATE | |
HAD_PRIVATE |
Definition at line 131 of file IAuxElement.h.
xAOD::Vertex_v1::Vertex_v1 | ( | ) |
Default constructor.
Definition at line 19 of file Vertex_v1.cxx.
void xAOD::Vertex_v1::addNeutralAtVertex | ( | const ElementLink< NeutralParticleContainer > & | tr, |
float | weight = 1.0 |
||
) |
void xAOD::Vertex_v1::addTrackAtVertex | ( | const ElementLink< TrackParticleContainer > & | tr, |
float | weight = 1.0 |
||
) |
const xAOD::Vertex_v1::AmgSymMatrix | ( | 3 | ) | const & |
Returns the vertex covariance matrix.
|
inherited |
Assignment.
other | The object from which we're assigning. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
We don't copy container/index, as assignment doesn't change where this object is. However, if we have aux data, then we copy aux data if we're copying from an object that also has it; otherwise, if we're copying from an object with no aux data, then we clear ours.
|
inherited |
Fetch an aux data variable, as a non-const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
or ConstAccessor
classes.
|
inherited |
Fetch an aux data variable, as a non-const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
or ConstAccessor
classes.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor
class.
|
inherited |
Fetch an aux data variable, as a const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor
class.
|
inherited |
Fetch an aux decoration, as a non-const reference.
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.
|
inherited |
Fetch an aux decoration, as a non-const reference.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.
float xAOD::Vertex_v1::chiSquared | ( | ) | const |
Returns the \( \chi^2 \) of the vertex fit as float.
|
privateinherited |
Clear all aux data associated with this element.
If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData
.
Definition at line 580 of file AuxElement.cxx.
|
inherited |
Clear the cached aux data pointers.
You should call this any time something changes in the aux store that could invalidate the vector pointers.
Definition at line 339 of file AuxElement.cxx.
|
inherited |
Clear all decorations.
Erase all decorations from an associated store, restoring the state to when lock
was called.
Returns true if there were any decorations that were cleared, false if the store did not contain any decorations.
Definition at line 428 of file AuxElement.cxx.
void xAOD::Vertex_v1::clearNeutrals | ( | ) |
Remove all neutrals from the vertex.
Definition at line 338 of file Vertex_v1.cxx.
void xAOD::Vertex_v1::clearTracks | ( | ) |
Remove all tracks from the vertex.
Definition at line 331 of file Vertex_v1.cxx.
|
inherited |
Return the container holding this element.
|
inherited |
Return the container holding this element.
|
privateinherited |
Copy aux data from another object.
other | The object from which to copy. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData
.
All aux data items from other
are copied to this object. Any aux data items associated with this object that are not present in other
are cleared. (If other
has no aux data, then all aux data items for this object are cleared.)
Definition at line 607 of file AuxElement.cxx.
Returns the covariance matrix as a simple vector of values.
|
inherited |
Return a set of identifiers for existing data items for this object.
If this object has a private or standalone store, then information from that will be returned. Otherwise, if this element is part of a container, then information for the container will be returned. Otherwise, return an empty set.
Definition at line 355 of file AuxElement.cxx.
|
inherited |
Return the current store, as a const interface.
This will be non-zero if either a const or non-const store is associated with this object. This will fetch either a private or standalone store.
Definition at line 304 of file AuxElement.cxx.
|
inherited |
Return a set of identifiers for decorations for this object.
If this object has a private or standalone store, then information from that will be returned. Otherwise, if this element is part of a container, then information for the container will be returned. Otherwise, return an empty set.
Definition at line 378 of file AuxElement.cxx.
|
inherited |
Return the current store, as a non-const interface.
This will be non-zero if a non-const store is associated with this object. This will fetch either a private or standalone store.
Definition at line 319 of file AuxElement.cxx.
|
protectedinherited |
True if this element had private data before it was added to its current container.
|
inherited |
Return true if this object has an associated non-const store.
This will be true for either a private or standalone store.
Definition at line 411 of file AuxElement.cxx.
|
inherited |
Return true if this object has an associated store.
This will be true for either a private or standalone store.
Definition at line 398 of file AuxElement.cxx.
uint8_t xAOD::Vertex_v1::hasValidTime | ( | ) | const |
Returns whether or not the vertex has a valid time.
|
protectedinherited |
True if this element currently has private data.
|
inherited |
Return the index of this element within its container.
|
inherited |
Return the index of this element within its container.
Inherited from IAuxElement.
|
inherited |
Check if an aux variable is available for reading.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Check if an aux variable is available for writing.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Check if an aux variable is available for writing as a decoration.
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
|
inherited |
Create a new (empty) private store for this object.
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
Definition at line 192 of file AuxElement.cxx.
|
inherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
If other
is an object that has aux data, then those data will be copied; otherwise, nothing will be done.
|
inherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
If other
is an object that has aux data, then those data will be copied; otherwise, nothing will be done.
|
privateinherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
This overload handles the case where other
does have aux data.
Definition at line 565 of file AuxElement.cxx.
|
privateinherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
This overload handles the case where other
does not have aux data.
const NeutralParticle * xAOD::Vertex_v1::neutralParticle | ( | size_t | i | ) | const |
Get the pointer to a given neutral that was used in vertex reco.
Definition at line 280 of file Vertex_v1.cxx.
const NeutralParticleLinks_t& xAOD::Vertex_v1::neutralParticleLinks | ( | ) | const |
Get all the particles associated with the vertex.
float xAOD::Vertex_v1::neutralWeight | ( | size_t | i | ) | const |
Get the weight of a given neutral in the vertex reconstruction.
Definition at line 293 of file Vertex_v1.cxx.
size_t xAOD::Vertex_v1::nNeutralParticles | ( | ) | const |
Get the number of neutrals associated with this vertex.
Definition at line 301 of file Vertex_v1.cxx.
|
protectedinherited |
True if this element has no private data.
size_t xAOD::Vertex_v1::nTrackParticles | ( | ) | const |
Get the number of tracks associated with this vertex.
Definition at line 270 of file Vertex_v1.cxx.
float xAOD::Vertex_v1::numberDoF | ( | ) | const |
Returns the number of degrees of freedom of the vertex fit as float.
Assignment operator. This can involve creating and copying an Auxilary store, and so should be used sparingly.
Definition at line 34 of file Vertex_v1.cxx.
const Amg::Vector3D& xAOD::Vertex_v1::position | ( | ) | const |
Returns the 3-pos.
|
inherited |
Release and free any private store associated with this object.
ExcBadPrivateStore
will be thrown if this object does not have a private store.
Definition at line 210 of file AuxElement.cxx.
|
privateinherited |
Out-of-line portion of destructor.
Delete a private store if we have one.
Definition at line 441 of file AuxElement.cxx.
void xAOD::Vertex_v1::resetCache | ( | ) |
Reset the internal cache of the object.
Definition at line 348 of file Vertex_v1.cxx.
|
inherited |
Synonym for setStore
with IConstAuxStore
.
store | The new store. |
Sets the covariance matrix as a simple vector of values.
void xAOD::Vertex_v1::setCovariancePosition | ( | const AmgSymMatrix(3)& | covariancePosition | ) |
Sets the vertex covariance matrix.
|
privateinherited |
Record that this element used to have private data.
void xAOD::Vertex_v1::setHasValidTime | ( | uint8_t | value | ) |
Sets whether or not the vertex has a valid time.
|
privateinherited |
Record that this element currently has private data.
|
privateinherited |
Set the index/container for this element.
index | The index of this object within the container. |
container | The container holding this object. May be null if this object is being removed from a container. |
Usually this simply sets the index and container members of this object. However, in the case where this object has an associated private store, then we need to deal with releasing the store if the object is being added to a container, or making a new store if the object is being removed from a container.
|
privateinherited |
Set the index/container for this element.
index | The index of this object within the container. |
container | The container holding this object. May be null if this object is being removed from a container. |
This is called from setIndex
when we have a private store to deal with.
Definition at line 505 of file AuxElement.cxx.
void xAOD::Vertex_v1::setNeutralParticleLinks | ( | const NeutralParticleLinks_t & | neutralParticles | ) |
Set all neutral particle links at once.
Set all the neutral weights.
|
inherited |
Synonym for setStore
with IAuxStore
.
store | The new store. |
|
privateinherited |
Record that this element does not have private data.
void xAOD::Vertex_v1::setPosition | ( | const Amg::Vector3D & | position | ) |
Sets the 3-position.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
store | Link to the new store. |
Definition at line 269 of file AuxElement.cxx.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
Definition at line 241 of file AuxElement.cxx.
|
inherited |
Set the store associated with this object.
store | The new store. |
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
Definition at line 257 of file AuxElement.cxx.
|
privateinherited |
Set the store associated with this object.
store | The new store. |
Helper for setStore
. Creates the AuxElementStandaloneData
object if needed and returns it.
store | The new store. |
Helper for setStore
. Creates the @x AuxElementStandaloneData object if needed and returns it.
Definition at line 461 of file AuxElement.cxx.
void xAOD::Vertex_v1::setTime | ( | float | value | ) |
Sets the time.
void xAOD::Vertex_v1::setTimeResolution | ( | float | value | ) |
Sets the time resolution.
void xAOD::Vertex_v1::setTrackParticleLinks | ( | const TrackParticleLinks_t & | trackParticles | ) |
Set all track particle links at once.
Set all the track weights.
void xAOD::Vertex_v1::setVertexType | ( | VxType::VertexType | vType | ) |
Set the type of the vertex.
void xAOD::Vertex_v1::setX | ( | float | value | ) |
Sets the x position.
void xAOD::Vertex_v1::setY | ( | float | value | ) |
Sets the y position.
void xAOD::Vertex_v1::setZ | ( | float | value | ) |
Sets the z position.
float xAOD::Vertex_v1::time | ( | ) | const |
Returns the time.
float xAOD::Vertex_v1::timeResolution | ( | ) | const |
Returns the time resolution.
|
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.
setTrackWeights setNeutralWeights const TrackParticle * xAOD::Vertex_v1::trackParticle | ( | size_t | i | ) | const |
Get the pointer to a given track that was used in vertex reco.
Definition at line 249 of file Vertex_v1.cxx.
const TrackParticleLinks_t& xAOD::Vertex_v1::trackParticleLinks | ( | ) | const |
Get all the particles associated with the vertex.
float xAOD::Vertex_v1::trackWeight | ( | size_t | i | ) | const |
Get the weight of a given track in the vertex reconstruction.
Definition at line 262 of file Vertex_v1.cxx.
Type::ObjectType xAOD::Vertex_v1::type | ( | ) | const |
A little helper function for identifying the type in template code.
Definition at line 58 of file Vertex_v1.cxx.
|
inherited |
Test to see if this object is currently using a private store.
Definition at line 280 of file AuxElement.cxx.
|
inherited |
Test to see if this object is currently using a standalone store.
Test to see if this object is currently using a private store.
Definition at line 290 of file AuxElement.cxx.
VxType::VertexType xAOD::Vertex_v1::vertexType | ( | ) | const |
The type of the vertex.
std::vector< Trk::VxTrackAtVertex > & xAOD::Vertex_v1::vxTrackAtVertex | ( | ) |
Non-const access to the VxTrackAtVertex vector.
This function can be used to attach an Athena-only, reconstruction specific information to the object.
The data is attached as a dynamic auxiliary property. And it needs to be explicitly disabled for writing out, as we don't have a valid dictionary for it. Not to mention that these objects are very large.
Definition at line 181 of file Vertex_v1.cxx.
const std::vector< Trk::VxTrackAtVertex > & xAOD::Vertex_v1::vxTrackAtVertex | ( | ) | const |
Const access to the vector of tracks fitted to the vertex (may not exist!)
This function can be used to access the Athena-only, reconstruction specific decoration on the object.
Keep in mind that this decoration is not available for most of the vertices. When calling this function on an object that doesn't have this decoration, an exception will be thrown. Use the vxTrackAtVertexAvailable() function to check if this function will succeed or not.
Definition at line 198 of file Vertex_v1.cxx.
bool xAOD::Vertex_v1::vxTrackAtVertexAvailable | ( | ) | const |
Check if VxTrackAtVertices are attached to the object.
This function can be used to check whether this Athena-only, reconstruction-specific decoration is available on the object.
In most cases it isn't.
Definition at line 209 of file Vertex_v1.cxx.
float xAOD::Vertex_v1::x | ( | ) | const |
Returns the x position.
float xAOD::Vertex_v1::y | ( | ) | const |
Returns the y position.
float xAOD::Vertex_v1::z | ( | ) | const |
Returns the z position.
|
privateinherited |
The container of which this object is an element.
Should be null if this object is not within a container, except that it may also point at a private store.
Definition at line 335 of file AuxElement.h.
|
private |
Cached covariance of the vertex.
Definition at line 193 of file Vertex_v1.h.
|
privateinherited |
The index of this element within its container.
Should be 0 if this object is not within a container.
Definition at line 128 of file IAuxElement.h.
|
private |
Cached position of the vertex.
Definition at line 191 of file Vertex_v1.h.
|
privateinherited |
Definition at line 137 of file IAuxElement.h.
|
staticconstexprinherited |
Mark that this type supports thinning operations.
See AthContainers/supportsThinning.h and AthenaPoolCnvSvc/T_AthenaPoolCnv.h. Helps guide which pool converter template will be used. If false, the default pool converter will be used rather than the aux store-specific one. Ordinary xAOD type should not touch this, but may be overridden in a derived class to handle certain special cases.
Definition at line 959 of file AuxElement.h.