Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-16 08:52:19

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/process/MuBremsstrahlungProcess.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <memory>
0010 
0011 #include "celeritas/phys/Applicability.hh"
0012 #include "celeritas/phys/AtomicNumber.hh"
0013 #include "celeritas/phys/ImportedProcessAdapter.hh"
0014 #include "celeritas/phys/ParticleParams.hh"
0015 #include "celeritas/phys/Process.hh"
0016 
0017 namespace celeritas
0018 {
0019 //---------------------------------------------------------------------------//
0020 /*!
0021  * Bremsstrahlung process for muons.
0022  */
0023 class MuBremsstrahlungProcess : public Process
0024 {
0025   public:
0026     //!@{
0027     //! \name Type aliases
0028     using SPConstParticles = std::shared_ptr<ParticleParams const>;
0029     using SPConstImported = std::shared_ptr<ImportedProcesses const>;
0030     //!@}
0031 
0032   public:
0033     // Construct from Bremsstrahlung data
0034     MuBremsstrahlungProcess(SPConstParticles particles,
0035                             SPConstImported process_data);
0036 
0037     // Construct the models associated with this process
0038     VecModel build_models(ActionIdIter start_id) const final;
0039 
0040     // Get the interaction cross sections for the given energy range
0041     StepLimitBuilders step_limits(Applicability range) const final;
0042 
0043     //! Whether the integral method can be used to sample interaction length
0044     bool supports_integral_xs() const final { return true; }
0045 
0046     //! Whether the process applies when the particle is stopped
0047     bool applies_at_rest() const final { return imported_.applies_at_rest(); }
0048 
0049     // Name of the process
0050     std::string_view label() const final;
0051 
0052   private:
0053     SPConstParticles particles_;
0054     ImportedProcessAdapter imported_;
0055 };
0056 
0057 //---------------------------------------------------------------------------//
0058 }  // namespace celeritas