Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::GeoVolumeFinder Class Reference

Find a volume ID by searching for a label. More...

#include <GeoVolumeFinder.hh>

Public Types

Type aliases
using VolumeMap = GeoParamsInterface::VolumeMap
 

Public Member Functions

 GeoVolumeFinder (GeoParamsInterface const &geo)
 Construct from geometry volume names.
 
VolumeId operator() (Label const &label) const noexcept
 Perform the search.
 

Detailed Description

Find a volume ID by searching for a label.

This generally should be a fallback for looking directly from a Geant4 pointer. It will first do an exact match for the label, then do a fuzzier search. It emits warnings for inexact matches and returns a null VolumeId if not found.


The documentation for this class was generated from the following files: