ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActSVG Plugin

Detailed Description

SVG visualization plugin based on the ActSVG library.

Namespaces

namespace  ActsPlugins::Svg::EventDataConverter
 Utilities to convert event data to SVG objects.
namespace  ActsPlugins::Svg::GridConverter
namespace  ActsPlugins::Svg::IndexedSurfacesConverter
namespace  ActsPlugins::Svg::LayerConverter
namespace  ActsPlugins::Svg::Sheet
namespace  ActsPlugins::Svg::SurfaceArrayConverter
 Utilities to convert a surface array into proto objects for SVG output.
namespace  ActsPlugins::Svg::SurfaceConverter
namespace  ActsPlugins::Svg::TrackingGeometryConverter
namespace  ActsPlugins::Svg::TrackingGeometryProjections
namespace  ActsPlugins::Svg::View

Classes

struct  ActsPlugins::Svg::GridConverter::Options
 Nested Options struct. More...
struct  ActsPlugins::Svg::IndexedSurfacesConverter::Options
 Nested options struct. More...
struct  ActsPlugins::Svg::LayerConverter::Options
 A nested options class for the layer conversion. More...
struct  ActsPlugins::Svg::Style
 Style struct. More...
struct  ActsPlugins::Svg::SurfaceArrayConverter::Options
 Nested options struct. More...
struct  ActsPlugins::Svg::SurfaceConverter::Options
 Nested Options struct. More...
struct  ActsPlugins::Svg::TrackingGeometryConverter::Options
 Nested Options struct for the writing configuration. More...
struct  ActsPlugins::Svg::TrackingGeometryConverter::State
 State object to collect geometry-wise information. More...
struct  ActsPlugins::Svg::TrackingGeometryProjections::Options

Enumerations

enum  ActsPlugins::Svg::LayerConverter::Sheets { ActsPlugins::Svg::LayerConverter::eModuleInfo = 0 , ActsPlugins::Svg::LayerConverter::eGridInfo = 1 , ActsPlugins::Svg::LayerConverter::eCrossSectionXY = 2 , ActsPlugins::Svg::LayerConverter::eCrossSectionZR = 3 }
 The enumeration for sheets. More...

Functions

ProtoIndexedSurfaceGrid ActsPlugins::Svg::SurfaceArrayConverter::convert (const Acts::GeometryContext &gctx, const Acts::SurfaceArray &surfaceArray, const Options &cOptions=Options())
 Convert a surface array into needed constituents.
template<typename view_type>
actsvg::svg::object ActsPlugins::Svg::EventDataConverter::point (const Acts::Vector3 &pos, double size, const Style &style, unsigned int idx)
 Write/create a 3D point in a given view.
actsvg::svg::object ActsPlugins::Svg::EventDataConverter::pointXY (const Acts::Vector3 &pos, double size, const Style &style, unsigned int idx=0)
 Write/create a 3D point in XY view.
actsvg::svg::object ActsPlugins::Svg::EventDataConverter::pointZR (const Acts::Vector3 &pos, double size, const Style &style, unsigned int idx=0)
 Write/create a 3D point in ZR view.

Enumeration Type Documentation

◆ Sheets

The enumeration for sheets.

Enumerator
eModuleInfo 
eGridInfo 
eCrossSectionXY 
eCrossSectionZR 

Function Documentation

◆ convert()

ProtoIndexedSurfaceGrid ActsPlugins::Svg::SurfaceArrayConverter::convert ( const Acts::GeometryContext & gctx,
const Acts::SurfaceArray & surfaceArray,
const Options & cOptions = Options() )

Convert a surface array into needed constituents.

Parameters
gctxis the geometry context of the conversion call
surfaceArrayis the surface to convert
cOptionsthe conversion options
Note
the type of view is auto-generated from the binning information, it transforms the surface array into an indexed array of surfaces and then uses these proto objects, one can thus directly use the view function of the indexed surface grid
Returns
a collection of proto surface object and a grid, and associations

◆ point()

template<typename view_type>
actsvg::svg::object ActsPlugins::Svg::EventDataConverter::point ( const Acts::Vector3 & pos,
double size,
const Style & style,
unsigned int idx )

Write/create a 3D point in a given view.

Parameters
posthe position
sizethe size of the object
stylethe style of the object
idxthe running index
Returns
a vector of svg objects

◆ pointXY()

actsvg::svg::object ActsPlugins::Svg::EventDataConverter::pointXY ( const Acts::Vector3 & pos,
double size,
const Style & style,
unsigned int idx = 0 )

Write/create a 3D point in XY view.

Parameters
posthe position
sizethe size of the object
stylethe style of the object
idxthe running index
Returns
a vector of svg objects

◆ pointZR()

actsvg::svg::object ActsPlugins::Svg::EventDataConverter::pointZR ( const Acts::Vector3 & pos,
double size,
const Style & style,
unsigned int idx = 0 )

Write/create a 3D point in ZR view.

Parameters
posthe position
sizethe size of the object
stylethe style of the object
idxthe running index
Returns
a vector of svg objects