Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EDM4hepMultiTrajectoryWriter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EDM4hepMultiTrajectoryWriter.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 <string>
18 
19 #include <podio/ROOTFrameWriter.h>
20 
21 namespace ActsExamples {
22 
34 class EDM4hepMultiTrajectoryWriter : public WriterT<TrajectoriesContainer> {
35  public:
36  struct Config {
44  double Bz{};
48  };
49 
55 
56  ProcessCode finalize() final;
57 
59  const Config& config() const { return m_cfg; }
60 
61  protected:
65  ProcessCode writeT(const AlgorithmContext& context,
66  const TrajectoriesContainer& trajectories) final;
67 
68  private:
70 
71  podio::ROOTFrameWriter m_writer;
72 
74  m_inputMeasurementParticlesMap{this, "InputMeasurementParticlesMaps"};
75 };
76 
77 } // namespace ActsExamples