EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/EventData/SingleBoundTrackParameters.hpp>
Public Types | |
using | Scalar = BoundScalar |
using | ParametersVector = BoundVector |
using | CovarianceMatrix = BoundSymMatrix |
Public Member Functions | |
SingleBoundTrackParameters (std::shared_ptr< const Surface > surface, const ParametersVector ¶ms, Scalar q, std::optional< CovarianceMatrix > cov=std::nullopt) | |
template<typename T = charge_t, std::enable_if_t< std::is_default_constructible_v< T >, int > = 0> | |
SingleBoundTrackParameters (std::shared_ptr< const Surface > surface, const ParametersVector ¶ms, std::optional< CovarianceMatrix > cov=std::nullopt) | |
SingleBoundTrackParameters (std::shared_ptr< const Surface > surface, const GeometryContext &geoCtx, const Vector4D &pos4, const Vector3D &dir, Scalar p, Scalar q, std::optional< CovarianceMatrix > cov=std::nullopt) | |
template<typename T = charge_t, std::enable_if_t< std::is_default_constructible_v< T >, int > = 0> | |
SingleBoundTrackParameters (std::shared_ptr< const Surface > surface, const GeometryContext &geoCtx, const Vector4D &pos4, const Vector3D &dir, Scalar qOverP, std::optional< CovarianceMatrix > cov=std::nullopt) | |
const FullBoundParameterSet & | getParameterSet () const |
Access the parameter set holding the parameters vector and covariance. | |
ParametersVector | parameters () const |
Parameters vector. | |
const std::optional < CovarianceMatrix > & | covariance () const |
Optional covariance matrix. | |
template<BoundIndices kIndex> | |
Scalar | get () const |
template<BoundIndices kIndex> | |
Scalar | uncertainty () const |
Vector4D | fourPosition (const GeometryContext &geoCtx) const |
Vector3D | position (const GeometryContext &geoCtx) const |
Scalar | time () const |
Time coordinate. | |
Vector3D | unitDirection () const |
Unit direction three-vector, i.e. the normalized momentum three-vector. | |
Scalar | absoluteMomentum () const |
Absolute momentum. | |
Scalar | transverseMomentum () const |
Transverse momentum. | |
Vector3D | momentum () const |
Momentum three-vector. | |
constexpr Scalar | charge () const |
Particle electric charge. | |
const Surface & | referenceSurface () const |
Reference surface onto which the parameters are bound. | |
RotationMatrix3D | referenceFrame (const GeometryContext &geoCtx) const |
Private Attributes | |
FullBoundParameterSet | m_paramSet |
parameter set holding parameters vector and covariance. | |
std::shared_ptr< const Surface > | m_surface |
reference surface | |
charge_t | m_chargeInterpreter |
Friends | |
bool | operator== (const SingleBoundTrackParameters &lhs, const SingleBoundTrackParameters &rhs) |
Compare two bound parameters for equality. | |
bool | operator!= (const SingleBoundTrackParameters &lhs, const SingleBoundTrackParameters &rhs) |
Compare two bound parameters for inequality. | |
std::ostream & | operator<< (std::ostream &os, const SingleBoundTrackParameters &tp) |
Print information to the output stream. | |
Track parameters bound to a reference surface for a single track.
charge_t | Helper type to interpret the particle charge/momentum |
This is intended as a user-facing data class that adds additional accessors and charge/momentum interpretation on top of the pure parameters vector. All parameters and their corresponding covariance matrix are stored in bound parametrization. The specific definition of the local spatial parameters is defined by the associated surface.
Definition at line 36 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 36 of file SingleBoundTrackParameters.hpp
using Acts::SingleBoundTrackParameters< charge_t >::CovarianceMatrix = BoundSymMatrix |
Definition at line 40 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 40 of file SingleBoundTrackParameters.hpp
using Acts::SingleBoundTrackParameters< charge_t >::ParametersVector = BoundVector |
Definition at line 39 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 39 of file SingleBoundTrackParameters.hpp
using Acts::SingleBoundTrackParameters< charge_t >::Scalar = BoundScalar |
Definition at line 38 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 38 of file SingleBoundTrackParameters.hpp
|
inline |
Construct from a parameters vector on the surface and particle charge.
surface | Reference surface the parameters are defined on |
params | Bound parameters vector |
q | Particle charge |
cov | Bound parameters covariance matrix |
In principle, only the charge magnitude is needed her to allow unambigous extraction of the absolute momentum. The particle charge is required as an input here to be consistent with the other constructors below that that also take the charge as an input. The charge sign is only used in debug builds to check for consistency with the q/p parameter.
Definition at line 54 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 54 of file SingleBoundTrackParameters.hpp
|
inline |
Construct from a parameters vector on the surface.
surface | Reference surface the parameters are defined on |
params | Bound parameters vector |
cov | Bound parameters covariance matrix |
This constructor is only available if there are no potential charge ambiguities, i.e. the charge type is default-constructible.
Definition at line 75 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 75 of file SingleBoundTrackParameters.hpp
|
inline |
Construct from four-position, direction, absolute momentum, and charge.
surface | Reference surface the parameters are defined on |
geoCtx | Geometry context for the local-to-global transformation |
pos4 | Track position/time four-vector |
dir | Track direction three-vector; normalization is ignored. |
p | Absolute momentum |
q | Particle charge |
cov | Bound parameters covariance matrix |
Definition at line 93 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 93 of file SingleBoundTrackParameters.hpp
|
inline |
Construct from four-position, direction, and charge-over-momentum.
surface | Reference surface the parameters are defined on |
geoCtx | Geometry context for the local-to-global transformation |
pos4 | Track position/time four-vector |
dir | Track direction three-vector; normalization is ignored. |
qOverP | Charge-over-momentum-like parameter |
cov | Bound parameters covariance matrix |
This constructor is only available if there are no potential charge ambiguities, i.e. the charge type is default-constructible. The position must be located on the surface.
Definition at line 122 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 122 of file SingleBoundTrackParameters.hpp
|
inline |
Absolute momentum.
Definition at line 203 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 203 of file SingleBoundTrackParameters.hpp
Referenced by Acts::Test::BOOST_DATA_TEST_CASE(), PHTpcResiduals::calculateTpcResiduals(), checkParametersConsistency(), Acts::SingleBoundTrackParameters< SinglyCharged >::momentum(), and Acts::SingleBoundTrackParameters< SinglyCharged >::transverseMomentum().
|
inline |
Particle electric charge.
Definition at line 214 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 214 of file SingleBoundTrackParameters.hpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and checkParametersConsistency().
|
inline |
Optional covariance matrix.
Definition at line 143 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 143 of file SingleBoundTrackParameters.hpp
Referenced by Acts::GaussianGridTrackDensity< mainGridSize, trkGridSize >::addTrack(), Acts::GaussianTrackDensity< input_track_t >::addTracks(), Acts::Test::BOOST_AUTO_TEST_CASE(), BOOST_DATA_TEST_CASE(), ActsEvaluator::calculateDCA(), PHTpcResiduals::calculateTpcResiduals(), checkCovarianceConsistency(), ActsExamples::ResPlotTool::fill(), Acts::IterativeVertexFinder< vfitter_t, sfinder_t >::fillPerigeesToFit(), Acts::Test::fillTrackState(), Acts::ImpactPointEstimator< input_track_t, propagator_t, propagator_options_t >::get3dVertexCompatibility(), Acts::HelicalTrackLinearizer< propagator_t, propagator_options_t >::linearizeTrack(), Acts::CKFSourceLinkSelector::operator()(), ActsTransformations::rotateActsCovToSvtxTrack(), and PHActsVertexPropagator::updateSvtxTrack().
|
inline |
Space-time position four-vector.
[in] | geoCtx | Geometry context for the local-to-global transformation |
This uses the associated surface to transform the local position on the surface to globalcoordinates. This requires a geometry context to select the appropriate transformation and might be a computationally expensive operation.
Definition at line 172 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 172 of file SingleBoundTrackParameters.hpp
|
inline |
Access a single parameter value indentified by its index.
kIndex | Track parameter index |
Definition at line 151 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 151 of file SingleBoundTrackParameters.hpp
Referenced by Acts::HelicalTrackLinearizer< propagator_t, propagator_options_t >::linearizeTrack(), and Acts::Test::runTest().
|
inline |
Access the parameter set holding the parameters vector and covariance.
Definition at line 139 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 139 of file SingleBoundTrackParameters.hpp
|
inline |
Momentum three-vector.
Definition at line 211 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 211 of file SingleBoundTrackParameters.hpp
Referenced by PHTpcResiduals::addTrackState(), Acts::Test::BOOST_AUTO_TEST_CASE(), ActsTransformations::calculateDCA(), ActsEvaluator::calculateDCA(), PHTpcResiduals::calculateTpcResiduals(), ActsEvaluator::evaluateTrackFits(), ActsExamples::DuplicationPlotTool::fill(), ActsExamples::TrackSummaryPlotTool::fill(), ActsExamples::FakeRatePlotTool::fill(), PHActsTrackProjection::propagateTrack(), Acts::SingleBoundTrackParameters< SinglyCharged >::referenceFrame(), and ActsTransformations::rotateActsCovToSvtxTrack().
|
inline |
Parameters vector.
Definition at line 141 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 141 of file SingleBoundTrackParameters.hpp
Referenced by Acts::GaussianGridTrackDensity< mainGridSize, trkGridSize >::addTrack(), Acts::GaussianTrackDensity< input_track_t >::addTracks(), Acts::Test::BOOST_AUTO_TEST_CASE(), ActsExamples::ResPlotTool::fill(), Acts::Test::fillTrackState(), Acts::ZScanVertexFinder< vfitter_t >::find(), Acts::ImpactPointEstimator< input_track_t, propagator_t, propagator_options_t >::get3dVertexCompatibility(), Acts::ImpactPointEstimator< input_track_t, propagator_t, propagator_options_t >::getDistanceAndMomentum(), Acts::HelicalTrackLinearizer< propagator_t, propagator_options_t >::linearizeTrack(), Acts::CKFSourceLinkSelector::operator()(), and Acts::RiddersPropagator< propagator_t >::propagate().
|
inline |
Spatial position three-vector.
[in] | geoCtx | Geometry context for the local-to-global transformation |
This uses the associated surface to transform the local position on the surface to globalcoordinates. This requires a geometry context to select the appropriate transformation and might be a computationally expensive operation.
Definition at line 189 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 189 of file SingleBoundTrackParameters.hpp
Referenced by PHTpcResiduals::addTrackState(), Acts::Test::BOOST_AUTO_TEST_CASE(), Acts::Test::BOOST_DATA_TEST_CASE(), ActsTransformations::calculateDCA(), ActsEvaluator::calculateDCA(), PHTpcResiduals::calculateTpcResiduals(), checkParametersConsistency(), ActsEvaluator::evaluateTrackFits(), ActsTransformations::fillSvtxTrackStates(), Acts::ZScanVertexFinder< vfitter_t >::find(), Acts::HelicalTrackLinearizer< propagator_t, propagator_options_t >::linearizeTrack(), makeCurvilinearTransform(), ZCylinderSurfaceBuilder::operator()(), ZStrawSurfaceBuilder::operator()(), PHActsTrackProjection::propagateTrack(), Acts::SingleBoundTrackParameters< SinglyCharged >::referenceFrame(), PHActsVertexPropagator::updateSvtxTrack(), and PHActsTrackProjection::updateSvtxTrack().
|
inline |
Reference frame in which the local error is defined.
[in] | geoCtx | Geometry context for the local-to-global transformation |
For planar surfaces, this is the transformation local-to-global rotation matrix. For non-planar surfaces, it is the local-to-global rotation matrix of the tangential plane at the track position.
Definition at line 227 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 227 of file SingleBoundTrackParameters.hpp
|
inline |
Reference surface onto which the parameters are bound.
Definition at line 219 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 219 of file SingleBoundTrackParameters.hpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), Acts::Test::BOOST_DATA_TEST_CASE(), ActsExamples::ResPlotTool::fill(), Acts::ImpactPointEstimator< input_track_t, propagator_t, propagator_options_t >::get3dVertexCompatibility(), Acts::ImpactPointEstimator< input_track_t, propagator_t, propagator_options_t >::getDistanceAndMomentum(), Acts::CKFSourceLinkSelector::operator()(), Acts::Test::runTest(), and Acts::EventDataView3DTest::testMultiTrajectory().
|
inline |
Time coordinate.
Definition at line 196 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 196 of file SingleBoundTrackParameters.hpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), checkParametersConsistency(), and Acts::HelicalTrackLinearizer< propagator_t, propagator_options_t >::linearizeTrack().
|
inline |
Transverse momentum.
Definition at line 207 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 207 of file SingleBoundTrackParameters.hpp
|
inline |
Access a single parameter uncertainty identified by its index.
kIndex | Track parameter index |
zero | if the track parameters have no associated covariance |
parameter | standard deviation if the covariance is available |
Definition at line 160 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 160 of file SingleBoundTrackParameters.hpp
|
inline |
Unit direction three-vector, i.e. the normalized momentum three-vector.
Definition at line 199 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 199 of file SingleBoundTrackParameters.hpp
Referenced by checkParametersConsistency(), makeCurvilinearTransform(), and Acts::SingleBoundTrackParameters< SinglyCharged >::momentum().
|
friend |
Compare two bound parameters for inequality.
Definition at line 247 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 247 of file SingleBoundTrackParameters.hpp
|
friend |
Print information to the output stream.
Definition at line 252 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 252 of file SingleBoundTrackParameters.hpp
|
friend |
Compare two bound parameters for equality.
Definition at line 240 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 240 of file SingleBoundTrackParameters.hpp
|
private |
Definition at line 237 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 237 of file SingleBoundTrackParameters.hpp
Referenced by Acts::SingleBoundTrackParameters< SinglyCharged >::absoluteMomentum(), and Acts::SingleBoundTrackParameters< SinglyCharged >::charge().
|
private |
parameter set holding parameters vector and covariance.
Definition at line 233 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 233 of file SingleBoundTrackParameters.hpp
Referenced by Acts::SingleBoundTrackParameters< SinglyCharged >::covariance(), Acts::SingleBoundTrackParameters< SinglyCharged >::get(), Acts::SingleBoundTrackParameters< SinglyCharged >::getParameterSet(), Acts::SingleBoundTrackParameters< SinglyCharged >::parameters(), and Acts::SingleBoundTrackParameters< SinglyCharged >::uncertainty().
|
private |
reference surface
Definition at line 235 of file SingleBoundTrackParameters.hpp.
View newest version in sPHENIX GitHub at line 235 of file SingleBoundTrackParameters.hpp
Referenced by Acts::SingleBoundTrackParameters< SinglyCharged >::fourPosition(), Acts::SingleBoundTrackParameters< SinglyCharged >::position(), Acts::SingleBoundTrackParameters< SinglyCharged >::referenceFrame(), Acts::SingleBoundTrackParameters< SinglyCharged >::referenceSurface(), and Acts::SingleBoundTrackParameters< SinglyCharged >::SingleBoundTrackParameters().