Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProtoSurfaceMaterial.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ProtoSurfaceMaterial.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 
15 
16 #include <cstddef>
17 #include <iosfwd>
18 
19 namespace Acts {
20 
29 
31  public:
33  ProtoSurfaceMaterial() = default;
34 
42 
46  ProtoSurfaceMaterial(const ProtoSurfaceMaterial& smproxy) = default;
47 
51  ProtoSurfaceMaterial(ProtoSurfaceMaterial&& smproxy) = default;
52 
54  ~ProtoSurfaceMaterial() override = default;
55 
60  default;
61 
66 
70  ProtoSurfaceMaterial& operator*=(double scale) final;
71 
73  const BinUtility& binUtility() const;
74 
81  const MaterialSlab& materialSlab(const Vector2& lp) const final;
82 
89  const MaterialSlab& materialSlab(const Vector3& gp) const final;
90 
97  const MaterialSlab& materialSlab(size_t ib0, size_t ib1) const final;
98 
100  std::ostream& toStream(std::ostream& sl) const final;
101 
102  private:
107 
110 };
111 } // namespace Acts
112 
114  const Vector2& /*lp*/) const {
115  return (m_materialSlab);
116 }
117 
119  const Vector3& /*gp*/) const {
120  return (m_materialSlab);
121 }
122 
124  size_t /*ib0*/, size_t /*ib1*/) const {
125  return (m_materialSlab);
126 }
127 
129  return m_binUtility;
130 }