Analysis Software
Documentation for sPHENIX simulation 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
12 
13 #include <memory>
14 #include <vector>
15 
16 namespace Acts {
17 
18 class SurfaceBounds;
19 class Surface;
20 class BinUtility;
21 using SurfacePtr = std::shared_ptr<const Surface>;
22 using SurfacePtrVector = std::vector<SurfacePtr>;
23 
37 class Segmentation {
38  public:
40  virtual ~Segmentation() = default;
41 
54  virtual void createSegmentationSurfaces(
55  SurfacePtrVector& boundarySurfaces,
56  SurfacePtrVector& segmentationSurfacesX,
57  SurfacePtrVector& segmentationSurfacesY, double halfThickness,
58  int readoutDirection, double lorentzAngle) const = 0;
59 
66  virtual DigitizationCell cell(const Vector3& position) const = 0;
67 
74  virtual DigitizationCell cell(const Vector2& position) const = 0;
75 
81  virtual Vector2 cellPosition(const DigitizationCell& dCell) const = 0;
82 
94  const Vector3& end,
95  double halfThickness,
96  int readoutDirection,
97  double lorentzAngle) const = 0;
98 
100  virtual const SurfaceBounds& moduleBounds() const = 0;
101 
103  virtual const BinUtility& binUtility() const = 0;
104 };
105 } // namespace Acts