Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IBaseDetector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file IBaseDetector.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 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 
13 #include <memory>
14 #include <utility>
15 #include <vector>
16 
17 namespace Acts {
18 class TrackingGeometry;
19 class IMaterialDecorator;
20 } // namespace Acts
21 
22 namespace ActsExamples {
23 class IContextDecorator;
24 } // namespace ActsExamples
25 
26 namespace ActsExamples {
28  public:
29  using ContextDecorators =
30  std::vector<std::shared_ptr<ActsExamples::IContextDecorator>>;
31  using TrackingGeometryPtr = std::shared_ptr<const Acts::TrackingGeometry>;
32 
33  virtual ~IBaseDetector() = default;
34  virtual void addOptions(
35  boost::program_options::options_description& opt) const = 0;
36 
37  virtual std::pair<TrackingGeometryPtr, ContextDecorators> finalize(
38  const boost::program_options::variables_map& vm,
39  std::shared_ptr<const Acts::IMaterialDecorator> mdecorator) = 0;
40 };
41 } // namespace ActsExamples