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/LivermorePEReader.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <string>
0011 
0012 #include "celeritas/phys/AtomicNumber.hh"
0013 
0014 #include "ImportLivermorePE.hh"
0015 
0016 namespace celeritas
0017 {
0018 //---------------------------------------------------------------------------//
0019 /*!
0020  * Load the Livermore EPICS2014 photoelectric data.
0021  */
0022 class LivermorePEReader
0023 {
0024   public:
0025     //!@{
0026     //! \name Type aliases
0027     using result_type = ImportLivermorePE;
0028     //!@}
0029 
0030   public:
0031     // Construct the reader and locate the data using the environment variable
0032     LivermorePEReader();
0033 
0034     // Construct the reader from the path to the data directory
0035     explicit LivermorePEReader(char const* 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 Livermore photoelectric data
0042     std::string path_;
0043 };
0044 
0045 //---------------------------------------------------------------------------//
0046 }  // namespace celeritas