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/grid/ValueGridType.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "corecel/Types.hh"
0010 #include "corecel/cont/EnumArray.hh"
0011 
0012 namespace celeritas
0013 {
0014 //---------------------------------------------------------------------------//
0015 //! Hardcoded types of grid data
0016 enum class ValueGridType
0017 {
0018     macro_xs,  //!< Interaction cross sections
0019     energy_loss,  //!< Energy loss per unit length
0020     size_
0021 };
0022 
0023 template<class T>
0024 using ValueGridArray = EnumArray<ValueGridType, T>;
0025 
0026 // Get the string representation of a grid
0027 char const* to_cstring(ValueGridType grid);
0028 
0029 //---------------------------------------------------------------------------//
0030 }  // namespace celeritas