Celeritas 0.6.0-rc.2.10+develop.de0a3a05
|
Configure Celeritas problems from input data. More...
Classes | |
struct | FrameworkLoaded |
Result from loaded standalone input to be used in front-end apps. More... | |
struct | ProblemLoaded |
Result from loaded standalone input to be used in front-end apps. More... | |
struct | StandaloneLoaded |
Result from loaded standalone input to be used in front-end apps. More... | |
Functions | |
std::vector< std::vector< Primary > > | events (inp::Events const &e, std::shared_ptr< ParticleParams const > const &particles) |
Load events from a file. | |
FrameworkLoaded | framework_input (inp::FrameworkInput &fi) |
Completely set up a Celeritas problem from a framework input. | |
void | import (inp::FileImport const &, inp::Problem &) |
Load from a file. | |
void | import (inp::GeantImport const &, inp::Problem &) |
Load from Geant4 in memory. | |
void | import (inp::GeantDataImport const &, inp::Problem &) |
Load from Geant4 data files. | |
void | import (inp::UpdateImport const &, inp::Problem &) |
Update from another file. | |
ProblemLoaded | problem (inp::Problem const &p, ImportData const &imported) |
Create "core params" from a problem definition and import data. | |
StandaloneLoaded | standalone_input (inp::StandaloneInput &si) |
Completely set up a Celeritas problem from a standalone input. | |
void | system (inp::System const &sys) |
Set up low level system properties. | |
Configure Celeritas problems from input data.
This implementation detail is how celeritas::inp
data is used to construct all the main Celeritas objects.
ProblemLoaded celeritas::setup::problem | ( | inp::Problem const & | p, |
ImportData const & | imported | ||
) |
Create "core params" from a problem definition and import data.
Conceivably we could rename "core params" someday.
Consolidate import data into the problem definition.
Migrate the class "Input"/"Option" code into the class itself, using the inp
namespace definition.
void celeritas::setup::system | ( | inp::System const & | sys | ) |
Set up low level system properties.
For Celeritas runs, this should be set up before anything else.