ATLAS Offline Software
Classes | Functions
GeoGetIds.h File Reference

Visitor to collect all IDs under a GeoModel node. More...

#include "GeoPrimitives/GeoPrimitives.h"
#include "GeoModelKernel/GeoNodeAction.h"
Include dependency graph for GeoGetIds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IGeoGetIdsAction
 Ensure that the extensions for the Vector3D are properly loaded. More...
 
class  GeoGetIds
 Visitor to traverse a GeoModel graph and make a callback for each identifier found. More...
 
class  GeoGetIdsAction< FUNCTION >
 Callback object calling a templated functional. More...
 

Functions

template<class FUNCTION >
void geoGetIds (FUNCTION f, const GeoGraphNode *node, int depthLimit=1)
 Template helper for running the visitor. More...
 

Detailed Description

Visitor to collect all IDs under a GeoModel node.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Jun, 2019

Definition in file GeoGetIds.h.

Function Documentation

◆ geoGetIds()

template<class FUNCTION >
void geoGetIds ( FUNCTION  f,
const GeoGraphNode *  node,
int  depthLimit = 1 
)

Template helper for running the visitor.

Example:

GeoFullPhysVol* pv = ...;
std::vector<int> ids;
geoGetIds ([&](int id) { ids.push_back (id); }, pv);

Definition at line 82 of file GeoGetIds.h.

83 {
85  GeoGetIds visitor (act, depthLimit);
86  node->exec (&visitor);
87 }
GeoGetIdsAction
Callback object calling a templated functional.
Definition: GeoGetIds.h:61
hist_file_dump.f
f
Definition: hist_file_dump.py:135
GeoGetIds
Visitor to traverse a GeoModel graph and make a callback for each identifier found.
Definition: GeoGetIds.h:41
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
geoGetIds
void geoGetIds(FUNCTION f, const GeoGraphNode *node, int depthLimit=1)
Template helper for running the visitor.
Definition: GeoGetIds.h:82
python.changerun.pv
pv
Definition: changerun.py:81
node
Definition: memory_hooks-stdcmalloc.h:74