Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Svg::IndexedSurfacesConverter Namespace Reference

Classes

struct  Options
 Nested options struct. More...
 

Functions

template<typename surface_container , typename index_grid >
ProtoIndexedSurfaceGrid convertImpl (const GeometryContext &gctx, const surface_container &surfaces, const index_grid &indexGrid, const Options &cOptions)
 
template<typename surface_container , typename instance_type >
void convert (const GeometryContext &gctx, const surface_container &surfaces, const Options &cOptions, ProtoIndexedSurfaceGrid &sgi, const Experimental::SurfaceCandidatesUpdator &delegate,[[maybe_unused]] const instance_type &refInstance)
 Convert the single delegate if it is of the type of the reference.
 
template<typename surface_container , typename tuple_type , std::size_t... I>
void unrollConvert (const GeometryContext &gctx, const surface_container &surfaces, const Options &cOptions, ProtoIndexedSurfaceGrid &sgi, const Experimental::SurfaceCandidatesUpdator &delegate, const tuple_type &axesTuple, std::index_sequence< I...>)
 Unrolling function for catching the right instance.
 
template<typename surface_container >
ProtoIndexedSurfaceGrid convert (const GeometryContext &gctx, const surface_container &surfaces, const Experimental::SurfaceCandidatesUpdator &delegate, const Options &cOptions)
 

Function Documentation

template<typename surface_container , typename instance_type >
void Acts::Svg::IndexedSurfacesConverter::convert ( const GeometryContext &  gctx,
const surface_container &  surfaces,
const Options cOptions,
ProtoIndexedSurfaceGrid &  sgi,
const Experimental::SurfaceCandidatesUpdator &  delegate,
[[maybe_unused] ] const instance_type &  refInstance 
)

Convert the single delegate if it is of the type of the reference.

Note
It will do nothing if the type does not match
Template Parameters
surface_containerthe surfaces to be drawn
instance_typethe reference instance type
Parameters
gctxThe Geometry context of this operation
surfacesThe surfaces to be converted
cOptionsthe conversion options
sgi[in,out] the proto indexed grid to be converted
delegatethe delegate to be translated
refInstancethe reference input type from the reference Axes

Definition at line 192 of file IndexedSurfacesSvgConverter.hpp.

View newest version in sPHENIX GitHub at line 192 of file IndexedSurfacesSvgConverter.hpp

References convertImpl().

+ Here is the call graph for this function:

template<typename surface_container >
ProtoIndexedSurfaceGrid Acts::Svg::IndexedSurfacesConverter::convert ( const GeometryContext &  gctx,
const surface_container &  surfaces,
const Experimental::SurfaceCandidatesUpdator &  delegate,
const Options cOptions 
)

Convert a surface array into needed constituents

Parameters
gtcxis the geometry context of the conversion call
surfacesthe container of surfaces
indexGridthe indexGrid delegate
cOptionsthe conversion options
Note
this is the entry point of the conversion, i.e. top of the unrolling loop
Returns
a collection of proto surface object and a grid, and associations

Definition at line 242 of file IndexedSurfacesSvgConverter.hpp.

View newest version in sPHENIX GitHub at line 242 of file IndexedSurfacesSvgConverter.hpp

References Acts::Experimental::s_possibleAxes, unrollConvert(), and value.

+ Here is the call graph for this function:

template<typename surface_container , typename index_grid >
ProtoIndexedSurfaceGrid Acts::Svg::IndexedSurfacesConverter::convertImpl ( const GeometryContext &  gctx,
const surface_container &  surfaces,
const index_grid &  indexGrid,
const Options cOptions 
)

Convert a surface array into needed constituents

Note
actual conversion implementation, bottom of unrolling loop
Parameters
gtcxis the geometry context of the conversion call
surfacesthe container of surfaces
indexGridthe indexGrid delegate
cOptionsthe conversion options
Returns
a collection of proto surface object and a grid, and associations

Definition at line 87 of file IndexedSurfacesSvgConverter.hpp.

View newest version in sPHENIX GitHub at line 87 of file IndexedSurfacesSvgConverter.hpp

References Acts::binPhi, Acts::binR, Acts::Svg::DetectorConverter::convert(), Acts::GeometryHierarchyMap< value_t >::end(), Acts::enumerate(), Acts::Extent::extend(), Acts::GeometryHierarchyMap< value_t >::find(), Acts::Svg::IndexedSurfacesConverter::Options::gridOptions, Acts::Extent::medium(), Acts::Range1D< Type >::min(), Acts::Svg::GridConverter::Options::optionalBound, pSurface, Acts::Extent::range(), physmon_simulation::s, Acts::Svg::SurfaceConverter::Options::style, Acts::Svg::IndexedSurfacesConverter::Options::surfaceStyles, to_string(), and physmon_ckf_tracking::u.

Referenced by convert().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename surface_container , typename tuple_type , std::size_t... I>
void Acts::Svg::IndexedSurfacesConverter::unrollConvert ( const GeometryContext &  gctx,
const surface_container &  surfaces,
const Options cOptions,
ProtoIndexedSurfaceGrid &  sgi,
const Experimental::SurfaceCandidatesUpdator &  delegate,
const tuple_type &  axesTuple,
std::index_sequence< I...>   
)

Unrolling function for catching the right instance.

Note
parameters are as of the convertImpl method

Definition at line 221 of file IndexedSurfacesSvgConverter.hpp.

View newest version in sPHENIX GitHub at line 221 of file IndexedSurfacesSvgConverter.hpp

References Acts::Svg::DetectorConverter::convert().

Referenced by convert(), and Acts::IndexedSurfacesJsonConverter::toJson().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: