Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackFitterPerformanceWriter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackFitterPerformanceWriter.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019-2020 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 
21 
22 #include <mutex>
23 #include <string>
24 
25 class TFile;
26 class TTree;
27 namespace ActsFatras {
28 class Barcode;
29 } // namespace ActsFatras
30 
31 namespace ActsExamples {
32 struct AlgorithmContext;
33 
43  : public WriterT<TrajectoriesContainer> {
44  public:
46 
47  struct Config {
55  std::string filePath = "performance_track_fitter.root";
60  };
61 
66 
68 
70  ProcessCode finalize() override;
71 
73  const Config& config() const { return m_cfg; }
74 
75  private:
77  const TrajectoriesContainer& trajectories) override;
78 
80 
83  this, "inputMeasurementParticlesMap"};
84 
86  std::mutex m_writeMutex;
87  TFile* m_outputFile{nullptr};
97 };
98 
99 } // namespace ActsExamples