EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
CI
Core
docs
Examples
Algorithms
Detectors
Framework
Io
Csv
HepMC3
Json
include
ActsExamples
Plugins
Json
JsonMaterialWriter.hpp
JsonSpacePointWriter.hpp
src
Obj
Performance
Root
Run
Scripts
Fatras
Plugins
Tests
thirdparty
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
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 "
Acts/Geometry/GeometryIdentifier.hpp
"
16
#include "
Acts/Material/ISurfaceMaterial.hpp
"
17
#include "
Acts/Material/IVolumeMaterial.hpp
"
18
#include "
Acts/Plugins/Json/JsonGeometryConverter.hpp
"
19
#include "
Acts/Utilities/Definitions.hpp
"
20
#include "
Acts/Utilities/Logger.hpp
"
21
#include "
ActsExamples/Framework/ProcessCode.hpp
"
22
23
#include <mutex>
24
25
namespace
Acts {
26
27
class
TrackingGeometry
;
28
29
using
SurfaceMaterialMap
=
30
std::map<GeometryIdentifier, std::shared_ptr<const ISurfaceMaterial>>;
31
32
using
VolumeMaterialMap
=
33
std::map<GeometryIdentifier, std::shared_ptr<const IVolumeMaterial>>;
34
35
using
DetectorMaterialMaps
= std::pair<SurfaceMaterialMap, VolumeMaterialMap>;
36
}
// namespace Acts
37
38
namespace
ActsExamples {
39
44
class
JsonMaterialWriter
{
45
public
:
49
JsonMaterialWriter
(
const
Acts::JsonGeometryConverter::Config
& cfg,
50
const
std::string& fileName);
51
53
~JsonMaterialWriter
();
54
58
void
write
(
const
Acts::DetectorMaterialMaps
& detMaterial);
59
63
void
write
(
const
Acts::TrackingGeometry
&
tGeometry
);
64
65
private
:
67
Acts::JsonGeometryConverter::Config
m_cfg
;
68
70
std::string
m_fileName
;
71
73
const
Acts::Logger
&
logger
()
const
{
return
*
m_cfg
.
logger
; }
74
};
75
76
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Json
include
ActsExamples
Plugins
Json
JsonMaterialWriter.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:25
using
1.8.2 with
EIC GitHub integration