Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-29 09:13:54

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 geocel/VolumeParamsIO.json.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <iosfwd>
0010 #include <nlohmann/json.hpp>
0011 
0012 #include "VolumeParams.hh"
0013 
0014 namespace celeritas
0015 {
0016 //---------------------------------------------------------------------------//
0017 // Write volume hierarchy to JSON
0018 void to_json(nlohmann::json& j, VolumeParams const& vp);
0019 
0020 // Write volume hierarchy to a stream
0021 std::ostream& operator<<(std::ostream& os, VolumeParams const& vp);
0022 
0023 }  // namespace celeritas