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