ECCE @ EIC 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 <iostream>
15 
16 namespace Acts {
17 
23 
24 struct ProtoLayer {
25  public:
26  double maxX;
27  double minX;
28 
29  double maxY;
30  double minY;
31 
32  double maxZ;
33  double minZ;
34 
35  double maxR;
36  double minR;
37 
38  double maxPhi;
39  double minPhi;
40 
41  std::pair<double, double> envX = {0, 0};
42  std::pair<double, double> envY = {0, 0};
43  std::pair<double, double> envZ = {0, 0};
44  std::pair<double, double> envR = {0, 0};
45  std::pair<double, double> envPhi = {0, 0};
46 
56  const std::vector<const Surface*>& surfaces);
57 
67  const std::vector<std::shared_ptr<const Surface>>& surfaces);
68 
69  // normal empty constructor
70  ProtoLayer() = default;
71 
72  std::ostream& toStream(std::ostream& sl) const;
73 
80  double radialDistance(const Vector3D& pos1, const Vector3D& pos2) const;
81 
82  private:
87  void measure(const GeometryContext& gctx,
88  const std::vector<const Surface*>& surfaces);
89 };
90 } // namespace Acts