Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlanarModuleCluster.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PlanarModuleCluster.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2016-2020 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 <array>
17 #include <cassert>
18 
19 namespace Acts {
20 
21 class PlanarModuleCluster : public Measurement<BoundIndices, 3> {
23 
24  static constexpr std::array<BoundIndices, 3> kIndices = {
26 
27  public:
38  PlanarModuleCluster(std::shared_ptr<const Surface> surface,
40  double loc0, double loc1, double t,
41  std::vector<DigitizationCell> dCells,
42  const DigitizationModule* dModule = nullptr)
43  : Base(std::move(sourceLink), kIndices,
44  Base::ParametersVector(loc0, loc1, t), cov),
45  m_surface(std::move(surface)),
46  m_digitizationCells(std::move(dCells)),
47  m_digitizationModule(dModule) {
49  }
50 
52  const Surface& referenceObject() const { return *m_surface; }
53 
57  const std::vector<DigitizationCell>& digitizationCells() const;
58 
63 
64  private:
65  std::shared_ptr<const Surface> m_surface;
66  std::vector<DigitizationCell> m_digitizationCells;
68 };
69 
70 inline const std::vector<DigitizationCell>&
72  return m_digitizationCells;
73 }
74 
76  const {
77  return m_digitizationModule;
78 }
79 
80 } // namespace Acts