EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BinnedSurfaceMaterial.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BinnedSurfaceMaterial.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
14 
15 namespace Acts {
16 
22 
24  public:
26  BinnedSurfaceMaterial() = delete;
27 
40  MaterialSlabVector fullProperties,
41  double splitFactor = 0.);
42 
54  BinnedSurfaceMaterial(const BinUtility& binUtility,
55  MaterialSlabMatrix fullProperties,
56  double splitFactor = 0.);
57 
62 
66  BinnedSurfaceMaterial(const BinnedSurfaceMaterial& bsm) = default;
67 
70 
73 
75  ~BinnedSurfaceMaterial() override = default;
76 
80  BinnedSurfaceMaterial& operator*=(double scale) final;
81 
83  const BinUtility& binUtility() const;
84 
86  const MaterialSlabMatrix& fullMaterial() const;
87 
89  const MaterialSlab& materialSlab(const Vector2D& lp) const final;
90 
92  const MaterialSlab& materialSlab(const Vector3D& gp) const final;
93 
95  const MaterialSlab& materialSlab(size_t bin0, size_t bin1) const final;
96 
98  std::ostream& toStream(std::ostream& sl) const final;
99 
100  private:
103 
106 };
107 
109  return (m_binUtility);
110 }
111 
113  return m_fullMaterial;
114 }
115 
117  size_t bin0, size_t bin1) const {
118  return m_fullMaterial[bin1][bin0];
119 }
120 } // namespace Acts