![]() |
|
|||
File indexing completed on 2025-09-17 08:53:35
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/MollerBhabhaModel.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "celeritas/em/data/MollerBhabhaData.hh" 0010 #include "celeritas/phys/Model.hh" 0011 0012 namespace celeritas 0013 { 0014 class ParticleParams; 0015 0016 //---------------------------------------------------------------------------// 0017 /*! 0018 * Set up and launch the Moller-Bhabha model interaction. 0019 */ 0020 class MollerBhabhaModel final : public Model, public StaticConcreteAction 0021 { 0022 public: 0023 // Construct from model ID and other necessary data 0024 MollerBhabhaModel(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 on host 0033 void step(CoreParams const&, CoreStateHost&) const final; 0034 0035 // Apply the interaction kernel on device 0036 void step(CoreParams const&, CoreStateDevice&) const final; 0037 0038 //!@{ 0039 //! Access model data 0040 MollerBhabhaData const& host_ref() const { return data_; } 0041 MollerBhabhaData const& device_ref() const { return data_; } 0042 //!@} 0043 0044 private: 0045 MollerBhabhaData 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 |
![]() ![]() |