Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlanarModuleStepper.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PlanarModuleStepper.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 
15 
16 #include <memory>
17 #include <utility>
18 #include <vector>
19 
20 namespace Acts {
21 
22 class DigitizationModule;
23 struct DigitizationStep;
24 
30 
32  public:
36  PlanarModuleStepper(std::unique_ptr<const Logger> mlogger = getDefaultLogger(
37  "PlanarModuleStepper", Logging::INFO));
38 
40  ~PlanarModuleStepper() = default;
41 
50  std::vector<DigitizationStep> cellSteps(const GeometryContext& gctx,
51  const DigitizationModule& dmodule,
52  const Vector3& startPoint,
53  const Vector3& endPoint) const;
54 
63  std::vector<DigitizationStep> cellSteps(const GeometryContext& gctx,
64  const DigitizationModule& dmodule,
65  const Vector2& moduleIntersection,
66  const Vector3& trackDirection) const;
67 
71  void setLogger(std::unique_ptr<const Logger> logger) {
72  m_logger = std::move(logger);
73  }
74 
75  private:
77  const Logger& logger() const { return *m_logger; }
78 
80  std::unique_ptr<const Logger> m_logger;
81 };
82 
83 } // namespace Acts