|
using | PathIndex_t = std::vector< std::size_t > |
|
using | Path_t = std::vector< TGeoNode const * > |
|
|
static std::size_t | findDaughterIndex (TGeoNode const *pDaughter, TGeoNode const *pParent) |
|
|
TGeoNode const * | pRoot = nullptr |
|
Definition at line 989 of file GeometryCore.cxx.
geo::ROOTGeoPathBuilder::ROOTGeoPathBuilder |
( |
TGeoNode const * |
rootNode | ) |
|
|
inline |
static Path_t geo::ROOTGeoPathBuilder::emptyPath |
( |
| ) |
|
|
inlinestatic |
static PathIndex_t geo::ROOTGeoPathBuilder::emptyPathIndex |
( |
| ) |
|
|
inlinestatic |
static std::size_t geo::ROOTGeoPathBuilder::findDaughterIndex |
( |
TGeoNode const * |
pDaughter, |
|
|
TGeoNode const * |
pParent |
|
) |
| |
|
inlinestaticprivate |
Definition at line 1032 of file GeometryCore.cxx.
References n.
1035 std::size_t
n = pParent->GetNdaughters();
1036 for (std::size_t i = 0U; i <
n; ++i) {
1037 if (pParent->GetDaughter(i) == pDaughter)
return i;
1039 throw std::runtime_error(
"Node is not daughter of specified parent!");
Definition at line 996 of file GeometryCore.cxx.
Path_t toPath(PathIndex_t const &pathIndex) const
static Path_t geo::ROOTGeoPathBuilder::toPath |
( |
TGeoNode const * |
rootNode, |
|
|
PathIndex_t const & |
pathIndex |
|
) |
| |
|
inlinestatic |
Definition at line 1013 of file GeometryCore.cxx.
1016 path.push_back(rootNode);
1017 TGeoNode
const* pCurrentNode = path.back();
1018 for (std::size_t daughterIndex: pathIndex) {
1019 pCurrentNode = pCurrentNode->GetVolume()->GetNode(daughterIndex);
1020 path.push_back(pCurrentNode);
std::vector< TGeoNode const * > Path_t
Definition at line 999 of file GeometryCore.cxx.
References geo::vect::indices().
1001 assert(!path.empty());
1003 auto itParent = path.begin();
1004 auto itDaughter = itParent;
1005 while (++itDaughter != path.end()) {
1007 itParent = itDaughter;
std::vector< std::size_t > PathIndex_t
constexpr std::array< std::size_t, geo::vect::dimension< Vector >)> indices()
Returns a sequence of indices valid for a vector of the specified type.
static std::size_t findDaughterIndex(TGeoNode const *pDaughter, TGeoNode const *pParent)
TGeoNode const* geo::ROOTGeoPathBuilder::pRoot = nullptr |
|
private |
The documentation for this class was generated from the following file:
- /cvmfs/larsoft.opensciencegrid.org/products/larcorealg/v07_03_00/source/larcorealg/Geometry/GeometryCore.cxx