ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::JsonSurfacesReader Namespace Reference

Classes

struct  Options
 Options specification for surface reading The file should contain an array of json surfaces as produced by the SurfaceJsonConverter tools. More...

Functions

std::vector< std::shared_ptr< Acts::JsonDetectorElement > > readDetectorElements (const Options &options, double thickness)
 Read the surfaces from the input file and create detector elements For details on the file format see the options struct.
Acts::GeometryHierarchyMap< std::shared_ptr< Acts::Surface > > readHierarchyMap (const Options &options)
 Read the surfaces from the input file For details on the file format see the options struct.
std::vector< std::shared_ptr< Acts::Surface > > readVector (const Options &options)
 Read the flat surfaces from the input file For details on the file format see the options struct.

Function Documentation

◆ readDetectorElements()

std::vector< std::shared_ptr< Acts::JsonDetectorElement > > Acts::JsonSurfacesReader::readDetectorElements ( const Options & options,
double thickness )

Read the surfaces from the input file and create detector elements For details on the file format see the options struct.

Parameters
optionsoptions for surface reading
thicknessthe thickness used to construct the detector element
Returns
a vector of surfaces

◆ readHierarchyMap()

Acts::GeometryHierarchyMap< std::shared_ptr< Acts::Surface > > Acts::JsonSurfacesReader::readHierarchyMap ( const Options & options)

Read the surfaces from the input file For details on the file format see the options struct.

Parameters
optionsspecifies which file and what to read
Returns
a vector of surfaces

◆ readVector()

std::vector< std::shared_ptr< Acts::Surface > > Acts::JsonSurfacesReader::readVector ( const Options & options)

Read the flat surfaces from the input file For details on the file format see the options struct.

Parameters
optionsoptions for surface reading
Returns
a vector of surfaces