Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-05-15 07:57:13

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
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 }  // namespace ActsExamples