Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CsvTrackParameterReader.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CsvTrackParameterReader.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 
16 
17 #include <array>
18 #include <cstddef>
19 #include <memory>
20 #include <string>
21 #include <utility>
22 
23 namespace ActsExamples {
24 struct AlgorithmContext;
25 
35 class CsvTrackParameterReader final : public IReader {
36  public:
37  struct Config {
44 
46  std::array<double, 3> beamspot{};
47  };
48 
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:
68  std::pair<size_t, size_t> m_eventsRange;
69  std::unique_ptr<const Acts::Logger> m_logger;
70 
72  this, "OutputTrackParameters"};
73 
74  const Acts::Logger& logger() const { return *m_logger; }
75 };
76 
77 } // namespace ActsExamples