Public Member Functions | Public Attributes | Protected Attributes | List of all members
gar::geo::CollectNodesByName Struct Reference

Public Member Functions

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

Public Attributes

std::vector< TGeoNode const * > nodes
 

Protected Attributes

NodeNameMatcherClass matcher
 

Detailed Description

Definition at line 250 of file GeometryCore.cxx.

Constructor & Destructor Documentation

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

Definition at line 253 of file GeometryCore.cxx.

253 : matcher(names) {}
NodeNameMatcherClass matcher

Member Function Documentation

void gar::geo::CollectNodesByName::operator() ( TGeoNode const &  node)
inline

If the name of the node matches, records the end node.

Definition at line 256 of file GeometryCore.cxx.

257  { if (matcher(node)) nodes.push_back(&node); }
std::vector< TGeoNode const * > nodes
NodeNameMatcherClass matcher
void gar::geo::CollectNodesByName::operator() ( ROOTGeoNodeForwardIterator const &  iter)
inline

Definition at line 259 of file GeometryCore.cxx.

260  { operator() (**iter); }
void operator()(TGeoNode const &node)
If the name of the node matches, records the end node.

Member Data Documentation

NodeNameMatcherClass gar::geo::CollectNodesByName::matcher
protected

Definition at line 263 of file GeometryCore.cxx.

std::vector<TGeoNode const*> gar::geo::CollectNodesByName::nodes

Definition at line 251 of file GeometryCore.cxx.


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