ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
master
CI
Core
doc
Examples
Algorithms
Detectors
Framework
Io
Csv
HepMC3
Json
include
ACTFW
Plugins
Json
JsonMaterialWriter.hpp
JsonSpacePointWriter.hpp
src
Obj
Performance
Root
Run
Scripts
Fatras
Plugins
Tests
thirdparty
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
JsonMaterialWriter.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file JsonMaterialWriter.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017-2019 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
10
// JsonMaterialWriter.h
12
13
#pragma once
14
15
#include <mutex>
16
17
#include "
ACTFW/Framework/ProcessCode.hpp
"
18
#include "
Acts/Geometry/GeometryID.hpp
"
19
#include "
Acts/Material/ISurfaceMaterial.hpp
"
20
#include "
Acts/Material/IVolumeMaterial.hpp
"
21
#include "
Acts/Plugins/Json/JsonGeometryConverter.hpp
"
22
#include "
Acts/Utilities/Definitions.hpp
"
23
#include "
Acts/Utilities/Logger.hpp
"
24
25
namespace
Acts {
26
27
class
TrackingGeometry
;
28
29
using
SurfaceMaterialMap
=
30
std::map<GeometryID, std::shared_ptr<const ISurfaceMaterial>>;
31
32
using
VolumeMaterialMap
=
33
std::map<GeometryID, std::shared_ptr<const IVolumeMaterial>>;
34
35
using
DetectorMaterialMaps
= std::pair<SurfaceMaterialMap, VolumeMaterialMap>;
36
}
// namespace Acts
37
38
namespace
FW {
39
40
namespace
Json
{
41
46
class
JsonMaterialWriter
{
47
public
:
51
JsonMaterialWriter
(
const
Acts::JsonGeometryConverter::Config
& cfg,
52
const
std::string& fileName);
53
55
~JsonMaterialWriter
();
56
60
void
write
(
const
Acts::DetectorMaterialMaps
& detMaterial);
61
65
void
write
(
const
Acts::TrackingGeometry
&
tGeometry
);
66
67
private
:
69
Acts::JsonGeometryConverter::Config
m_cfg
;
70
72
std::string
m_fileName
;
73
75
const
Acts::Logger
&
logger
()
const
{
return
*
m_cfg
.
logger
; }
76
};
77
78
}
// namespace Json
79
}
// namespace FW
acts
blob
master
Examples
Io
Json
include
ACTFW
Plugins
Json
JsonMaterialWriter.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:24
using
1.8.2 with
ECCE GitHub integration