|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef XAODTRACKING_VERSIONS_VERTEX_V1_H
8 #define XAODTRACKING_VERSIONS_VERTEX_V1_H
15 #include "AthLinks/ElementLink.h"
22 #endif // not XAOD_ANALYSIS
114 #ifndef XAOD_ANALYSIS
121 #endif // not XAOD_ANALYSIS
127 typedef std::vector< ElementLink< xAOD::TrackParticleContainer > >
202 #endif // XAODTRACKING_VERSIONS_VERTEX_V1_H
float timeResolution() const
Returns the time resolution.
void setTimeResolution(float value)
Sets the time resolution.
std::vector< ElementLink< xAOD::NeutralParticleContainer > > NeutralParticleLinks_t
Type for the associated neutral particles.
float x() const
Returns the x position.
float time() const
Returns the time.
uint8_t hasValidTime() const
Returns whether or not the vertex has a valid time.
void setPosition(const Amg::Vector3D &position)
Sets the 3-position.
void setFitQuality(float chiSquared, float numberDoF)
Set the 'Fit Quality' information.
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
const AmgSymMatrix(3) &covariancePosition() const
Returns the vertex covariance matrix.
Vertex_v1()
Default constructor.
Base class for elements of a container that can have aux data.
const TrackParticleLinks_t & trackParticleLinks() const
Get all the particles associated with the vertex.
const std::vector< float > & trackWeights() const
Get all the track weights.
void clearNeutrals()
Remove all neutrals from the vertex.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const Amg::Vector3D & position() const
Returns the 3-pos.
CxxUtils::CachedValue< Amg::Vector3D > m_position
Cached position of the vertex.
const NeutralParticleLinks_t & neutralParticleLinks() const
Get all the particles associated with the vertex.
void setX(float value)
Sets the x position.
void setCovariance(const std::vector< float > &value)
Sets the covariance matrix as a simple vector of values.
VxType::VertexType vertexType() const
The type of the vertex.
SG_BASE(xAOD::Vertex_v1, SG::AuxElement)
void setVertexType(VxType::VertexType vType)
Set the type of the vertex.
void addTrackAtVertex(const ElementLink< TrackParticleContainer > &tr, float weight=1.0)
Add a new track to the vertex.
void setZ(float value)
Sets the z position.
void setY(float value)
Sets the y position.
const std::vector< float > & neutralWeights() const
Get all the neutral weights.
void setTrackParticleLinks(const TrackParticleLinks_t &trackParticles)
Set all track particle links at once.
std::vector< ElementLink< xAOD::TrackParticleContainer > > TrackParticleLinks_t
Type for the associated track particles.
const TrackParticle * trackParticle(size_t i) const
Get the pointer to a given track that was used in vertex reco.
void clearTracks()
Remove all tracks from the vertex.
float z() const
Returns the z position.
const NeutralParticle * neutralParticle(size_t i) const
Get the pointer to a given neutral that was used in vertex reco.
ElementLink implementation for ROOT usage.
Cached value with atomic update.
void setTime(float value)
Sets the time.
Vertex_v1 & operator=(const Vertex_v1 &tp)
Assignment operator. This can involve creating and copying an Auxilary store, and so should be used s...
void setTrackWeights(const std::vector< float > &weights)
Set all the track weights.
float trackWeight(size_t i) const
Get the weight of a given track in the vertex reconstruction.
Eigen::Matrix< double, 3, 1 > Vector3D
size_t nNeutralParticles() const
Get the number of neutrals associated with this vertex.
float numberDoF() const
Returns the number of degrees of freedom of the vertex fit as float.
const std::vector< float > & covariance() const
Returns the covariance matrix as a simple vector of values.
void addNeutralAtVertex(const ElementLink< NeutralParticleContainer > &tr, float weight=1.0)
Add a new neutral to the vertex.
float chiSquared() const
Returns the of the vertex fit as float.
Class describing a Vertex.
void setNeutralParticleLinks(const NeutralParticleLinks_t &neutralParticles)
Set all neutral particle links at once.
void resetCache()
Reset the internal cache of the object.
float y() const
Returns the y position.
Class describing a TrackParticle.
std::vector< Trk::VxTrackAtVertex > & vxTrackAtVertex()
Non-const access to the VxTrackAtVertex vector.
Class describing a NeutralParticle.
ObjectType
Type of objects that have a representation in the xAOD EDM.
void setNeutralWeights(const std::vector< float > &weights)
Set all the neutral weights.
CxxUtils::CachedValue< AmgSymMatrix(3)> m_covariance
Cached covariance of the vertex.
bool vxTrackAtVertexAvailable() const
Check if VxTrackAtVertices are attached to the object.
void setCovariancePosition(const AmgSymMatrix(3)&covariancePosition)
Sets the vertex covariance matrix.
void setHasValidTime(uint8_t value)
Sets whether or not the vertex has a valid time.
Base class for elements of a container that can have aux data.
float neutralWeight(size_t i) const
Get the weight of a given neutral in the vertex reconstruction.
Type::ObjectType type() const
A little helper function for identifying the type in template code.