Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-16 08:52:21

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/global/DebugIO.json.hh
0006 //! \brief Write *on-host* track views to JSON for debugging.
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <nlohmann/json.hpp>
0011 
0012 #include "celeritas/geo/GeoFwd.hh"
0013 
0014 namespace celeritas
0015 {
0016 //---------------------------------------------------------------------------//
0017 // Forward declarations
0018 class CoreParams;
0019 class CoreTrackView;
0020 class ParticleTrackView;
0021 class SimTrackView;
0022 
0023 //---------------------------------------------------------------------------//
0024 void to_json(nlohmann::json& j, CoreTrackView const&);
0025 
0026 //---------------------------------------------------------------------------//
0027 void to_json(nlohmann::json& j, GeoTrackView const&);
0028 
0029 //---------------------------------------------------------------------------//
0030 void to_json(nlohmann::json& j, ParticleTrackView const&);
0031 
0032 //---------------------------------------------------------------------------//
0033 void to_json(nlohmann::json& j, SimTrackView const&);
0034 
0035 //---------------------------------------------------------------------------//
0036 }  // namespace celeritas