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
13 
14 #include <memory>
15 
16 namespace Acts {
17 
18 class Surface;
19 using SurfacePtr = std::shared_ptr<const Surface>;
20 using SurfacePtrVector = std::vector<SurfacePtr>;
21 
48  public:
56  DigitizationModule(std::shared_ptr<const Segmentation> moduleSegmentation,
57  double halfThickness, int readoutDirection,
58  double lorentzAngle, double energyThreshold = 0.,
59  bool analogue = false);
60 
62  virtual ~DigitizationModule() = default;
63 
73  const DigitizationCell& entryCids,
74  const DigitizationCell& exitCids) const;
75 
77  const DigitizationCell cell(const Vector2D& position) const;
78 
80  double halfThickness() const;
81 
83  int readoutDirection() const;
84 
86  double lorentzAngle() const;
87 
89  double energyThreshold() const;
90 
92  bool analogue() const;
93 
95  const Segmentation& segmentation() const;
96 
104  const Vector3D& end) const;
105 
111  const DigitizationStep digitizationStep(const Vector3D& start,
112  const Vector3D& end) const;
113 
115  const SurfacePtrVector& boundarySurfaces() const;
116 
119 
122 
123  private:
137  std::shared_ptr<const Segmentation> m_segmentation;
144 };
145 
146 inline double DigitizationModule::halfThickness() const {
147  return m_halfThickness;
148 }
149 
151  return m_readoutDirection;
152 }
153 
154 inline double DigitizationModule::lorentzAngle() const {
155  return m_lorentzAngle;
156 }
157 
158 inline double DigitizationModule::energyThreshold() const {
159  return m_energyThreshold;
160 }
161 
162 inline bool DigitizationModule::analogue() const {
163  return m_analogue;
164 }
165 
167  return (*(m_segmentation.get()));
168 }
169 
171  return m_boundarySurfaces;
172 }
173 
175  const {
177 }
178 
180  const {
182 }
183 
185  const Vector3D& start, const Vector3D& end) const {
186  return m_segmentation->digitizationStep(start, end, m_halfThickness,
188 }
189 } // namespace Acts