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
EDM4hepMeasurementReader.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EDM4hepMeasurementReader.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
#pragma once
9
10
#include "
Acts/Utilities/Logger.hpp
"
11
#include "
ActsExamples/EventData/Cluster.hpp
"
12
#include "
ActsExamples/EventData/IndexSourceLink.hpp
"
13
#include "
ActsExamples/EventData/Measurement.hpp
"
14
#include "
ActsExamples/Framework/DataHandle.hpp
"
15
#include "
ActsExamples/Framework/IReader.hpp
"
16
17
#include <memory>
18
#include <string>
19
20
#include <podio/ROOTFrameReader.h>
21
22
namespace
ActsExamples {
23
34
class
EDM4hepMeasurementReader
final :
public
IReader
{
35
public
:
36
struct
Config
{
38
std::string
inputPath
;
40
std::string
outputMeasurements
;
42
std::string
outputMeasurementSimHitsMap
;
44
std::string
outputSourceLinks
;
46
std::string
outputClusters
;
47
};
48
53
EDM4hepMeasurementReader
(
const
Config
&
config
,
Acts::Logging::Level
level
);
54
55
std::string
name
() const final;
56
58
std::pair<
size_t
,
size_t
>
availableEvents
() const final;
59
61
ProcessCode
read
(const ActsExamples::
AlgorithmContext
& ctx) final;
62
64
const
Config
&
config
()
const
{
return
m_cfg
; }
65
66
private
:
67
Config
m_cfg
;
68
std::pair<size_t, size_t>
m_eventsRange
;
69
std::unique_ptr<const Acts::Logger>
m_logger
;
70
71
podio::ROOTFrameReader
m_reader
;
72
73
WriteDataHandle<MeasurementContainer>
m_outputMeasurements
{
74
this
,
"OutputMeasurements"
};
75
76
WriteDataHandle<IndexMultimap<Index>
>
m_outputMeasurementSimHitsMap
{
77
this
,
"OutputMeasurementSimHitsMap"
};
78
79
WriteDataHandle<GeometryIdMultiset<IndexSourceLink>
>
m_outputSourceLinks
{
80
this
,
"OutputSourceLinks"
};
81
82
WriteDataHandle<ClusterContainer>
m_outputClusters
{
this
,
"OutputClusters"
};
83
};
84
85
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
EDM4hep
include
ActsExamples
Io
EDM4hep
EDM4hepMeasurementReader.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration