Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:53:36

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/MuPairProductionProcess.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <memory>
0010 
0011 #include "celeritas/io/ImportMuPairProductionTable.hh"
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  * Electron-positron pair production process for muons.
0023  */
0024 class MuPairProductionProcess : 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     using SPConstImportTable
0032         = std::shared_ptr<ImportMuPairProductionTable const>;
0033     //!@}
0034 
0035   public:
0036     // Construct from pair production data
0037     MuPairProductionProcess(SPConstParticles particles,
0038                             SPConstImported process_data,
0039                             SPConstImportTable table);
0040 
0041     // Construct the models associated with this process
0042     VecModel build_models(ActionIdIter start_id) const final;
0043 
0044     // Get the interaction cross sections for the given energy range
0045     StepLimitBuilders step_limits(Applicability range) const final;
0046 
0047     //! Whether the integral method can be used to sample interaction length
0048     bool supports_integral_xs() const final { return true; }
0049 
0050     //! Whether the process applies when the particle is stopped
0051     bool applies_at_rest() const final { return imported_.applies_at_rest(); }
0052 
0053     // Name of the process
0054     std::string_view label() const final;
0055 
0056   private:
0057     SPConstParticles particles_;
0058     ImportedProcessAdapter imported_;
0059     SPConstImportTable table_;
0060 };
0061 
0062 //---------------------------------------------------------------------------//
0063 }  // namespace celeritas