Warning, file /include/ActsPlugins/Json/DetectorJsonConverter.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Geometry/GeometryContext.hpp"
0012 #include "ActsPlugins/Json/ActsJson.hpp"
0013 #include "ActsPlugins/Json/DetectorVolumeJsonConverter.hpp"
0014
0015
0016
0017 namespace Acts {
0018
0019 namespace Experimental {
0020 class Detector;
0021 }
0022
0023 namespace DetectorJsonConverter {
0024
0025 struct Options {
0026 DetectorVolumeJsonConverter::Options volumeOptions =
0027 DetectorVolumeJsonConverter::Options{};
0028 };
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 nlohmann::json toJson(const GeometryContext& gctx,
0039 const Experimental::Detector& detector,
0040 const Options& options = Options{});
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050 nlohmann::json toJsonDetray(const GeometryContext& gctx,
0051 const Experimental::Detector& detector,
0052 const Options& options = Options{});
0053
0054
0055
0056
0057
0058
0059
0060 std::shared_ptr<Experimental::Detector> fromJson(
0061 const GeometryContext& gctx, const nlohmann::json& jDetector);
0062
0063 }
0064 }