Public Member Functions | Public Attributes | Protected Attributes | List of all members
gar::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 267 of file GeometryCore.cxx.

Constructor & Destructor Documentation

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

Definition at line 270 of file GeometryCore.cxx.

270 : matcher(names) {}
NodeNameMatcherClass matcher

Member Function Documentation

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

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

Definition at line 273 of file GeometryCore.cxx.

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

Member Data Documentation

NodeNameMatcherClass gar::geo::CollectPathsByName::matcher
protected

Definition at line 277 of file GeometryCore.cxx.

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

Definition at line 268 of file GeometryCore.cxx.


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