Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EDM4hepMeasurementWriter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EDM4hepMeasurementWriter.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 
15 
16 #include <string>
17 
18 #include <edm4hep/TrackerHitCollection.h>
19 #include <edm4hep/TrackerHitPlaneCollection.h>
20 #include <podio/ROOTFrameWriter.h>
21 
22 namespace ActsExamples {
23 
34 class EDM4hepMeasurementWriter final : public WriterT<MeasurementContainer> {
35  public:
36  struct Config {
43  };
44 
49 
50  ProcessCode finalize() final;
51 
53  const Config& config() const { return m_cfg; }
54 
55  protected:
62  const MeasurementContainer& measurements) final;
63 
64  private:
66 
67  podio::ROOTFrameWriter m_writer;
68 
70 };
71 
72 } // namespace ActsExamples