ECCE @ 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 
31  double splitFactor = 1.);
32 
37 
42 
44  ~HomogeneousSurfaceMaterial() override = default;
45 
50  default;
51 
56  default;
57 
63 
67  bool operator==(const HomogeneousSurfaceMaterial& hsm) const;
68 
72  const MaterialProperties& materialProperties(const Vector2D& lp) const final;
73 
77  const MaterialProperties& materialProperties(const Vector3D& gp) const final;
78 
85  const MaterialProperties& materialProperties(size_t ib0,
86  size_t ib1) const final;
87 
90 
93 
97  std::ostream& toStream(std::ostream& sl) const final;
98 
99  private:
102 };
103 
105  const Vector2D& /*lp*/) const {
106  return (m_fullMaterial);
107 }
108 
110  const Vector3D& /*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