|
|
|||
File indexing completed on 2026-01-07 10:01:42
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/gen/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 /*! 0024 * Build and manage Cherenkov data. 0025 */ 0026 class CherenkovParams final : public ParamsDataInterface<CherenkovData> 0027 { 0028 public: 0029 // Construct with optical property data 0030 explicit CherenkovParams(optical::MaterialParams const& material); 0031 0032 //! Access physics material on the host 0033 HostRef const& host_ref() const final { return data_.host_ref(); } 0034 0035 //! Access physics material on the device 0036 DeviceRef const& device_ref() const final { return data_.device_ref(); } 0037 0038 private: 0039 CollectionMirror<CherenkovData> data_; 0040 }; 0041 0042 //---------------------------------------------------------------------------// 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 |
|