Celeritas 0.6.0-dev.115+3b60a5fd
|
Construct Celeritas optical model builders from imported data. More...
#include <ModelImporter.hh>
Classes | |
struct | UserBuildInput |
Input argument for user-provided process construction. More... | |
Public Types | |
Type aliases | |
using | IMC = ImportModelClass |
using | SPConstImported = std::shared_ptr< ImportedModels const > |
using | SPConstMaterial = std::shared_ptr< MaterialParams const > |
using | SPConstImportedMaterial = std::shared_ptr< ImportedMaterials const > |
using | SPConstCoreMaterial = std::shared_ptr<::celeritas::MaterialParams const > |
User builder type aliases | |
using | ModelBuilder = Model::ModelBuilder |
using | UserBuildFunction = std::function< std::optional< ModelBuilder >(UserBuildInput const &)> |
using | UserBuildMap = std::unordered_map< IMC, UserBuildFunction > |
Public Member Functions | |
ModelImporter (ImportData const &data, SPConstMaterial material, SPConstCoreMaterial core_material, UserBuildMap user_build) | |
Construct importer from imported model data and shared material data. | |
ModelImporter (ImportData const &data, SPConstMaterial material, SPConstCoreMaterial core_material) | |
Construct without custom user builders. | |
std::optional< ModelBuilder > | operator() (IMC imc) const |
Create a ModelBuilder for the given model class. | |
Construct Celeritas optical model builders from imported data.
Create a ModelBuilder
for the given model class.
This may return a null model builder (with a warning) if the user specifically requests that the model be omitted.