|
|
|||
File indexing completed on 2025-12-11 09:40:23
0001 // This file is part of the ACTS project. 0002 // 0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project 0004 // 0005 // This Source Code Form is subject to the terms of the Mozilla Public 0006 // License, v. 2.0. If a copy of the MPL was not distributed with this 0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/. 0008 0009 #pragma once 0010 0011 #include "Acts/Detector/ProtoDetector.hpp" 0012 #include "ActsPlugins/Json/UtilitiesJsonConverter.hpp" 0013 0014 #include <nlohmann/json.hpp> 0015 0016 // Custom Json encoder/decoders. Naming is mandated by nlohmann::json and thus 0017 // can not match our naming guidelines. 0018 0019 namespace Acts { 0020 struct ProtoDetector; 0021 struct ProtoVolume; 0022 0023 /// Convert ProtoVolume to JSON 0024 /// @param j Destination JSON object 0025 /// @param pv Source ProtoVolume to convert 0026 void to_json(nlohmann::json& j, const ProtoVolume& pv); 0027 0028 /// Convert JSON to ProtoVolume 0029 /// @param j Source JSON object 0030 /// @param pv Destination ProtoVolume to populate 0031 void from_json(const nlohmann::json& j, ProtoVolume& pv); 0032 0033 /// Convert ProtoDetector to JSON 0034 /// @param j Destination JSON object 0035 /// @param pd Source ProtoDetector to convert 0036 void to_json(nlohmann::json& j, const ProtoDetector& pd); 0037 0038 /// Convert JSON to ProtoDetector 0039 /// @param j Source JSON object 0040 /// @param pd Destination ProtoDetector to populate 0041 void from_json(const nlohmann::json& j, ProtoDetector& pd); 0042 0043 } // namespace Acts
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|