Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:27:42

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2021 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 http://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/Geometry/TrackingVolume.hpp"
0012 #include "Acts/Material/IVolumeMaterial.hpp"
0013 #include "Acts/Plugins/Json/ActsJson.hpp"
0014 
0015 #include <memory>
0016 #include <string>
0017 #include <utility>
0018 #include <vector>
0019 
0020 #include <nlohmann/json.hpp>
0021 
0022 // Custom Json encoder/decoders. Naming is mandated by nlohmann::json and thus
0023 // can not match our naming guidelines.
0024 namespace Acts {
0025 class IVolumeMaterial;
0026 class TrackingVolume;
0027 
0028 /// Conversion of a pair of tracking volume and material used for the material
0029 /// mapping
0030 void to_json(
0031     nlohmann::json& j,
0032     const std::pair<const Acts::TrackingVolume*,
0033                     std::shared_ptr<const Acts::IVolumeMaterial>>& volume);
0034 
0035 /// Conversion of a tracking volume
0036 void to_json(nlohmann::json& j, const Acts::TrackingVolume& volume);
0037 
0038 }  // namespace Acts