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/PhotoelectricProcess.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <functional>
0011 #include <memory>
0012 
0013 #include "celeritas/mat/MaterialParams.hh"
0014 #include "celeritas/phys/Applicability.hh"
0015 #include "celeritas/phys/AtomicNumber.hh"
0016 #include "celeritas/phys/ImportedProcessAdapter.hh"
0017 #include "celeritas/phys/ParticleParams.hh"
0018 #include "celeritas/phys/Process.hh"
0019 
0020 namespace celeritas
0021 {
0022 struct ImportLivermorePE;
0023 
0024 //---------------------------------------------------------------------------//
0025 /*!
0026  * Photoelectric effect process for gammas.
0027  */
0028 class PhotoelectricProcess : public Process
0029 {
0030   public:
0031     //!@{
0032     //! \name Type aliases
0033     using SPConstParticles = std::shared_ptr<ParticleParams const>;
0034     using SPConstMaterials = std::shared_ptr<MaterialParams const>;
0035     using SPConstImported = std::shared_ptr<ImportedProcesses const>;
0036     using ReadData = std::function<ImportLivermorePE(AtomicNumber)>;
0037     //!@}
0038 
0039   public:
0040     // Construct from Livermore photoelectric data
0041     PhotoelectricProcess(SPConstParticles particles,
0042                          SPConstMaterials materials,
0043                          SPConstImported process_data,
0044                          ReadData load_data);
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 false; }
0054 
0055     // Name of the process
0056     std::string_view label() const final;
0057 
0058   private:
0059     SPConstParticles particles_;
0060     SPConstMaterials materials_;
0061     ImportedProcessAdapter imported_;
0062     ReadData load_pe_;
0063 };
0064 
0065 //---------------------------------------------------------------------------//
0066 }  // namespace celeritas