ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Segmentation.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Segmentation.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 
9 #pragma once
10 #include <memory>
11 #include <vector>
14 
15 namespace Acts {
16 
17 class SurfaceBounds;
18 class Surface;
19 class BinUtility;
20 using SurfacePtr = std::shared_ptr<const Surface>;
21 using SurfacePtrVector = std::vector<SurfacePtr>;
22 
36 class Segmentation {
37  public:
39  virtual ~Segmentation() = default;
40 
53  virtual void createSegmentationSurfaces(
54  SurfacePtrVector& boundarySurfaces,
55  SurfacePtrVector& segmentationSurfacesX,
56  SurfacePtrVector& segmentationSurfacesY, double halfThickness,
57  int readoutDirection, double lorentzAngle) const = 0;
58 
65  virtual DigitizationCell cell(const Vector3D& position) const = 0;
66 
73  virtual DigitizationCell cell(const Vector2D& position) const = 0;
74 
80  virtual Vector2D cellPosition(const DigitizationCell& cId) const = 0;
81 
93  const Vector3D& end,
94  double halfThickness,
95  int readoutDirection,
96  double lorentzAngle) const = 0;
97 
99  virtual const SurfaceBounds& moduleBounds() const = 0;
100 
102  virtual const BinUtility& binUtility() const = 0;
103 };
104 } // namespace Acts