File Vertex.hpp¶
-
namespace Acts
Set the Geometry Context PLUGIN.
Set the Calibration Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedMaterialMap and to avoid code duplication.
Set the Mangetic Field Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedBFieldMap and to avoid code duplication.
Currently implemented for the two most common formats: rz and xyz.
-
template<typename input_track_t>
class Vertex - #include <Acts/Vertexing/Vertex.hpp>
Class for storing vertex objects.
- tparam input_track_t
Track object type
Public Functions
-
Vertex() = default
Default constructor.
-
Vertex(const Vector3 &position)
Construct for vertex at given 3d-position, sets covariance to zero.
- Parameters
position – Vertex position
-
Vertex(const Vector4 &position)
Construct for vertex at given 4d-position, sets covariance to zero.
- Parameters
position – Vertex position
-
Vertex(const Vector3 &position, const SymMatrix3 &covariance, const std::vector<TrackAtVertex<input_track_t>> &tracks)
Vertex constructor.
- Parameters
position – Vertex position
covariance – Position covariance matrix
tracks – Vector of tracks associated with the vertex
-
Vertex(const Vector4 &position, const SymMatrix4 &covariance, const std::vector<TrackAtVertex<input_track_t>> &tracks)
Vertex constructor.
- Parameters
position – Full vertex position
covariance – 4x4 covariance matrix
tracks – Vector of tracks associated with the vertex
-
SymMatrix3 covariance() const
- Returns
Returns position covariance
-
std::pair<double, double> fitQuality() const
- Returns
Returns pair of (chi2, numberDoF)
-
const SymMatrix4 &fullCovariance() const
- Returns
Returns 4x4 covariance
-
const Vector4 &fullPosition() const
- Returns
Returns 4-position
-
Vector3 position() const
- Returns
Returns 3-position
-
void setCovariance(const SymMatrix3 &covariance)
Sets 3x3 covariance.
- Parameters
covariance – Position covariance matrix
-
void setFitQuality(double chiSquared, double numberDoF)
- Parameters
chiSquared – Chi2 of fit
numberDoF – Number of degrees of freedom
-
void setFitQuality(std::pair<double, double> fitQuality)
- Parameters
fitQuality – pair of (chi2, numberDoF)
-
void setFullCovariance(const SymMatrix4 &covariance)
Sets 4x4 covariance.
- Parameters
covariance – The 4x4 covariance matrix
-
void setFullPosition(const Vector4 &fullPosition)
Set position and time.
- Parameters
fullPosition – Vertex position and time
-
void setPosition(const Vector3 &position, ActsScalar time = 0)
Set position and time.
- Parameters
position – Vertex position
time – The time
-
void setTime(ActsScalar time)
Sets time.
- Parameters
time – The time
-
void setTracksAtVertex(const std::vector<TrackAtVertex<input_track_t>> &tracks)
- Parameters
tracks – Vector of tracks at vertex
-
ActsScalar time() const
- Returns
Returns time
-
const std::vector<TrackAtVertex<input_track_t>> &tracks() const
- Returns
Returns vector of tracks associated with the vertex
Private Members
-
double m_chiSquared = 0.¶
-
SymMatrix4 m_covariance = SymMatrix4::Zero()¶
-
double m_numberDoF = 0.¶
-
std::vector<TrackAtVertex<input_track_t>> m_tracksAtVertex¶
-
template<typename input_track_t>