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
CsvSpacepointWriter.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CsvSpacepointWriter.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 "
Acts/Definitions/TrackParametrization.hpp
"
12
#include "
Acts/EventData/Measurement.hpp
"
13
#include "
Acts/Geometry/GeometryContext.hpp
"
14
#include "
Acts/Geometry/GeometryHierarchyMap.hpp
"
15
#include "
Acts/Geometry/GeometryIdentifier.hpp
"
16
#include "
ActsExamples/Digitization/DigitizationConfig.hpp
"
17
#include "
ActsExamples/EventData/Cluster.hpp
"
18
#include "
ActsExamples/EventData/Index.hpp
"
19
#include "
ActsExamples/EventData/Measurement.hpp
"
20
#include "
ActsExamples/EventData/SimHit.hpp
"
21
#include "
ActsExamples/EventData/SimSpacePoint.hpp
"
22
#include "
ActsExamples/Framework/WriterT.hpp
"
23
24
#include <string>
25
26
namespace
ActsExamples {
27
38
class
CsvSpacepointWriter
final :
public
WriterT
<SimSpacePointContainer> {
39
public
:
40
struct
Config
{
42
std::string
inputSpacepoints
;
44
std::string
outputDir
;
46
size_t
outputPrecision
= std::numeric_limits<float>::max_digits10;
47
};
48
52
CsvSpacepointWriter
(
const
Config
&
config
,
Acts::Logging::Level
level
);
53
55
~CsvSpacepointWriter
()
override
;
56
58
ProcessCode
finalize
()
override
;
59
61
const
Config
&
config
()
const
{
return
m_cfg
; }
62
63
protected
:
69
ProcessCode
writeT
(
const
AlgorithmContext
& ctx,
70
const
SimSpacePointContainer
& spacepoints)
override
;
71
72
private
:
73
Config
m_cfg
;
74
};
75
76
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Csv
include
ActsExamples
Io
Csv
CsvSpacepointWriter.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration