Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-15 08:54:40

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/MuBremsstrahlungModel.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <memory>
0010 
0011 #include "celeritas/em/data/MuBremsstrahlungData.hh"
0012 #include "celeritas/phys/ImportedModelAdapter.hh"
0013 #include "celeritas/phys/ImportedProcessAdapter.hh"
0014 #include "celeritas/phys/Model.hh"
0015 #include "celeritas/phys/ParticleParams.hh"
0016 
0017 namespace celeritas
0018 {
0019 //---------------------------------------------------------------------------//
0020 /*!
0021  * Set up and launch the Muon Bremsstrahlung model interaction.
0022  */
0023 class MuBremsstrahlungModel final : public Model, public StaticConcreteAction
0024 {
0025   public:
0026     //!@{
0027     //! \name Type aliases
0028     using SPConstImported = std::shared_ptr<ImportedProcesses const>;
0029     //!@}
0030 
0031   public:
0032     // Construct from model ID and other necessary data
0033     MuBremsstrahlungModel(ActionId id,
0034                           ParticleParams const& particles,
0035                           SPConstImported data);
0036 
0037     // Particle types and energy ranges that this model applies to
0038     SetApplicability applicability() const final;
0039 
0040     // Get the microscopic cross sections for the given particle and material
0041     MicroXsBuilders micro_xs(Applicability) const final;
0042 
0043     // Apply the interaction kernel on host
0044     void step(CoreParams const&, CoreStateHost&) const final;
0045 
0046     // Apply the interaction kernel on device
0047     void step(CoreParams const&, CoreStateDevice&) const final;
0048 
0049     //!@{
0050     //! Access model data
0051     MuBremsstrahlungData const& host_ref() const { return data_; }
0052     MuBremsstrahlungData const& device_ref() const { return data_; }
0053     //!@}
0054 
0055   private:
0056     MuBremsstrahlungData data_;
0057     ImportedModelAdapter imported_;
0058 };
0059 
0060 //---------------------------------------------------------------------------//
0061 }  // namespace celeritas