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>
|
|
using | ParseRange = std::pair<double, double> |
| | Type alias for parsing range as min/max bounds pair.
|
|
| 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.
|
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
◆ 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 |
| gmatrix | The current built-up transform to global at this depth |