![]() |
|
|||
File indexing completed on 2025-09-17 08:53:36
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/em/params/FluctuationParams.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "corecel/Types.hh" 0010 #include "corecel/data/CollectionMirror.hh" 0011 #include "corecel/data/ParamsDataInterface.hh" 0012 #include "celeritas/em/data/FluctuationData.hh" 0013 0014 namespace celeritas 0015 { 0016 class MaterialParams; 0017 class ParticleParams; 0018 0019 //---------------------------------------------------------------------------// 0020 /*! 0021 * Manage data for stochastic energy loss of EM particles. 0022 */ 0023 class FluctuationParams final : public ParamsDataInterface<FluctuationData> 0024 { 0025 public: 0026 // Construct with particle and material data 0027 FluctuationParams(ParticleParams const& particles, 0028 MaterialParams const& materials); 0029 0030 //! Access physics properties on the host 0031 HostRef const& host_ref() const final { return data_.host_ref(); } 0032 0033 //! Access physics properties on the device 0034 DeviceRef const& device_ref() const final { return data_.device_ref(); } 0035 0036 private: 0037 CollectionMirror<FluctuationData> data_; 0038 }; 0039 0040 //---------------------------------------------------------------------------// 0041 } // 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 |
![]() ![]() |