Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
11
#include "
Acts/Geometry/TrackingVolume.hpp
"
12
#include "
Acts/Plugins/Json/ActsJson.hpp
"
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
27
using
TrackingVolumePointer
=
const
Acts::TrackingVolume
*;
28
using
TrackingVolumeAndMaterial
=
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
acts
blob
sPHENIX
Plugins
Json
include
Acts
Plugins
Json
VolumeJsonConverter.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:41
using
1.8.2 with
sPHENIX GitHub integration