File indexing completed on 2025-05-15 07:57:13
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "ActsExamples/EventData/Track.hpp"
0012 #include "ActsExamples/Framework/DataHandle.hpp"
0013 #include "ActsExamples/Io/EDM4hep/EDM4hepInputConverter.hpp"
0014
0015 #include <string>
0016
0017 namespace podio {
0018 class Frame;
0019 }
0020
0021 namespace ActsExamples {
0022
0023
0024 class EDM4hepTrackInputConverter : public EDM4hepInputConverter {
0025 public:
0026 struct Config {
0027 std::string inputFrame;
0028
0029 std::string inputTracks = "ActsTracks";
0030
0031 std::string outputTracks;
0032
0033
0034 double Bz;
0035 };
0036
0037
0038
0039
0040 explicit EDM4hepTrackInputConverter(
0041 const Config& config, Acts::Logging::Level level = Acts::Logging::INFO);
0042
0043
0044 const Config& config() const { return m_cfg; }
0045
0046 ProcessCode convert(const AlgorithmContext& ctx,
0047 const podio::Frame& frame) const final;
0048
0049 private:
0050 Config m_cfg;
0051
0052 WriteDataHandle<ConstTrackContainer> m_outputTracks{this, "OutputTracks"};
0053 };
0054
0055 }