EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::EventDataView3D Struct Reference

#include <acts/blob/sPHENIX/Core/include/Acts/Visualization/EventDataView3D.hpp>

Static Public Member Functions

static std::array< double, 3 > decomposeCovariance (const ActsSymMatrixD< 2 > &covariance)
 
static std::vector< Vector3DcreateEllipse (double lambda0, double lambda1, double theta, size_t lseg, double offset, const Vector2D &lposition=Vector2D(0., 0.), const Transform3D &transform=Transform3D::Identity())
 
static void drawCovarianceCartesian (IVisualization3D &helper, const Vector2D &lposition, const ActsSymMatrixD< 2 > &covariance, const Transform3D &transform, double locErrorScale=1, const ViewConfig &viewConfig=s_viewParameter)
 
static void drawCovarianceAngular (IVisualization3D &helper, const Vector3D &position, const Vector3D &direction, const ActsSymMatrixD< 2 > &covariance, double directionScale=1, double angularErrorScale=1, const ViewConfig &viewConfig=s_viewParameter)
 
template<typename parameters_t >
static void drawBoundTrackParameters (IVisualization3D &helper, const parameters_t &parameters, const GeometryContext &gctx=GeometryContext(), double momentumScale=1., double locErrorScale=1., double angularErrorScale=1., const ViewConfig &parConfig=s_viewParameter, const ViewConfig &covConfig=s_viewParameter, const ViewConfig &surfConfig=s_viewSensitive)
 
template<typename source_link_t >
static void drawMultiTrajectory (IVisualization3D &helper, const Acts::MultiTrajectory< source_link_t > &multiTraj, const size_t &entryIndex, const GeometryContext &gctx=GeometryContext(), 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)
 

Detailed Description

Definition at line 34 of file EventDataView3D.hpp.

View newest version in sPHENIX GitHub at line 34 of file EventDataView3D.hpp

Member Function Documentation

static std::vector<Vector3D> Acts::EventDataView3D::createEllipse ( double  lambda0,
double  lambda1,
double  theta,
size_t  lseg,
double  offset,
const Vector2D lposition = Vector2D(0., 0.),
const Transform3D transform = Transform3D::Identity() 
)
inlinestatic

Helper mehod 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

Definition at line 64 of file EventDataView3D.hpp.

View newest version in sPHENIX GitHub at line 64 of file EventDataView3D.hpp

References cos(), it, M_PI, phi, Acts::Test::transform, x, and y.

Referenced by drawCovarianceCartesian().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Helper to find the egen values and corr angle

Parameters
covarianceThe covariance matrix

Definition at line 38 of file EventDataView3D.hpp.

View newest version in sPHENIX GitHub at line 38 of file EventDataView3D.hpp

References Acts::eBoundLoc0, Acts::eBoundLoc1, and theta().

Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and drawCovarianceCartesian().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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 sclae of the angular error
parConfigThe visualization options for the parameter
covConfigThe visualization option for the covariance
surfConfigThe visualization option for the surface

Definition at line 129 of file EventDataView3D.hpp.

View newest version in sPHENIX GitHub at line 129 of file EventDataView3D.hpp

References Acts::GeometryView3D::drawArrowBackward(), Acts::GeometryView3D::drawArrowForward(), drawCovarianceAngular(), drawCovarianceCartesian(), Acts::GeometryView3D::drawSurface(), Acts::Test::gctx, Acts::ViewConfig::lineThickness, p, and Acts::VectorHelpers::position().

Referenced by drawMultiTrajectory(), and Acts::EventDataView3DTest::testBoundTrackParameters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Acts::EventDataView3D::drawCovarianceAngular ( IVisualization3D helper,
const Vector3D position,
const Vector3D direction,
const ActsSymMatrixD< 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 arror length
angularErrorScaleThe local Error scale
viewConfigThe visualization parameters

Definition at line 28 of file EventDataView3D.cpp.

View newest version in sPHENIX GitHub at line 28 of file EventDataView3D.cpp

References Acts::ViewConfig::nSegments, Acts::VectorHelpers::phi(), Acts::VectorHelpers::theta(), and theta().

Referenced by drawBoundTrackParameters(), and Acts::PrimitivesView3DTest::run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Acts::EventDataView3D::drawCovarianceCartesian ( IVisualization3D helper,
const Vector2D lposition,
const ActsSymMatrixD< 2 > &  covariance,
const Transform3D 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

Definition at line 11 of file EventDataView3D.cpp.

View newest version in sPHENIX GitHub at line 11 of file EventDataView3D.cpp

References Acts::detail::FacesHelper::convexFaceMesh(), createEllipse(), decomposeCovariance(), Acts::GeometryView3D::drawPolyhedron(), Acts::ViewConfig::nSegments, Acts::ViewConfig::offset, and theta().

Referenced by drawBoundTrackParameters(), drawMultiTrajectory(), and Acts::PrimitivesView3DTest::run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename source_link_t >
static void Acts::EventDataView3D::drawMultiTrajectory ( IVisualization3D helper,
const Acts::MultiTrajectory< source_link_t > &  multiTraj,
const size_t &  entryIndex,
const GeometryContext gctx = GeometryContext(),
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 
)
inlinestatic

Helper method to draw one trajectory stored in a MultiTrajectory object

Template Parameters
source_link_tThe source link type
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 sclae 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

Definition at line 193 of file EventDataView3D.hpp.

View newest version in sPHENIX GitHub at line 193 of file EventDataView3D.hpp

References drawBoundTrackParameters(), drawCovarianceCartesian(), Acts::GeometryView3D::drawSurface(), Acts::Test::gctx, Acts::MeasurementFlag, and Acts::MultiTrajectory< source_link_t >::visitBackwards().

Referenced by Acts::EventDataView3DTest::testMultiTrajectory().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this struct was generated from the following files: