ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Visualization Namespace Reference

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 outOfPlane, const Vector2D &lposition=Vector2D(0., 0.), const Transform3D &transform=Transform3D::Identity())
 
static void drawCovarianceCartesian (IVisualization &helper, const Vector2D &lposition, const ActsSymMatrixD< 2 > &covariance, const Transform3D &transform, std::vector< int > nsigma={3}, double locErrorScale=1, size_t lseg=72, const IVisualization::ColorType &color={20, 120, 20}, double outOfPlane=0.1)
 
static void drawCovarianceAngular (IVisualization &helper, const Vector3D &position, const Vector3D &direction, const ActsSymMatrixD< 2 > &covariance, std::vector< int > nsigma={3}, double directionScale=1, double angularErrorScale=1, size_t lseg=72, const IVisualization::ColorType &color={20, 120, 20})
 
template<typename parameters_t >
static void drawBoundParameters (IVisualization &helper, const parameters_t &parameters, const GeometryContext &gctx=GeometryContext(), double momentumScale=1., double locErrorScale=1., double angularErrorScale=1., bool drawParameterSurface=true, size_t lseg=72, const IVisualization::ColorType &pcolor={20, 120, 20}, const IVisualization::ColorType &scolor={235, 198, 52})
 
static void drawSurface (IVisualization &helper, const Surface &surface, const GeometryContext &gctx, const Transform3D &transform=Transform3D::Identity(), size_t lseg=72, bool triangulate=false, const IVisualization::ColorType &color={120, 120, 120})
 
template<typename volume_t >
void drawVolume (IVisualization &helper, const volume_t &volume, const GeometryContext &gctx, const Transform3D &transform=Transform3D::Identity(), size_t lseg=72, bool triangulate=false, const IVisualization::ColorType &color={120, 120, 120})
 
static void drawSegmentBase (IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, int arrows=0, double arrowLength=0., double arrowWidth=0., size_t lseg=72, const IVisualization::ColorType &color={120, 120, 120})
 
static void drawSegment (IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, size_t lseg=72, const IVisualization::ColorType &color={20, 120, 120})
 
static void drawArrowBackward (IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, double arrowLength, double arrowWidth, size_t lseg=72, const IVisualization::ColorType &color={120, 120, 120})
 
static void drawArrowForward (IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, double arrowLength, double arrowWidth, size_t lseg=72, const IVisualization::ColorType &color={120, 120, 120})
 
static void drawArrowsBoth (IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, double arrowLength, double arrowWidth, size_t lseg=72, const IVisualization::ColorType &color={120, 120, 120})
 

Function Documentation

static std::vector<Vector3D> Acts::Visualization::createEllipse ( double  lambda0,
double  lambda1,
double  theta,
size_t  lseg,
double  outOfPlane,
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
outOfPlaneThe out of plane offset for visibility
lpositionThe local anker point of the ellipse
transformThe transform to global

Definition at line 56 of file EventDataVisualization.hpp.

View newest version in sPHENIX GitHub at line 56 of file EventDataVisualization.hpp

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

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

Helper to find the egen values and corr angle

Parameters
covarianceThe covariance matrix

Definition at line 30 of file EventDataVisualization.hpp.

View newest version in sPHENIX GitHub at line 30 of file EventDataVisualization.hpp

References Acts::eLOC_0, Acts::eLOC_1, and theta().

Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void Acts::Visualization::drawArrowBackward ( IVisualization &  helper,
const Vector3D start,
const Vector3D end,
double  thickness,
double  arrowLength,
double  arrowWidth,
size_t  lseg = 72,
const IVisualization::ColorType &  color = {120, 120, 120} 
)
inlinestatic

Convenience function : arrow pointing back

Parameters
helper[in, out] The visualization helper
startThe start point
endThe end point
thicknessof the line, if bigger 0, approximated by cylinder
arrowLengthwrt halflength
arrorWidthwrt thickness
lsegThe number of segments for a full arch (if needed)
colorthe (optional) color of the object to be written

Definition at line 196 of file GeometryVisualization.hpp.

View newest version in sPHENIX GitHub at line 196 of file GeometryVisualization.hpp

Referenced by Acts::PrimitivesVisualization::test().

+ Here is the caller graph for this function:

static void Acts::Visualization::drawArrowForward ( IVisualization &  helper,
const Vector3D start,
const Vector3D end,
double  thickness,
double  arrowLength,
double  arrowWidth,
size_t  lseg = 72,
const IVisualization::ColorType &  color = {120, 120, 120} 
)
inlinestatic

Convenience function : arrow pointing forwad

Parameters
helper[in, out] The visualization helper
startThe start point
endThe end point
thicknessof the line, if bigger 0, approximated by cylinder
arrowLengthwrt halflength
arrorWidthwrt thickness
lsegThe number of segments for a full arch (if needed)
colorthe (optional) color of the object to be written

Definition at line 214 of file GeometryVisualization.hpp.

View newest version in sPHENIX GitHub at line 214 of file GeometryVisualization.hpp

Referenced by Acts::PrimitivesVisualization::test().

+ Here is the caller graph for this function:

static void Acts::Visualization::drawArrowsBoth ( IVisualization &  helper,
const Vector3D start,
const Vector3D end,
double  thickness,
double  arrowLength,
double  arrowWidth,
size_t  lseg = 72,
const IVisualization::ColorType &  color = {120, 120, 120} 
)
inlinestatic

Convenience function : arrow pointing both directions

Parameters
helper[in, out] The visualization helper
startThe start point
endThe end point
thicknessof the line, if bigger 0, approximated by cylinder
arrowLengthwrt halflength
arrorWidthwrt thickness
lsegThe number of segments for a full arch (if needed)
colorthe (optional) color of the object to be written

Definition at line 232 of file GeometryVisualization.hpp.

View newest version in sPHENIX GitHub at line 232 of file GeometryVisualization.hpp

Referenced by Acts::PrimitivesVisualization::test().

+ Here is the caller graph for this function:

template<typename parameters_t >
static void Acts::Visualization::drawBoundParameters ( IVisualization &  helper,
const parameters_t &  parameters,
const GeometryContext &  gctx = GeometryContext(),
double  momentumScale = 1.,
double  locErrorScale = 1.,
double  angularErrorScale = 1.,
bool  drawParameterSurface = true,
size_t  lseg = 72,
const IVisualization::ColorType &  pcolor = {20, 120, 20},
const IVisualization::ColorType &  scolor = {235, 198, 52} 
)
inlinestatic

Helper method to Surface objects

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
drawParameterSurfaceThe indicator whether to draw the surface
lsegThe number of segments for a full arch (if needed)
pcolorthe (optional) color of the parameters to be written
scolorthe (optional) color of the surface to be written

Definition at line 170 of file EventDataVisualization.hpp.

View newest version in sPHENIX GitHub at line 170 of file EventDataVisualization.hpp

Referenced by Acts::EventDataVisualization::test().

+ Here is the caller graph for this function:

static void Acts::Visualization::drawCovarianceAngular ( IVisualization &  helper,
const Vector3D position,
const Vector3D direction,
const ActsSymMatrixD< 2 > &  covariance,
std::vector< int nsigma = {3},
double  directionScale = 1,
double  angularErrorScale = 1,
size_t  lseg = 72,
const IVisualization::ColorType &  color = {20, 120, 20} 
)
inlinestatic

Helper method to 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
nsigmaThe sigmas to be drawn
directionScaleThe direction arror length
angularErrorScaleThe local Error scale
lsegThe number of segments
colorThe draw color

Definition at line 121 of file EventDataVisualization.hpp.

View newest version in sPHENIX GitHub at line 121 of file EventDataVisualization.hpp

Referenced by Acts::PrimitivesVisualization::test().

+ Here is the caller graph for this function:

static void Acts::Visualization::drawCovarianceCartesian ( IVisualization &  helper,
const Vector2D &  lposition,
const ActsSymMatrixD< 2 > &  covariance,
const Transform3D &  transform,
std::vector< int nsigma = {3},
double  locErrorScale = 1,
size_t  lseg = 72,
const IVisualization::ColorType &  color = {20, 120, 20},
double  outOfPlane = 0.1 
)
inlinestatic

Helper method to draw error ellipse

Parameters
helper[in, out] The visualization helper
lpositionThe local position
covarianceThe covariance matrix
transformThe reference Frame transform
nsigmaThe sigmas to be drawn
locErrorScaleThe local Error scale
colorThe draw color
outOfPlaneThe out of plane drawning option

Definition at line 91 of file EventDataVisualization.hpp.

View newest version in sPHENIX GitHub at line 91 of file EventDataVisualization.hpp

Referenced by Acts::PrimitivesVisualization::test().

+ Here is the caller graph for this function:

static void Acts::Visualization::drawSegment ( IVisualization &  helper,
const Vector3D start,
const Vector3D end,
double  thickness,
size_t  lseg = 72,
const IVisualization::ColorType &  color = { 20, 120, 120} 
)
inlinestatic

Convenience function : line

Parameters
helper[in, out] The visualization helper
startThe start point
endThe end point
thicknessof the line, if bigger 0, approximated by cylinder
lsegThe number of segments for a full arch (if needed)
colorthe (optional) color of the object to be written

Definition at line 178 of file GeometryVisualization.hpp.

View newest version in sPHENIX GitHub at line 178 of file GeometryVisualization.hpp

Referenced by Acts::PrimitivesVisualization::test().

+ Here is the caller graph for this function:

static void Acts::Visualization::drawSegmentBase ( IVisualization &  helper,
const Vector3D start,
const Vector3D end,
double  thickness,
int  arrows = 0,
double  arrowLength = 0.,
double  arrowWidth = 0.,
size_t  lseg = 72,
const IVisualization::ColorType &  color = {120, 120, 120} 
)
inlinestatic

Helper method to draw lines - base for all lines

Parameters
helper[in, out] The visualization helper
startThe start point
endThe end point
thicknessof the line, if bigger 0, approximated by cylinder
arrows[ -1 | 0 | 1 | 2 ] = [ start | none | end | both ]
arrowLengthwrt halflength
arrowWidthwrt thickness
lsegThe number of segments for a full arch (if needed)
colorthe (optional) color of the object to be written

Definition at line 84 of file GeometryVisualization.hpp.

View newest version in sPHENIX GitHub at line 84 of file GeometryVisualization.hpp

static void Acts::Visualization::drawSurface ( IVisualization &  helper,
const Surface surface,
const GeometryContext &  gctx,
const Transform3D &  transform = Transform3D::Identity(),
size_t  lseg = 72,
bool  triangulate = false,
const IVisualization::ColorType &  color = {120, 120, 120} 
)
inlinestatic

Helper method to Surface objects

Parameters
helper[in, out] The visualization helper
surfaceThe surface to be drawn
gctxThe geometry context for which it is drawn
transformAn option additional transform
lsegThe number of segments for a full arch (if needed)
triangulateThe (optional) boolean diretive to triangulate the faces
colorthe (optional) color of the object to be written

Definition at line 36 of file GeometryVisualization.hpp.

View newest version in sPHENIX GitHub at line 36 of file GeometryVisualization.hpp

Referenced by Acts::PrimitivesVisualization::test(), and Acts::SurfaceVisualization::test().

+ Here is the caller graph for this function:

template<typename volume_t >
void Acts::Visualization::drawVolume ( IVisualization &  helper,
const volume_t &  volume,
const GeometryContext &  gctx,
const Transform3D &  transform = Transform3D::Identity(),
size_t  lseg = 72,
bool  triangulate = false,
const IVisualization::ColorType &  color = {120, 120, 120} 
)
inline

Helper method for volume objects

Template Parameters
volume_tthe templated volume class
Parameters
helper[in, out] The visualization helper
volumeThe surface to be drawn
gctxThe geometry context for which it is drawn
transformAn option additional transform
lsegThe number of segments for a full arch (if needed)
triangulateThe (optional) boolean diretive to triangulate the faces
colorthe (optional) color of the object to be written

Definition at line 59 of file GeometryVisualization.hpp.

View newest version in sPHENIX GitHub at line 59 of file GeometryVisualization.hpp

Referenced by Acts::VolumeVisualization::test().

+ Here is the caller graph for this function: