Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-25 08:20:13

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 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 https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/Geometry/ISensorDesign.hpp"
0012 
0013 #include <memory>
0014 
0015 namespace Acts::detail {
0016 
0017 /// @brief Mixin base for placement elements that carry a sensor design.
0018 ///        Cast target for DigitizationAlgorithm; lives in detail so it
0019 ///        can be promoted or removed in follow-up work without ABI concerns.
0020 class ISensorDesignHolder {
0021  public:
0022   virtual ~ISensorDesignHolder() = default;
0023 
0024   /// @return pointer to the attached sensor design, or nullptr
0025   virtual const ISensorDesign* sensorDesign() const = 0;
0026 
0027   /// @brief Attach a sensor design to this element
0028   virtual void assignSensorDesign(
0029       const std::shared_ptr<const ISensorDesign>& design) = 0;
0030 };
0031 
0032 }  // namespace Acts::detail