Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:08

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2019 CERN for the benefit of the Acts project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "ActsExamples/Utilities/OptionsFwd.hpp"
0012 
0013 #include <memory>
0014 #include <utility>
0015 #include <vector>
0016 
0017 namespace Acts {
0018 class TrackingGeometry;
0019 class IMaterialDecorator;
0020 }  // namespace Acts
0021 
0022 namespace ActsExamples {
0023 class IContextDecorator;
0024 }  // namespace ActsExamples
0025 
0026 namespace ActsExamples {
0027 class IBaseDetector {
0028  public:
0029   using ContextDecorators =
0030       std::vector<std::shared_ptr<ActsExamples::IContextDecorator>>;
0031   using TrackingGeometryPtr = std::shared_ptr<const Acts::TrackingGeometry>;
0032 
0033   virtual ~IBaseDetector() = default;
0034   virtual void addOptions(
0035       boost::program_options::options_description& opt) const = 0;
0036 
0037   virtual std::pair<TrackingGeometryPtr, ContextDecorators> finalize(
0038       const boost::program_options::variables_map& vm,
0039       std::shared_ptr<const Acts::IMaterialDecorator> mdecorator) = 0;
0040 };
0041 }  // namespace ActsExamples