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
CsvPlanarClusterReader.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CsvPlanarClusterReader.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017-2019 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/Digitization/PlanarModuleCluster.hpp
"
11
#include "
Acts/Geometry/GeometryIdentifier.hpp
"
12
#include "
Acts/Geometry/TrackingGeometry.hpp
"
13
#include "
Acts/Utilities/Logger.hpp
"
14
#include "
ActsExamples/EventData/GeometryContainers.hpp
"
15
#include "
ActsExamples/EventData/Index.hpp
"
16
#include "
ActsExamples/EventData/SimHit.hpp
"
17
#include "
ActsExamples/Framework/DataHandle.hpp
"
18
#include "
ActsExamples/Framework/IReader.hpp
"
19
#include "
ActsExamples/Framework/ProcessCode.hpp
"
20
21
#include <cstddef>
22
#include <cstdint>
23
#include <memory>
24
#include <string>
25
#include <unordered_map>
26
#include <utility>
27
#include <vector>
28
29
namespace
ActsFatras {
30
class
Barcode;
31
}
// namespace ActsFatras
32
33
namespace
Acts {
34
class
Surface
;
35
class
PlanarModuleCluster;
36
class
TrackingGeometry
;
37
}
// namespace Acts
38
39
namespace
ActsExamples {
40
struct
AlgorithmContext;
41
56
class
CsvPlanarClusterReader
final :
public
IReader
{
57
public
:
58
struct
Config
{
60
std::string
inputDir
;
62
std::string
outputClusters
;
64
std::string
outputHitIds
;
66
std::string
outputMeasurementParticlesMap
;
68
std::string
outputSimHits
;
70
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
;
71
};
72
77
CsvPlanarClusterReader
(
const
Config
&
config
,
Acts::Logging::Level
level
);
78
79
std::string
name
()
const override
;
80
82
std::pair<size_t, size_t>
availableEvents
()
const override
;
83
85
ProcessCode
read
(
const
ActsExamples::AlgorithmContext
& ctx)
override
;
86
88
const
Config
&
config
()
const
{
return
m_cfg
; }
89
90
private
:
91
Config
m_cfg
;
92
std::pair<size_t, size_t>
m_eventsRange
;
93
std::unique_ptr<const Acts::Logger>
m_logger
;
94
95
WriteDataHandle<GeometryIdMultimap<Acts::PlanarModuleCluster>
>
96
m_outputClusters
{
this
,
"OutputClusters"
};
97
WriteDataHandle<IndexMultimap<ActsFatras::Barcode>
>
98
m_outputMeasurementParticlesMap
{
this
,
"OutputMeasurementParticlesMap"
};
99
WriteDataHandle<SimHitContainer>
m_outputSimHits
{
this
,
"OutputSimHits"
};
100
WriteDataHandle<std::vector<uint64_t>
>
m_outputHitIds
{
this
,
"OutputHitIds"
};
101
102
const
Acts::Logger
&
logger
()
const
{
return
*
m_logger
; }
103
};
104
105
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Csv
include
ActsExamples
Io
Csv
CsvPlanarClusterReader.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration