EIC 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 Contextual {
26 class AlignmentDecorator;
27 } // namespace Contextual
28 } // namespace ActsExamples
29 
30 namespace ActsExamples {
32  public:
33  using ContextDecorators =
34  std::vector<std::shared_ptr<ActsExamples::IContextDecorator>>;
35  using TrackingGeometryPtr = std::shared_ptr<const Acts::TrackingGeometry>;
36 
37  virtual ~IBaseDetector() = default;
38  virtual void addOptions(
39  boost::program_options::options_description& opt) const = 0;
40 
41  virtual std::pair<TrackingGeometryPtr, ContextDecorators> finalize(
42  const boost::program_options::variables_map& vm,
43  std::shared_ptr<const Acts::IMaterialDecorator> mdecorator) = 0;
44 };
45 } // namespace ActsExamples