ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD4hepToG4Svc.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DD4hepToG4Svc.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017 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 <G4RunManager.hh>
14 #include <memory>
15 
17 
18 namespace FW {
19 namespace DD4hepG4 {
20 
27  public:
30  class Config {
31  public:
33  std::shared_ptr<const Acts::Logger> logger;
35  std::shared_ptr<DD4hep::DD4hepGeometryService> dd4hepService;
37  std::string name;
38 
39  Config(const std::string& lname = "MaterialWriter",
41  : logger(Acts::getDefaultLogger(lname, lvl)),
42  dd4hepService(nullptr),
43  name(lname) {}
44  };
45 
46  DD4hepToG4Svc(const Config& cfg);
48 
53 
54  private:
61 
63  const Acts::Logger& logger() const { return *m_cfg.logger; }
64 };
65 
66 } // namespace DD4hepG4
67 } // namespace FW