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
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 <
Acts/Utilities/Logger.hpp
>
12
#include <fstream>
13
#include <iostream>
14
#include <mutex>
15
16
#include "
ACTFW/Framework/ProcessCode.hpp
"
17
#include "
ACTFW/Plugins/Obj/ObjSurfaceWriter.hpp
"
18
19
namespace
Acts {
20
class
TrackingVolume;
21
class
TrackingGeometry
;
22
}
// namespace Acts
23
24
namespace
FW {
25
namespace
Obj {
26
31
class
ObjTrackingGeometryWriter
{
32
public
:
33
// @class Config
34
//
35
// The nested config class
36
class
Config
{
37
public
:
39
std::shared_ptr<const Acts::Logger>
logger
;
41
std::string
name
=
""
;
43
std::vector<std::shared_ptr<ObjSurfaceWriter>>
surfaceWriters
;
44
std::string
filePrefix
=
""
;
45
std::string
sensitiveGroupPrefix
=
""
;
46
std::string
layerPrefix
=
""
;
47
48
Config
(
const
std::string& lname =
"ObjTrackingGeometryWriter"
,
49
Acts::Logging::Level
lvl =
Acts::Logging::INFO
)
50
:
logger
(Acts::
getDefaultLogger
(lname, lvl)),
51
name
(lname),
52
surfaceWriters
() {}
53
};
54
57
ObjTrackingGeometryWriter
(
const
Config
& cfg);
58
61
std::string
name
()
const
;
62
67
FW::ProcessCode
write
(
const
AlgorithmContext
&
context
,
68
const
Acts::TrackingGeometry
&
tGeometry
);
69
70
private
:
71
Config
m_cfg
;
72
76
void
write
(
const
AlgorithmContext
&
context
,
77
const
Acts::TrackingVolume
& tVolume);
78
80
const
Acts::Logger
&
logger
()
const
{
return
*
m_cfg
.
logger
; }
81
};
82
83
}
// namespace Obj
84
}
// namespace FW
acts
blob
master
Examples
Io
Obj
include
ACTFW
Plugins
Obj
ObjTrackingGeometryWriter.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:24
using
1.8.2 with
ECCE GitHub integration