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
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 <fstream>
17
#include <iostream>
18
#include <mutex>
19
20
namespace
Acts {
21
class
TrackingVolume;
22
class
TrackingGeometry
;
23
}
// namespace Acts
24
25
namespace
ActsExamples {
26
31
class
ObjTrackingGeometryWriter
{
32
public
:
33
// @class Config
34
//
35
// The nested config class
36
class
Config
{
37
public
:
38
std::shared_ptr<const Acts::Logger>
logger
;
39
40
std::string
name
=
""
;
41
42
double
outputScalor
= 1.0;
43
size_t
outputPrecision
= 6;
44
45
Acts::ViewConfig
containerView
=
Acts::ViewConfig
({220, 220, 220});
46
Acts::ViewConfig
volumeView
=
Acts::ViewConfig
({220, 220, 0});
47
Acts::ViewConfig
sensitiveView
=
Acts::ViewConfig
({0, 180, 240});
48
Acts::ViewConfig
passiveView
=
Acts::ViewConfig
({240, 280, 0});
49
Acts::ViewConfig
gridView
=
Acts::ViewConfig
({220, 0, 0});
50
51
Config
(
const
std::string& lname =
"ObjTrackingGeometryWriter"
,
52
Acts::Logging::Level
lvl =
Acts::Logging::INFO
)
53
:
logger
(Acts::
getDefaultLogger
(lname, lvl)),
name
(lname) {}
54
};
55
58
ObjTrackingGeometryWriter
(
const
Config
& cfg);
59
62
std::string
name
()
const
;
63
68
ActsExamples::ProcessCode
write
(
const
AlgorithmContext
& context,
69
const
Acts::TrackingGeometry
&
tGeometry
);
70
71
private
:
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_cfg
.
logger
; }
82
};
83
84
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Obj
include
ActsExamples
Plugins
Obj
ObjTrackingGeometryWriter.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:25
using
1.8.2 with
EIC GitHub integration