Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD4hepDetectorWithOptions.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DD4hepDetectorWithOptions.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022 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 
10 
12 
13 #include <boost/program_options.hpp>
14 
15 namespace ActsExamples {
16 
18  boost::program_options::options_description& opt) const {
20 }
21 
23  const boost::program_options::variables_map& vm,
24  std::shared_ptr<const Acts::IMaterialDecorator> mdecorator)
25  -> std::pair<TrackingGeometryPtr, ContextDecorators> {
26  // read the detector config & dd4hep detector
27  auto dd4HepDetectorConfig =
28  ActsExamples::Options::readDD4hepConfig<po::variables_map>(vm);
29  return m_detector.finalize(dd4HepDetectorConfig, mdecorator);
30 }
31 
32 } // namespace ActsExamples