ECCE @ 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 
12 #include <fstream>
13 #include <iostream>
14 #include <mutex>
15 
18 
19 namespace Acts {
20 class TrackingVolume;
21 class TrackingGeometry;
22 } // namespace Acts
23 
24 namespace FW {
25 namespace Obj {
26 
32  public:
33  // @class Config
34  //
35  // The nested config class
36  class Config {
37  public:
39  std::shared_ptr<const Acts::Logger> logger;
41  std::string name = "";
43  std::vector<std::shared_ptr<ObjSurfaceWriter>> surfaceWriters;
44  std::string filePrefix = "";
45  std::string sensitiveGroupPrefix = "";
46  std::string layerPrefix = "";
47 
48  Config(const std::string& lname = "ObjTrackingGeometryWriter",
50  : logger(Acts::getDefaultLogger(lname, lvl)),
51  name(lname),
52  surfaceWriters() {}
53  };
54 
58 
61  std::string name() const;
62 
69 
70  private:
72 
76  void write(const AlgorithmContext& context,
77  const Acts::TrackingVolume& tVolume);
78 
80  const Acts::Logger& logger() const { return *m_cfg.logger; }
81 };
82 
83 } // namespace Obj
84 } // namespace FW