Celeritas  0.5.0-56+6b053cd
Classes | Functions
SetupOptions.hh File Reference
#include <functional>
#include <memory>
#include <string>
#include <unordered_set>
#include <vector>
#include "corecel/sys/Device.hh"
#include "celeritas/Types.hh"
#include "celeritas/global/ActionInterface.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  celeritas::SDSetupOptions
 Control options for initializing Celeritas SD callbacks. More...
 
struct  celeritas::SDSetupOptions::StepPoint
 
struct  celeritas::SetupOptions
 Control options for initializing Celeritas. More...
 

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