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
CsvMeasurementReader.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CsvMeasurementReader.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2021 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/Geometry/GeometryIdentifier.hpp
"
11
#include "
Acts/Geometry/TrackingGeometry.hpp
"
12
#include "
Acts/Utilities/Logger.hpp
"
13
#include "
ActsExamples/EventData/Cluster.hpp
"
14
#include "
ActsExamples/EventData/GeometryContainers.hpp
"
15
#include "
ActsExamples/EventData/Index.hpp
"
16
#include "
ActsExamples/EventData/IndexSourceLink.hpp
"
17
#include "
ActsExamples/EventData/Measurement.hpp
"
18
#include "
ActsExamples/EventData/SimHit.hpp
"
19
#include "
ActsExamples/EventData/SimParticle.hpp
"
20
#include "
ActsExamples/Framework/DataHandle.hpp
"
21
#include "
ActsExamples/Framework/IReader.hpp
"
22
#include "
ActsExamples/Framework/ProcessCode.hpp
"
23
24
#include <cstddef>
25
#include <memory>
26
#include <string>
27
#include <unordered_map>
28
#include <utility>
29
30
namespace
Acts {
31
class
Surface
;
32
}
33
34
namespace
ActsExamples {
35
class
IndexSourceLink;
36
struct
AlgorithmContext;
37
54
class
CsvMeasurementReader
final :
public
IReader
{
55
public
:
56
struct
Config
{
58
std::string
inputDir
;
60
std::string
outputMeasurements
;
62
std::string
outputMeasurementSimHitsMap
;
64
std::string
outputSourceLinks
;
66
std::string
outputClusters
;
67
69
std::string
inputSimHits
;
72
std::string
outputMeasurementParticlesMap
;
73
};
74
79
CsvMeasurementReader
(
const
Config
&
config
,
Acts::Logging::Level
level
);
80
81
std::string
name
()
const override
;
82
84
std::pair<size_t, size_t>
availableEvents
()
const override
;
85
87
ProcessCode
read
(
const
ActsExamples::AlgorithmContext
& ctx)
override
;
88
90
const
Config
&
config
()
const
{
return
m_cfg
; }
91
92
private
:
93
Config
m_cfg
;
94
std::pair<size_t, size_t>
m_eventsRange
;
95
std::unique_ptr<const Acts::Logger>
m_logger
;
96
97
const
Acts::Logger
&
logger
()
const
{
return
*
m_logger
; }
98
99
WriteDataHandle<MeasurementContainer>
m_outputMeasurements
{
100
this
,
"OutputMeasurements"
};
101
102
WriteDataHandle<IndexMultimap<Index>
>
m_outputMeasurementSimHitsMap
{
103
this
,
"OutputMeasurementSimHitsMap"
};
104
105
WriteDataHandle<GeometryIdMultiset<IndexSourceLink>
>
m_outputSourceLinks
{
106
this
,
"OutputSourceLinks"
};
107
108
WriteDataHandle<ClusterContainer>
m_outputClusters
{
this
,
"OutputClusters"
};
109
110
WriteDataHandle<IndexMultimap<ActsFatras::Barcode>
>
111
m_outputMeasurementParticlesMap
{
this
,
"OutputMeasurementParticlesMap"
};
112
113
ReadDataHandle<SimHitContainer>
m_inputHits
{
this
,
"InputHits"
};
114
};
115
116
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Csv
include
ActsExamples
Io
Csv
CsvMeasurementReader.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration