EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ObjTrackingGeometryWriter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ObjTrackingGeometryWriter.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 
15 
16 #include <fstream>
17 #include <iostream>
18 #include <mutex>
19 
20 namespace Acts {
21 class TrackingVolume;
22 class TrackingGeometry;
23 } // namespace Acts
24 
25 namespace ActsExamples {
26 
32  public:
33  // @class Config
34  //
35  // The nested config class
36  class Config {
37  public:
38  std::shared_ptr<const Acts::Logger> logger;
39 
40  std::string name = "";
41 
42  double outputScalor = 1.0;
43  size_t outputPrecision = 6;
44 
50 
51  Config(const std::string& lname = "ObjTrackingGeometryWriter",
53  : logger(Acts::getDefaultLogger(lname, lvl)), name(lname) {}
54  };
55 
59 
62  std::string name() const;
63 
70 
71  private:
73 
77  void write(const AlgorithmContext& context,
78  const Acts::TrackingVolume& tVolume);
79 
81  const Acts::Logger& logger() const { return *m_cfg.logger; }
82 };
83 
84 } // namespace ActsExamples