![]() |
|
|||
File indexing completed on 2025-09-17 08:53:43
0001 //------------------------------- -*- C++ -*- -------------------------------// 0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details 0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0004 //---------------------------------------------------------------------------// 0005 //! \file celeritas/optical/ImportedMaterials.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include <memory> 0010 #include <vector> 0011 0012 #include "celeritas/Types.hh" 0013 0014 namespace celeritas 0015 { 0016 struct ImportData; 0017 struct ImportOpticalRayleigh; 0018 struct ImportWavelengthShift; 0019 0020 namespace optical 0021 { 0022 //---------------------------------------------------------------------------// 0023 /*! 0024 * Imported material data for optical models. 0025 * 0026 * Stores material properties relevant for Rayleigh scattering and 0027 * wavelength shifting. 0028 */ 0029 class ImportedMaterials 0030 { 0031 public: 0032 // Construct from imported and shared data 0033 static std::shared_ptr<ImportedMaterials> from_import(ImportData const&); 0034 0035 // Construct directly from imported materials 0036 ImportedMaterials(std::vector<ImportOpticalRayleigh> rayleigh, 0037 std::vector<ImportWavelengthShift> wls); 0038 0039 // Get number of imported optical materials 0040 OptMatId::size_type num_materials() const; 0041 0042 // Get imported Rayleigh material parameters 0043 ImportOpticalRayleigh const& rayleigh(OptMatId mat) const; 0044 0045 // Get imported wavelength shifting material parameters 0046 ImportWavelengthShift const& wls(OptMatId mat) const; 0047 0048 private: 0049 std::vector<ImportOpticalRayleigh> rayleigh_; 0050 std::vector<ImportWavelengthShift> wls_; 0051 }; 0052 0053 //---------------------------------------------------------------------------// 0054 } // namespace optical 0055 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |