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/RayleighProcess.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <memory>
0011 
0012 #include "celeritas/mat/MaterialParams.hh"
0013 #include "celeritas/phys/Applicability.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  * Rayleigh scattering process for gammas.
0023  */
0024 class RayleighProcess : public Process
0025 {
0026   public:
0027     //!@{
0028     //! \name Type aliases
0029     using SPConstParticles = std::shared_ptr<ParticleParams const>;
0030     using SPConstMaterials = std::shared_ptr<MaterialParams const>;
0031     using SPConstImported = std::shared_ptr<ImportedProcesses const>;
0032     //!@}
0033 
0034   public:
0035     // Construct from particle, material and imported data
0036     RayleighProcess(SPConstParticles particles,
0037                     SPConstMaterials materials,
0038                     SPConstImported process_data);
0039 
0040     // Construct the models associated with this process
0041     VecModel build_models(ActionIdIter start_id) const final;
0042 
0043     // Get the interaction cross sections for the given energy range
0044     StepLimitBuilders step_limits(Applicability range) const final;
0045 
0046     //! Whether to use the integral method to sample interaction length
0047     bool use_integral_xs() const final { return false; }
0048 
0049     // Name of the process
0050     std::string_view label() const final;
0051 
0052   private:
0053     SPConstParticles particles_;
0054     SPConstMaterials materials_;
0055     ImportedProcessAdapter imported_;
0056 };
0057 
0058 //---------------------------------------------------------------------------//
0059 }  // namespace celeritas