Analysis Software
Documentation for sPHENIX simulation software
 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 
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 {
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 
71  podio::ROOTFrameReader m_reader;
72 
74  this, "OutputMeasurements"};
75 
77  this, "OutputMeasurementSimHitsMap"};
78 
80  this, "OutputSourceLinks"};
81 
83 };
84 
85 } // namespace ActsExamples