Back to home page

EIC code displayed by LXR

 
 

    


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

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