LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 651 of file GeometryCore.cxx.

Constructor & Destructor Documentation

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

Definition at line 654 of file GeometryCore.cxx.

654 : 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 657 of file GeometryCore.cxx.

References geo::ROOTGeoNodeForwardIterator::get_path().

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

Member Data Documentation

NodeNameMatcherClass geo::CollectPathsByName::matcher
protected

Definition at line 661 of file GeometryCore.cxx.

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

Definition at line 652 of file GeometryCore.cxx.

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


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