All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
geo::NodeNameMatcherClass Struct Reference

Public Member Functions

 NodeNameMatcherClass (std::set< std::string > const &names)
 
bool operator() (TGeoNode const &node) const
 Returns whether the specified node matches a set of names. More...
 

Public Attributes

std::set< std::string > const * vol_names
 

Detailed Description

Definition at line 682 of file GeometryCore.cxx.

Constructor & Destructor Documentation

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

Definition at line 685 of file GeometryCore.cxx.

686  : vol_names(&names) {}
std::set< std::string > const * vol_names

Member Function Documentation

bool geo::NodeNameMatcherClass::operator() ( TGeoNode const &  node) const
inline

Returns whether the specified node matches a set of names.

Definition at line 689 of file GeometryCore.cxx.

690  {
691  if (!vol_names) return true;
692  return vol_names->find(node.GetVolume()->GetName()) != vol_names->end();
693  }
std::set< std::string > const * vol_names

Member Data Documentation

std::set<std::string> const* geo::NodeNameMatcherClass::vol_names

Definition at line 683 of file GeometryCore.cxx.


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