LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
geo::CollectPathsByName Struct Reference

Public Member Functions

 CollectPathsByName (std::set< std::string > const &names)
 
void operator() (ROOTGeoNodeForwardIterator const &iter)
 If the name of the node matches, records the node full path. More...
 

Public Attributes

std::vector< std::vector< TGeoNode const * > > paths
 

Protected Attributes

NodeNameMatcherClass matcher
 

Detailed Description

Definition at line 621 of file GeometryCore.cxx.

Constructor & Destructor Documentation

geo::CollectPathsByName::CollectPathsByName ( std::set< std::string > const &  names)
inline

Definition at line 624 of file GeometryCore.cxx.

624 : matcher(names) {}
NodeNameMatcherClass matcher

Member Function Documentation

void geo::CollectPathsByName::operator() ( ROOTGeoNodeForwardIterator const &  iter)
inline

If the name of the node matches, records the node full path.

Definition at line 627 of file GeometryCore.cxx.

References geo::ROOTGeoNodeForwardIterator::get_path().

628  {
629  if (matcher(**iter)) paths.push_back(iter.get_path());
630  }
std::vector< std::vector< TGeoNode const * > > paths
NodeNameMatcherClass matcher

Member Data Documentation

NodeNameMatcherClass geo::CollectPathsByName::matcher
protected

Definition at line 633 of file GeometryCore.cxx.

std::vector<std::vector<TGeoNode const*> > geo::CollectPathsByName::paths

Definition at line 622 of file GeometryCore.cxx.

Referenced by geo::GeometryCore::FindAllVolumePaths().


The documentation for this struct was generated from the following file: