ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActsPlugins::TGeoParser Struct Reference

TGeoParser is a helper struct that walks recursively through a TGeometry and selects by string comparison the TGeoNodes that match the criteria. More...

#include <ActsPlugins/Root/TGeoParser.hpp>

Classes

struct  Options
 Nested configuration struct. More...
struct  SelectedNode
struct  State
 Nested state struct. More...

Public Types

using ParseRange = std::pair<double, double>
 Type alias for parsing range as min/max bounds pair.

Static Public Member Functions

static TGeoNode * findNodeRecursive (TGeoNode *currentNode, const char *volumeName)
 Simple utility function that recursively finds the node by the volume name in the tgeo branch.
static void select (State &state, const Options &options, const TGeoMatrix &gmatrix=TGeoIdentity("ID"))
 The parsing module, it takes the top Volume and recursively steps down.

Detailed Description

TGeoParser is a helper struct that walks recursively through a TGeometry and selects by string comparison the TGeoNodes that match the criteria.

It also buils up the global transform for the conversion into an ACTS Surface

Member Typedef Documentation

◆ ParseRange

using ActsPlugins::TGeoParser::ParseRange = std::pair<double, double>

Type alias for parsing range as min/max bounds pair.

Member Function Documentation

◆ findNodeRecursive()

TGeoNode * ActsPlugins::TGeoParser::findNodeRecursive ( TGeoNode * currentNode,
const char * volumeName )
static

Simple utility function that recursively finds the node by the volume name in the tgeo branch.

Parameters
currentNode[in] the pointer to the current node in the branch
volumeName[in] the name of the volume to be searched for
Returns
the pointer to the node corresponding to the volume

◆ select()

void ActsPlugins::TGeoParser::select ( State & state,
const Options & options,
const TGeoMatrix & gmatrix = TGeoIdentity("ID") )
static

The parsing module, it takes the top Volume and recursively steps down.

Parameters
state[out] The parsing state configuration, passed through
options[in] The parsing options as required
gmatrixThe current built-up transform to global at this depth