![]() |
|
|||
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/MuBetheBlochModel.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "celeritas/em/data/MuHadIonizationData.hh" 0010 #include "celeritas/phys/Model.hh" 0011 0012 namespace celeritas 0013 { 0014 class ParticleParams; 0015 0016 //---------------------------------------------------------------------------// 0017 /*! 0018 * Set up and launch the Bethe-Bloch muon ionization model interaction. 0019 */ 0020 class MuBetheBlochModel final : public Model, public StaticConcreteAction 0021 { 0022 public: 0023 // Construct from model ID and other necessary data 0024 MuBetheBlochModel(ActionId, ParticleParams const&, SetApplicability); 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 MuHadIonizationData const& host_ref() const { return data_; } 0041 MuHadIonizationData const& device_ref() const { return data_; } 0042 //!@} 0043 0044 private: 0045 // Particle types and energy ranges that this model applies to 0046 SetApplicability applicability_; 0047 // Model data 0048 MuHadIonizationData data_; 0049 }; 0050 0051 //---------------------------------------------------------------------------// 0052 } // 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 |
![]() ![]() |