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
ObjTrackingGeometryWriter.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ObjTrackingGeometryWriter.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017-2018 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 <
Acts/Utilities/Logger.hpp
>
14
#include <
Acts/Visualization/ViewConfig.hpp
>
15
16
#include <cstddef>
17
#include <fstream>
18
#include <iostream>
19
#include <memory>
20
#include <mutex>
21
#include <string>
22
23
namespace
Acts {
24
class
TrackingVolume;
25
class
TrackingGeometry
;
26
}
// namespace Acts
27
28
namespace
ActsExamples {
29
struct
AlgorithmContext;
30
35
class
ObjTrackingGeometryWriter
{
36
public
:
37
// @class Config
38
//
39
// The nested config class
40
class
Config
{
41
public
:
42
double
outputScalor
= 1.0;
43
size_t
outputPrecision
= 6;
44
std::string
outputDir
=
"."
;
45
46
Acts::ViewConfig
containerView
=
Acts::ViewConfig
({220, 220, 220});
47
Acts::ViewConfig
volumeView
=
Acts::ViewConfig
({220, 220, 0});
48
Acts::ViewConfig
sensitiveView
=
Acts::ViewConfig
({0, 180, 240});
49
Acts::ViewConfig
passiveView
=
Acts::ViewConfig
({240, 280, 0});
50
Acts::ViewConfig
gridView
=
Acts::ViewConfig
({220, 0, 0});
51
};
52
56
ObjTrackingGeometryWriter
(
const
Config
&
config
,
Acts::Logging::Level
level
);
57
60
std::string
name
()
const
;
61
66
ActsExamples::ProcessCode
write
(
const
AlgorithmContext
& context,
67
const
Acts::TrackingGeometry
&
tGeometry
);
68
69
private
:
70
std::unique_ptr<const Acts::Logger>
m_logger
;
71
72
Config
m_cfg
;
73
77
void
write
(
const
AlgorithmContext
& context,
78
const
Acts::TrackingVolume
& tVolume);
79
81
const
Acts::Logger
&
logger
()
const
{
return
*
m_logger
; }
82
};
83
84
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Obj
include
ActsExamples
Plugins
Obj
ObjTrackingGeometryWriter.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration