EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CsvTrackingGeometryWriter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CsvTrackingGeometryWriter.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017-2018 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 
14 
15 #include <limits>
16 
17 namespace Acts {
18 class TrackingVolume;
19 }
20 
21 namespace ActsExamples {
22 
35  public:
36  struct Config {
38  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry;
40  std::string outputDir;
42  std::size_t outputPrecision = std::numeric_limits<float>::max_digits10;
44  bool writePerEvent = false;
45  };
46 
52 
53  std::string name() const final override;
54 
56  ProcessCode write(const AlgorithmContext& context) final override;
57 
59  ProcessCode endRun() final override;
60 
61  private:
63  const Acts::TrackingVolume* m_world;
64  std::unique_ptr<const Acts::Logger> m_logger;
65 
66  const Acts::Logger& logger() const { return *m_logger; }
67 };
68 
69 } // namespace ActsExamples