Celeritas  0.5.0-56+6b053cd
Functions
SetupOptions.cc File Reference
#include "SetupOptions.hh"
#include "geocel/GeantGeoUtils.hh"
#include "ExceptionConverter.hh"

Functions

std::unordered_set< G4LogicalVolume const * > celeritas::FindVolumes (std::unordered_set< std::string > names)
 Find volumes by name for SDSetupOptions. More...
 

Function Documentation

◆ FindVolumes()

std::unordered_set< G4LogicalVolume const * > celeritas::FindVolumes ( std::unordered_set< std::string >  names)

Find volumes by name for SDSetupOptions.

Example:

setup.sd.force_volumes = FindVolumes({"foo", "bar"});
std::unordered_set< G4LogicalVolume const * > FindVolumes(std::unordered_set< std::string > names)
Find volumes by name for SDSetupOptions.
Definition: SetupOptions.cc:26