ECCE @ 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  MaterialPropertiesVector fullProperties,
41  double splitFactor = 0.);
42 
54  BinnedSurfaceMaterial(const BinUtility& binUtility,
55  MaterialPropertiesMatrix 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 
87 
89  const MaterialProperties& materialProperties(const Vector2D& lp) const final;
90 
92  const MaterialProperties& materialProperties(const Vector3D& gp) const final;
93 
95  const MaterialProperties& materialProperties(size_t bin0,
96  size_t bin1) const final;
97 
99  std::ostream& toStream(std::ostream& sl) const final;
100 
101  private:
104 
107 };
108 
110  return (m_binUtility);
111 }
112 
114  const {
115  return m_fullMaterial;
116 }
117 
119  size_t bin0, size_t bin1) const {
120  return m_fullMaterial[bin1][bin0];
121 }
122 } // namespace Acts