![]() |
|
|||
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/CherenkovParams.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "corecel/Types.hh" 0010 #include "corecel/data/CollectionMirror.hh" 0011 #include "corecel/data/ParamsDataInterface.hh" 0012 0013 #include "CherenkovData.hh" 0014 0015 namespace celeritas 0016 { 0017 namespace optical 0018 { 0019 class MaterialParams; 0020 0021 //---------------------------------------------------------------------------// 0022 /*! 0023 * Build and manage Cherenkov data. 0024 */ 0025 class CherenkovParams final : public ParamsDataInterface<CherenkovData> 0026 { 0027 public: 0028 // Construct with optical property data 0029 explicit CherenkovParams(MaterialParams const& material); 0030 0031 //! Access physics material on the host 0032 HostRef const& host_ref() const final { return data_.host_ref(); } 0033 0034 //! Access physics material on the device 0035 DeviceRef const& device_ref() const final { return data_.device_ref(); } 0036 0037 private: 0038 CollectionMirror<CherenkovData> data_; 0039 }; 0040 0041 //---------------------------------------------------------------------------// 0042 } // namespace optical 0043 } // 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 |
![]() ![]() |