LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 604 of file GeometryCore.cxx.

Constructor & Destructor Documentation

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

Definition at line 607 of file GeometryCore.cxx.

607 : matcher(names) {}
NodeNameMatcherClass matcher

Member Function Documentation

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

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

Definition at line 610 of file GeometryCore.cxx.

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

Definition at line 615 of file GeometryCore.cxx.

References operator()().

Referenced by operator()().

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

Member Data Documentation

NodeNameMatcherClass geo::CollectNodesByName::matcher
protected

Definition at line 618 of file GeometryCore.cxx.

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

Definition at line 605 of file GeometryCore.cxx.

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


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