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
EDM4hepMeasurementWriter.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EDM4hepMeasurementWriter.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/EventData/Cluster.hpp
"
12
#include "
ActsExamples/EventData/Measurement.hpp
"
13
#include "
ActsExamples/Framework/DataHandle.hpp
"
14
#include "
ActsExamples/Framework/WriterT.hpp
"
15
16
#include <string>
17
18
#include <edm4hep/TrackerHitCollection.h>
19
#include <edm4hep/TrackerHitPlaneCollection.h>
20
#include <podio/ROOTFrameWriter.h>
21
22
namespace
ActsExamples {
23
34
class
EDM4hepMeasurementWriter
final :
public
WriterT
<MeasurementContainer> {
35
public
:
36
struct
Config
{
38
std::string
inputMeasurements
;
40
std::string
inputClusters
;
42
std::string
outputPath
;
43
};
44
48
EDM4hepMeasurementWriter
(
const
Config
&
config
,
Acts::Logging::Level
level
);
49
50
ProcessCode
finalize
() final;
51
53
const
Config
&
config
()
const
{
return
m_cfg
; }
54
55
protected
:
61
ProcessCode
writeT
(
const
AlgorithmContext
& ctx,
62
const
MeasurementContainer
& measurements)
final
;
63
64
private
:
65
Config
m_cfg
;
66
67
podio::ROOTFrameWriter
m_writer
;
68
69
ReadDataHandle<ClusterContainer>
m_inputClusters
{
this
,
"InputClusters"
};
70
};
71
72
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
EDM4hep
include
ActsExamples
Io
EDM4hep
EDM4hepMeasurementWriter.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration