Celeritas 0.7+28f01d9
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
celeritas::optical::ImportedModels Class Reference

A collection of imported optical models. More...

#include <ImportedModelAdapter.hh>

Public Types

Type aliases
using IMC = ImportModelClass
 
using ImportedModelId = OpaqueId< ImportOpticalModel >
 

Public Member Functions

 ImportedModels (std::vector< ImportOpticalModel > models)
 Construct directly from imported models.
 
ImportOpticalModel constmodel (ImportedModelId mid) const
 Get model associated with the given identifier.
 
ImportedModelId::size_type num_models () const
 Get number of imported models.
 
ImportedModelId builtin_model_id (IMC imc) const
 Get imported model ID for the given built-in model class.
 

Static Public Member Functions

static std::shared_ptr< ImportedModelsfrom_import (ImportData const &)
 Construct list of imported model from imported data.
 

Detailed Description

A collection of imported optical models.

Constructs a map of built-in optical model classes to their imported model IDs.

Todo:
This legacy adapter class manages the MFP data for all optical physics models. It will be deleted in favor of directly storing MFPs as part of the model class.

Member Function Documentation

◆ builtin_model_id()

auto celeritas::optical::ImportedModels::builtin_model_id ( IMC  imc) const

Get imported model ID for the given built-in model class.

Returns a null ID if the imported model data is not present.


The documentation for this class was generated from the following files: