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
SvgTrackingGeometryWriter.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SvgTrackingGeometryWriter.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2022 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 "
ActsExamples/Framework/AlgorithmContext.hpp
"
12
#include "
ActsExamples/Framework/ProcessCode.hpp
"
13
#include "
ActsExamples/Io/Svg/SvgDefaults.hpp
"
14
#include <
Acts/Plugins/ActSVG/TrackingGeometrySvgConverter.hpp
>
15
#include <
Acts/Utilities/Logger.hpp
>
16
17
#include <fstream>
18
#include <iostream>
19
#include <mutex>
20
21
namespace
Acts {
22
class
TrackingVolume;
23
class
TrackingGeometry
;
24
}
// namespace Acts
25
26
namespace
ActsExamples {
27
32
class
SvgTrackingGeometryWriter
{
33
public
:
37
class
Config
{
38
public
:
39
Acts::Svg::TrackingGeometryConverter::Options
converterOptions
=
40
s_trackingGeometryOptions
;
41
42
std::string
outputDir
=
""
;
43
};
44
48
SvgTrackingGeometryWriter
(
const
Config
&
config
,
Acts::Logging::Level
level
);
49
52
std::string
name
()
const
;
53
58
ActsExamples::ProcessCode
write
(
const
AlgorithmContext
& context,
59
const
Acts::TrackingGeometry
&
tGeometry
);
60
61
private
:
62
std::unique_ptr<const Acts::Logger>
m_logger
;
63
64
Config
m_cfg
;
65
66
std::mutex
m_writeMutex
;
67
69
const
Acts::Logger
&
logger
()
const
{
return
*
m_logger
; }
70
};
71
72
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Svg
include
ActsExamples
Io
Svg
SvgTrackingGeometryWriter.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:39
using
1.8.2 with
sPHENIX GitHub integration