◆ ParamConfig()
| marley::KoningDelarocheOpticalModel::ParamConfig::ParamConfig |
( |
const JSON & | om_config | ) |
|
Definition at line 630 of file KoningDelarocheOpticalModel.cc.
632{
633
634 bool ok;
635 param_map_ = assign_from_json< std::map<std::string, double> >(
636 om_config, ok );
637
638 if ( !ok ) throw marley::Error( "Failed to parse optical model JSON"
639 " configuration" );
640}
◆ operator[]()
| const double & marley::KoningDelarocheOpticalModel::ParamConfig::operator[] |
( |
const std::string & | key | ) |
const |
Definition at line 642 of file KoningDelarocheOpticalModel.cc.
644{
645 auto iter = param_map_.find( key );
646 if ( iter != param_map_.end() ) return iter->second;
647 throw marley::Error( "Missing optical model parameter '" + key + "'" );
648}
◆ param_map_
| std::map< std::string, double > marley::KoningDelarocheOpticalModel::ParamConfig::param_map_ |
|
protected |
The documentation for this class was generated from the following files: