Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProtoLayer.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ProtoLayer.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017-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 
9 #pragma once
10 #include "Acts/Geometry/Extent.hpp"
14 
15 #include <iostream>
16 #include <memory>
17 #include <utility>
18 #include <vector>
19 
20 namespace Acts {
21 
27 
28 struct ProtoLayer {
29  public:
32 
35 
45  const std::vector<const Surface*>& surfaces);
46 
56  const std::vector<std::shared_ptr<const Surface>>& surfaces);
57 
58  ProtoLayer() = default;
59 
63  double min(BinningValue bval, bool addenv = true) const;
64 
65  // Get the parameters : max
68  double max(BinningValue bval, bool addenv = true) const;
69 
70  // Get the parameters : max
73  double medium(BinningValue bval, bool addenv = true) const;
74 
75  // Get the parameters : max
78  double range(BinningValue bval, bool addenv = true) const;
79 
82  std::ostream& toStream(std::ostream& sl) const;
83 
85  const std::vector<const Surface*>& surfaces() const;
86 
90  void add(const GeometryContext& gctx, const Surface& surface);
91 
92  private:
97  void measure(const GeometryContext& gctx,
98  const std::vector<const Surface*>& surfaces);
99 
101  std::vector<const Surface*> m_surfaces = {};
102 };
103 
104 inline const std::vector<const Surface*>& ProtoLayer::surfaces() const {
105  return m_surfaces;
106 }
107 
108 } // namespace Acts