Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2020-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/ComptonProcess.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <memory>
0011 
0012 #include "celeritas/phys/Applicability.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  * Compton scattering process for gammas.
0022  */
0023 class ComptonProcess : 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 imported data
0034     ComptonProcess(SPConstParticles particles, SPConstImported process_data);
0035 
0036     // Construct the models associated with this process
0037     VecModel build_models(ActionIdIter start_id) const final;
0038 
0039     // Get the interaction cross sections for the given energy range
0040     StepLimitBuilders step_limits(Applicability applic) const final;
0041 
0042     //! Whether to use the integral method to sample interaction length
0043     bool use_integral_xs() const final { return false; }
0044 
0045     // Name of the process
0046     std::string_view label() const final;
0047 
0048   private:
0049     SPConstParticles particles_;
0050     ImportedProcessAdapter imported_;
0051 };
0052 
0053 //---------------------------------------------------------------------------//
0054 }  // namespace celeritas