![]() |
|
|||
File indexing completed on 2025-09-16 08:52:18
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/model/KleinNishinaModel.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "celeritas/em/data/KleinNishinaData.hh" 0010 #include "celeritas/phys/Model.hh" 0011 #include "celeritas/phys/ParticleParams.hh" 0012 0013 namespace celeritas 0014 { 0015 //---------------------------------------------------------------------------// 0016 /*! 0017 * Set up and launch the Klein-Nishina model interaction. 0018 */ 0019 class KleinNishinaModel final : public Model, public StaticConcreteAction 0020 { 0021 public: 0022 // Construct from model ID and other necessary data 0023 KleinNishinaModel(ActionId id, ParticleParams const& particles); 0024 0025 // Particle types and energy ranges that this model applies to 0026 SetApplicability applicability() const final; 0027 0028 // Get the microscopic cross sections for the given particle and material 0029 MicroXsBuilders micro_xs(Applicability) const final; 0030 0031 //! Apply the interaction kernel to host data 0032 void step(CoreParams const&, CoreStateHost&) const final; 0033 0034 // Apply the interaction kernel to device data 0035 void step(CoreParams const&, CoreStateDevice&) const final; 0036 0037 //!@{ 0038 //! Access model data 0039 KleinNishinaData const& host_ref() const { return data_; } 0040 KleinNishinaData const& device_ref() const { return data_; } 0041 //!@} 0042 0043 private: 0044 KleinNishinaData data_; 0045 }; 0046 0047 //---------------------------------------------------------------------------// 0048 } // 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 |
![]() ![]() |