File TGeoParser.hpp¶
-
namespace Acts
Set the Geometry Context PLUGIN.
Set the Calibration Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedMaterialMap and to avoid code duplication.
Set the Mangetic Field Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedBFieldMap and to avoid code duplication.
Currently implemented for the two most common formats: rz and xyz.
-
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 vlume 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¶