Celeritas 0.6.0-dev.116+3fbab5e0
Loading...
Searching...
No Matches
Functions
SetupOptions.cc File Reference
#include "SetupOptions.hh"
#include "corecel/io/Logger.hh"
#include "corecel/math/ArrayUtils.hh"
#include "geocel/GeantGeoUtils.hh"
#include "celeritas/field/RZMapFieldInput.hh"
#include "celeritas/field/UniformFieldData.hh"
#include "celeritas/inp/FrameworkInput.hh"
#include "celeritas/inp/Problem.hh"
#include "AlongStepFactory.hh"
#include "ExceptionConverter.hh"

Functions

std::unordered_set< G4LogicalVolume const * > celeritas::FindVolumes (std::unordered_set< std::string > names)
 Find volumes by name for SDSetupOptions.
 
inp::FrameworkInput celeritas::to_inp (SetupOptions const &so)
 Construct a framework input from setup options.
 

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"});

◆ to_inp()

inp::FrameworkInput celeritas::to_inp ( SetupOptions const &  so)

Construct a framework input from setup options.

Note
The setup options must stay in scope until problem initialization!