Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:10:52

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/GeometryContext.hpp"
0012 
0013 #include <memory>
0014 #include <string>
0015 #include <vector>
0016 
0017 namespace Acts {
0018 
0019 class Layer;
0020 using LayerPtr = std::shared_ptr<const Layer>;
0021 using LayerVector = std::vector<LayerPtr>;
0022 
0023 /// @class ILayerBuilder
0024 ///
0025 /// Interface class for ILayerBuilders in a typical
0026 /// | EC- | Central | EC+ |
0027 /// detector setup.
0028 ///
0029 class ILayerBuilder {
0030  public:
0031   /// Virtual destructor
0032   virtual ~ILayerBuilder() = default;
0033 
0034   /// LayerBuilder interface method
0035   ///
0036   /// @param gctx is the geometry context under
0037   /// which the geometry is built
0038   ///
0039   /// @return  the layers at negative side
0040   virtual const LayerVector negativeLayers(
0041       const GeometryContext& gctx) const = 0;
0042 
0043   /// LayerBuilder interface method
0044   ///
0045   /// @param gctx is the geometry context under
0046   /// which the geometry is built
0047   ///
0048   /// @return the layers at the central sector
0049   virtual const LayerVector centralLayers(
0050       const GeometryContext& gctx) const = 0;
0051 
0052   /// LayerBuilder interface method
0053   ///
0054   /// @param gctx is the geometry context under
0055   /// which the geometry is built
0056   ///
0057   /// @return  the layers at positive side
0058   virtual const LayerVector positiveLayers(
0059       const GeometryContext& gctx) const = 0;
0060 
0061   /// Name identification
0062   /// @return the string based identification
0063   virtual const std::string& identification() const = 0;
0064 };
0065 
0066 }  // namespace Acts