File indexing completed on 2025-05-15 07:57:13
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "ActsExamples/Io/EDM4hep/EDM4hepInputConverter.hpp"
0010
0011 #include <podio/Frame.h>
0012
0013 namespace ActsExamples {
0014
0015 EDM4hepInputConverter::EDM4hepInputConverter(const std::string& name,
0016 Acts::Logging::Level level,
0017 const std::string& inputFrame)
0018 : IAlgorithm(name, level), m_inputFrame(this, "InputFrame") {
0019 if (inputFrame.empty()) {
0020 throw std::invalid_argument("Missing input frame");
0021 }
0022 m_inputFrame.initialize(inputFrame);
0023 }
0024
0025 ProcessCode EDM4hepInputConverter::execute(
0026 const ActsExamples::AlgorithmContext& ctx) const {
0027 const podio::Frame& frame = m_inputFrame(ctx);
0028 return convert(ctx, frame);
0029 }
0030 }