EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HomogeneousSurfaceMaterial.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HomogeneousSurfaceMaterial.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 
14 
15 namespace Acts {
16 
22  public:
24  HomogeneousSurfaceMaterial() = default;
25 
30  HomogeneousSurfaceMaterial(const MaterialSlab& full, double splitFactor = 1.);
31 
36 
41 
43  ~HomogeneousSurfaceMaterial() override = default;
44 
49  default;
50 
55  default;
56 
61  HomogeneousSurfaceMaterial& operator*=(double scale) final;
62 
66  bool operator==(const HomogeneousSurfaceMaterial& hsm) const;
67 
71  const MaterialSlab& materialSlab(const Vector2D& lp) const final;
72 
76  const MaterialSlab& materialSlab(const Vector3D& gp) const final;
77 
84  const MaterialSlab& materialSlab(size_t ib0, size_t ib1) const final;
85 
88 
91 
95  std::ostream& toStream(std::ostream& sl) const final;
96 
97  private:
100 };
101 
103  const Vector2D& /*lp*/) const {
104  return (m_fullMaterial);
105 }
106 
108  const Vector3D& /*gp*/) const {
109  return (m_fullMaterial);
110 }
111 
113  size_t /*ib0*/, size_t /*ib1*/) const {
114  return (m_fullMaterial);
115 }
116 
118  const HomogeneousSurfaceMaterial& hsm) const {
119  return (m_fullMaterial == hsm.m_fullMaterial);
120 }
121 
122 } // namespace Acts