Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-06 10:05:23

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/ImportPhysicsTable.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <vector>
0010 
0011 #include "celeritas/inp/Grid.hh"
0012 
0013 #include "ImportUnits.hh"
0014 
0015 namespace celeritas
0016 {
0017 //---------------------------------------------------------------------------//
0018 /*!
0019  * Imported physics table. Each table stores physics vectors for all materials.
0020  */
0021 struct ImportPhysicsTable
0022 {
0023     ImportUnits x_units{ImportUnits::unitless};
0024     ImportUnits y_units{ImportUnits::unitless};
0025     std::vector<inp::UniformGrid> grids;
0026 
0027     explicit operator bool() const { return !grids.empty(); }
0028 };
0029 
0030 //---------------------------------------------------------------------------//
0031 }  // namespace celeritas