Celeritas 0.6.0-dev.116+3fbab5e0
Loading...
Searching...
No Matches
Functions
ImportModel.cc File Reference
#include "ImportModel.hh"
#include "corecel/io/EnumStringMapper.hh"
#include "corecel/io/StringEnumMapper.hh"

Functions

char constceleritas::to_cstring (ImportModelClass value)
 Enumerator for the available physics models.
 
char constceleritas::to_geant_name (ImportModelClass value)
 Get the default Geant4 process name for an ImportProcessClass.
 
ImportModelClass celeritas::geant_name_to_import_model_class (std::string_view s)
 Convert a Geant4 process name to an IPC.
 

Function Documentation

◆ geant_name_to_import_model_class()

ImportModelClass celeritas::geant_name_to_import_model_class ( std::string_view  s)

Convert a Geant4 process name to an IPC.

This will throw a celeritas::RuntimeError if the string is not known to us.

◆ to_cstring()

char const * celeritas::to_cstring ( ImportModelClass  value)

Enumerator for the available physics models.

This enum was created to safely access the many imported physics tables.