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