ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::EventDataView3D Struct Reference

#include <Acts/Visualization/EventDataView3D.hpp>

Static Public Member Functions

static std::vector< Vector3createEllipse (double lambda0, double lambda1, double theta, std::size_t lseg, double offset, const Vector2 &lposition=Vector2(0., 0.), const Transform3 &transform=Transform3::Identity())
 Helper method to draw the ellipse points.
static std::array< double, 3 > decomposeCovariance (const ActsSquareMatrix< 2 > &covariance)
 Helper to find the eigen values and corr angle.
template<typename parameters_t>
static void drawBoundTrackParameters (IVisualization3D &helper, const parameters_t &parameters, const GeometryContext &gctx=GeometryContext::dangerouslyDefaultConstruct(), double momentumScale=1., double locErrorScale=1., double angularErrorScale=1., const ViewConfig &parConfig=s_viewParameter, const ViewConfig &covConfig=s_viewParameter, const ViewConfig &surfConfig=s_viewSensitive)
 Helper method to draw bound parameters object.
static void drawCovarianceAngular (IVisualization3D &helper, const Vector3 &position, const Vector3 &direction, const ActsSquareMatrix< 2 > &covariance, double directionScale=1, double angularErrorScale=1, const ViewConfig &viewConfig=s_viewParameter)
 Helper method to draw error cone of a direction.
static void drawCovarianceCartesian (IVisualization3D &helper, const Vector2 &lposition, const SquareMatrix2 &covariance, const Transform3 &transform, double locErrorScale=1, const ViewConfig &viewConfig=s_viewParameter)
 Helper method to draw error ellipse.
static void drawMeasurement (IVisualization3D &helper, const Vector2 &lposition, const SquareMatrix2 &covariance, const Transform3 &transform, const double locErrorScale=1., const ViewConfig &measurementConfig=s_viewMeasurement)
 Helper method to draw a single measurement.
template<typename traj_t>
static void drawMultiTrajectory (IVisualization3D &helper, const traj_t &multiTraj, const std::size_t &entryIndex, const GeometryContext &gctx=GeometryContext::dangerouslyDefaultConstruct(), double momentumScale=1., double locErrorScale=1., double angularErrorScale=1., const ViewConfig &surfaceConfig=s_viewSensitive, const ViewConfig &measurementConfig=s_viewMeasurement, const ViewConfig &predictedConfig=s_viewPredicted, const ViewConfig &filteredConfig=s_viewFiltered, const ViewConfig &smoothedConfig=s_viewSmoothed)
 Helper method to draw one trajectory stored in a MultiTrajectory object.

Member Function Documentation

◆ createEllipse()

std::vector< Vector3 > Acts::EventDataView3D::createEllipse ( double lambda0,
double lambda1,
double theta,
std::size_t lseg,
double offset,
const Vector2 & lposition = Vector2(0., 0.),
const Transform3 & transform = Transform3::Identity() )
static

Helper method to draw the ellipse points.

Parameters
lambda0The Eigenvalue in 0
lambda1The Eigenvalue in 1
thetaThe angle between the x/y frame and EV frame
lsegThe number of segments
offsetThe out of plane offset for visibility
lpositionThe local anker point of the ellipse
transformThe transform to global

◆ decomposeCovariance()

std::array< double, 3 > Acts::EventDataView3D::decomposeCovariance ( const ActsSquareMatrix< 2 > & covariance)
static

Helper to find the eigen values and corr angle.

Parameters
covarianceThe covariance matrix

◆ drawBoundTrackParameters()

template<typename parameters_t>
void Acts::EventDataView3D::drawBoundTrackParameters ( IVisualization3D & helper,
const parameters_t & parameters,
const GeometryContext & gctx = GeometryContext::dangerouslyDefaultConstruct(),
double momentumScale = 1.,
double locErrorScale = 1.,
double angularErrorScale = 1.,
const ViewConfig & parConfig = s_viewParameter,
const ViewConfig & covConfig = s_viewParameter,
const ViewConfig & surfConfig = s_viewSensitive )
static

Helper method to draw bound parameters object.

Parameters
helper[in, out] The visualization helper
parametersThe bound parameters to be drawn
gctxThe geometry context for which it is drawn
momentumScaleThe scale of the momentum
locErrorScaleThe scale of the local error
angularErrorScaleThe scale of the angular error
parConfigThe visualization options for the parameter
covConfigThe visualization option for the covariance
surfConfigThe visualization option for the surface

◆ drawCovarianceAngular()

void Acts::EventDataView3D::drawCovarianceAngular ( IVisualization3D & helper,
const Vector3 & position,
const Vector3 & direction,
const ActsSquareMatrix< 2 > & covariance,
double directionScale = 1,
double angularErrorScale = 1,
const ViewConfig & viewConfig = s_viewParameter )
static

Helper method to draw error cone of a direction.

Parameters
helper[in, out] The visualization helper
positionWhere the cone originates from
directionThe direction parameters
covarianceThe 2x2 covariance matrix for phi/theta
directionScaleThe direction arrow length
angularErrorScaleThe local Error scale
viewConfigThe visualization parameters

◆ drawCovarianceCartesian()

void Acts::EventDataView3D::drawCovarianceCartesian ( IVisualization3D & helper,
const Vector2 & lposition,
const SquareMatrix2 & covariance,
const Transform3 & transform,
double locErrorScale = 1,
const ViewConfig & viewConfig = s_viewParameter )
static

Helper method to draw error ellipse.

Parameters
helper[in, out] The visualization helper
lpositionThe local position
covarianceThe covariance matrix
transformThe reference Frame transform
locErrorScaleThe local Error scale
viewConfigThe visualization parameters

◆ drawMeasurement()

void Acts::EventDataView3D::drawMeasurement ( IVisualization3D & helper,
const Vector2 & lposition,
const SquareMatrix2 & covariance,
const Transform3 & transform,
const double locErrorScale = 1.,
const ViewConfig & measurementConfig = s_viewMeasurement )
static

Helper method to draw a single measurement.

Parameters
helper[in, out] The visualization helper
lpositioncalibrated measurement
covariancecalibrated covariance
transformreference surface transformed with the geometry context
locErrorScaleThe scale of the local error
measurementConfigThe visualization options for the measurement

TODO: Expand to 1D measurements

◆ drawMultiTrajectory()

template<typename traj_t>
void Acts::EventDataView3D::drawMultiTrajectory ( IVisualization3D & helper,
const traj_t & multiTraj,
const std::size_t & entryIndex,
const GeometryContext & gctx = GeometryContext::dangerouslyDefaultConstruct(),
double momentumScale = 1.,
double locErrorScale = 1.,
double angularErrorScale = 1.,
const ViewConfig & surfaceConfig = s_viewSensitive,
const ViewConfig & measurementConfig = s_viewMeasurement,
const ViewConfig & predictedConfig = s_viewPredicted,
const ViewConfig & filteredConfig = s_viewFiltered,
const ViewConfig & smoothedConfig = s_viewSmoothed )
static

Helper method to draw one trajectory stored in a MultiTrajectory object.

Parameters
helper[in, out] The visualization helper
multiTrajThe MultiTrajectory storing the trajectory to be drawn
entryIndexThe trajectory entry index
gctxThe geometry context for which it is drawn
momentumScaleThe scale of the momentum
locErrorScaleThe scale of the local error
angularErrorScaleThe scale of the angular error
surfaceConfigThe visualization options for the surface
measurementConfigThe visualization options for the measurement
predictedConfigThe visualization options for the predicted measurement
filteredConfigThe visualization options for the filtered parameters
smoothedConfigThe visualization options for the smoothed parameters