Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:31:19

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2022-2024 UT-Battelle, LLC, and other Celeritas developers.
0003 // See the top-level COPYRIGHT file for details.
0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 //---------------------------------------------------------------------------//
0006 //! \file celeritas/em/params/FluctuationParams.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/Types.hh"
0011 #include "corecel/data/CollectionMirror.hh"
0012 #include "corecel/data/ParamsDataInterface.hh"
0013 #include "celeritas/em/data/FluctuationData.hh"
0014 
0015 namespace celeritas
0016 {
0017 class MaterialParams;
0018 class ParticleParams;
0019 
0020 //---------------------------------------------------------------------------//
0021 /*!
0022  * Manage data for stochastic energy loss of EM particles.
0023  */
0024 class FluctuationParams final : public ParamsDataInterface<FluctuationData>
0025 {
0026   public:
0027     // Construct with particle and material data
0028     FluctuationParams(ParticleParams const& particles,
0029                       MaterialParams const& materials);
0030 
0031     //! Access physics properties on the host
0032     HostRef const& host_ref() const final { return data_.host_ref(); }
0033 
0034     //! Access physics properties on the device
0035     DeviceRef const& device_ref() const final { return data_.device_ref(); }
0036 
0037   private:
0038     CollectionMirror<FluctuationData> data_;
0039 };
0040 
0041 //---------------------------------------------------------------------------//
0042 }  // namespace celeritas