Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VolumeJsonConverter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file VolumeJsonConverter.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2021 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
13 
14 #include <memory>
15 #include <string>
16 #include <utility>
17 #include <vector>
18 
19 #include <nlohmann/json.hpp>
20 
21 // Custom Json encoder/decoders. Naming is mandated by nlohmann::json and thus
22 // can not match our naming guidelines.
23 namespace Acts {
24 class IVolumeMaterial;
25 class TrackingVolume;
26 
29  std::pair<const Acts::TrackingVolume*,
30  std::shared_ptr<const Acts::IVolumeMaterial>>;
31 
34 void to_json(nlohmann::json& j, const TrackingVolumeAndMaterial& volume);
35 
38 void to_json(nlohmann::json& j, const TrackingVolumePointer& volume);
39 
41 void to_json(nlohmann::json& j, const Acts::TrackingVolume& volume);
42 
43 } // namespace Acts