LArSoft  v10_04_05
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
 

Private Attributes

NodeNameMatcherClass matcher
 

Detailed Description

Definition at line 330 of file GeometryCore.cxx.

Constructor & Destructor Documentation

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

Definition at line 333 of file GeometryCore.cxx.

333 : 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 336 of file GeometryCore.cxx.

References geo::ROOTGeoNodeForwardIterator::get_path().

337  {
338  if (matcher(**iter)) paths.push_back(iter.get_path());
339  }
std::vector< std::vector< TGeoNode const * > > paths
NodeNameMatcherClass matcher

Member Data Documentation

NodeNameMatcherClass geo::CollectPathsByName::matcher
private

Definition at line 342 of file GeometryCore.cxx.

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

Definition at line 331 of file GeometryCore.cxx.

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


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