ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PassiveLayerBuilder.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PassiveLayerBuilder.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2016-2018 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 
10 // PassiveLayerBuilder.h, Acts project
12 
13 #pragma once
14 
17 #include "Acts/Geometry/Layer.hpp"
20 
21 namespace Acts {
22 
28 
30  public:
34  struct Config {
36  std::string layerIdentification;
37 
38  std::vector<double> centralLayerRadii;
39  std::vector<double> centralLayerHalflengthZ;
40  std::vector<double> centralLayerThickness;
41  std::vector<std::shared_ptr<const ISurfaceMaterial>>
43 
44  // the layers at p/e side
45  std::vector<double> posnegLayerPositionZ;
46  std::vector<double> posnegLayerRmin;
47  std::vector<double> posnegLayerRmax;
48  std::vector<double> posnegLayerThickness;
49  std::vector<std::shared_ptr<const ISurfaceMaterial>>
51  };
52 
57  PassiveLayerBuilder(const Config& plConfig,
58  std::unique_ptr<const Logger> logger = getDefaultLogger(
59  "PassiveLayerBuilder", Logging::INFO));
60 
62  ~PassiveLayerBuilder() override = default;
63 
70  const LayerVector negativeLayers(const GeometryContext& gctx) const override;
71 
78  const LayerVector centralLayers(const GeometryContext& gctx) const override;
79 
86  const LayerVector positiveLayers(const GeometryContext& gctx) const override;
87 
90  const std::string& identification() const override {
92  }
93 
98  void setConfiguration(const Config& plConfig);
99 
101  Config getConfiguration() const;
102 
106  void setLogger(std::unique_ptr<const Logger> newLogger);
107 
108  protected:
110 
111  private:
119  const LayerVector endcapLayers(const GeometryContext& gctx, int side) const;
120 
121  const Logger& logger() const { return *m_logger; }
122 
124  std::unique_ptr<const Logger> m_logger;
125 };
126 
128  const {
129  return m_cfg;
130 }
131 
132 } // namespace Acts