ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DigitizationModule.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DigitizationModule.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>
14 
15 namespace Acts {
16 
17 class Surface;
18 using SurfacePtr = std::shared_ptr<const Surface>;
19 using SurfacePtrVector = std::vector<SurfacePtr>;
20 
47  public:
55  DigitizationModule(std::shared_ptr<const Segmentation> moduleSegmentation,
56  double halfThickness, int readoutDirection,
57  double lorentzAngle, double energyThreshold = 0.,
58  bool analogue = false);
59 
61  virtual ~DigitizationModule() = default;
62 
72  const DigitizationCell& entryCids,
73  const DigitizationCell& exitCids) const;
74 
76  const DigitizationCell cell(const Vector2D& position) const;
77 
79  double halfThickness() const;
80 
82  int readoutDirection() const;
83 
85  double lorentzAngle() const;
86 
88  double energyThreshold() const;
89 
91  bool analogue() const;
92 
94  const Segmentation& segmentation() const;
95 
103  const Vector3D& end) const;
104 
110  const DigitizationStep digitizationStep(const Vector3D& start,
111  const Vector3D& end) const;
112 
114  const SurfacePtrVector& boundarySurfaces() const;
115 
118 
121 
122  private:
136  std::shared_ptr<const Segmentation> m_segmentation;
143 };
144 
145 inline double DigitizationModule::halfThickness() const {
146  return m_halfThickness;
147 }
148 
150  return m_readoutDirection;
151 }
152 
153 inline double DigitizationModule::lorentzAngle() const {
154  return m_lorentzAngle;
155 }
156 
157 inline double DigitizationModule::energyThreshold() const {
158  return m_energyThreshold;
159 }
160 
161 inline bool DigitizationModule::analogue() const {
162  return m_analogue;
163 }
164 
166  return (*(m_segmentation.get()));
167 }
168 
170  return m_boundarySurfaces;
171 }
172 
174  const {
176 }
177 
179  const {
181 }
182 
184  const Vector3D& start, const Vector3D& end) const {
185  return m_segmentation->digitizationStep(start, end, m_halfThickness,
187 }
188 } // namespace Acts