Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:31:19

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2024 UT-Battelle, LLC, and other Celeritas developers.
0003 // See the top-level COPYRIGHT file for details.
0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 //---------------------------------------------------------------------------//
0006 //! \file celeritas/em/process/MuBremsstrahlungProcess.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <memory>
0011 
0012 #include "celeritas/phys/Applicability.hh"
0013 #include "celeritas/phys/AtomicNumber.hh"
0014 #include "celeritas/phys/ImportedProcessAdapter.hh"
0015 #include "celeritas/phys/ParticleParams.hh"
0016 #include "celeritas/phys/Process.hh"
0017 
0018 namespace celeritas
0019 {
0020 //---------------------------------------------------------------------------//
0021 /*!
0022  * Bremsstrahlung process for muons.
0023  */
0024 class MuBremsstrahlungProcess : public Process
0025 {
0026   public:
0027     //!@{
0028     //! \name Type aliases
0029     using SPConstParticles = std::shared_ptr<ParticleParams const>;
0030     using SPConstImported = std::shared_ptr<ImportedProcesses const>;
0031     //!@}
0032 
0033     // Options for the Bremsstrahlung process
0034     struct Options
0035     {
0036         bool use_integral_xs{true};  //!> Use integral method for sampling
0037                                      //! discrete interaction length
0038     };
0039 
0040   public:
0041     // Construct from Bremsstrahlung data
0042     MuBremsstrahlungProcess(SPConstParticles particles,
0043                             SPConstImported process_data,
0044                             Options options);
0045 
0046     // Construct the models associated with this process
0047     VecModel build_models(ActionIdIter start_id) const final;
0048 
0049     // Get the interaction cross sections for the given energy range
0050     StepLimitBuilders step_limits(Applicability range) const final;
0051 
0052     //! Whether to use the integral method to sample interaction length
0053     bool use_integral_xs() const final { return options_.use_integral_xs; }
0054 
0055     // Name of the process
0056     std::string_view label() const final;
0057 
0058   private:
0059     SPConstParticles particles_;
0060     ImportedProcessAdapter imported_;
0061     Options options_;
0062 };
0063 
0064 //---------------------------------------------------------------------------//
0065 }  // namespace celeritas