Analysis Software
Documentation for sPHENIX simulation 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 #include <cstddef>
16 #include <iosfwd>
17 
18 namespace Acts {
19 
25  public:
27  HomogeneousSurfaceMaterial() = default;
28 
34  HomogeneousSurfaceMaterial(const MaterialSlab& full, double splitFactor = 1.,
36 
41 
46 
48  ~HomogeneousSurfaceMaterial() override = default;
49 
54  default;
55 
60  default;
61 
66  HomogeneousSurfaceMaterial& operator*=(double scale) final;
67 
71  bool operator==(const HomogeneousSurfaceMaterial& hsm) const;
72 
76  const MaterialSlab& materialSlab(const Vector2& lp) const final;
77 
81  const MaterialSlab& materialSlab(const Vector3& gp) const final;
82 
86  const MaterialSlab& materialSlab(size_t bin0, size_t bin1) const final;
87 
90 
93 
97  std::ostream& toStream(std::ostream& sl) const final;
98 
99  private:
102 };
103 
105  const Vector2& /*lp*/) const {
106  return (m_fullMaterial);
107 }
108 
110  const Vector3& /*gp*/) const {
111  return (m_fullMaterial);
112 }
113 
115  size_t /*ib0*/, size_t /*ib1*/) const {
116  return (m_fullMaterial);
117 }
118 
120  const HomogeneousSurfaceMaterial& hsm) const {
121  return (m_fullMaterial == hsm.m_fullMaterial);
122 }
123 
124 } // namespace Acts