Back to home page

EIC code displayed by LXR

 
 

    


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

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/io/AtomicRelaxationReader.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <string>
0011 
0012 #include "celeritas/phys/AtomicNumber.hh"
0013 
0014 #include "ImportAtomicRelaxation.hh"
0015 
0016 namespace celeritas
0017 {
0018 //---------------------------------------------------------------------------//
0019 /*!
0020  * Load the EADL atomic relaxation data.
0021  */
0022 class AtomicRelaxationReader
0023 {
0024   public:
0025     //!@{
0026     //! \name Type aliases
0027     using result_type = ImportAtomicRelaxation;
0028     //!@}
0029 
0030   public:
0031     // Construct the reader and locate the data using the environment variable
0032     AtomicRelaxationReader();
0033 
0034     // Construct the reader from the paths to the data directory
0035     explicit AtomicRelaxationReader(char const* fluor_path,
0036                                     char const* auger_path);
0037 
0038     // Read the data for the given element
0039     result_type operator()(AtomicNumber atomic_number) const;
0040 
0041   private:
0042     // Directory containing the EADL radiative transition data
0043     std::string fluor_path_;
0044     // Directory containing the EADL non-radiative transition data
0045     std::string auger_path_;
0046 };
0047 
0048 //---------------------------------------------------------------------------//
0049 }  // namespace celeritas