Analysis Software
Documentation for sPHENIX simulation software
 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 
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 {
67 
73  };
74 
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:
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 
100  this, "OutputMeasurements"};
101 
103  this, "OutputMeasurementSimHitsMap"};
104 
106  this, "OutputSourceLinks"};
107 
109 
111  m_outputMeasurementParticlesMap{this, "OutputMeasurementParticlesMap"};
112 
114 };
115 
116 } // namespace ActsExamples