File TGeoParser.hpp¶
-
namespace Acts
Note
This file is foreseen for the
Geometry
module to replaceExtent
Note
this is foreseen for the ‘Geometry’ module
-
struct TGeoParser¶
- #include <Acts/Plugins/TGeo/TGeoParser.hpp>
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
Public Types
-
using ParseRange = std::pair<double, double>¶
Public Static Functions
-
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.
- Parameters
state – [out] The parseing state configuration, passed through
options – [in] The parsing options as requiremed
gmatrix – The current built-up transform to global at this depth
-
struct Options¶
- #include <Acts/Plugins/TGeo/TGeoParser.hpp>
Nested configuration struct.
This contains the parsing configuration
Public Members
-
std::string localAxes = "XYZ"¶
The local axis definition of TGeo object wrt Acts::Surface.
-
std::vector<std::pair<BinningValue, ParseRange>> parseRanges = {}¶
Parse restrictions, several can apply.
-
std::vector<std::string> targetNames = {}¶
Identify the sensor(s)/target(s) by name.
-
double unit = 1 * UnitConstants::cm¶
Scaling from TGeo to ROOT.
-
std::vector<std::string> volumeNames = {}¶
Identify the volume by name.
-
std::string localAxes = "XYZ"¶
-
struct SelectedNode¶
- #include <Acts/Plugins/TGeo/TGeoParser.hpp>
-
struct State¶
- #include <Acts/Plugins/TGeo/TGeoParser.hpp>
Nested state struct.
This is needed for the recursive parsing of the geometry, it collects the information during the parsing process and keeps track of the built up transform
Public Members
-
TGeoNode *node = nullptr¶
-
bool onBranch = false¶
-
std::vector<SelectedNode> selectedNodes = {}¶
-
TGeoVolume *volume = nullptr¶
-
TGeoNode *node = nullptr¶
-
using ParseRange = std::pair<double, double>¶
-
struct TGeoParser¶