File indexing completed on 2025-01-18 09:10:54
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Material/IVolumeMaterial.hpp"
0013 #include "Acts/Material/Material.hpp"
0014 #include "Acts/Utilities/BinUtility.hpp"
0015
0016 #include <iosfwd>
0017
0018 namespace Acts {
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 class ProtoVolumeMaterial : public IVolumeMaterial {
0030 public:
0031
0032 ProtoVolumeMaterial() = default;
0033
0034
0035
0036
0037
0038 ProtoVolumeMaterial(const BinUtility& binUtility);
0039
0040
0041
0042
0043 ProtoVolumeMaterial(const ProtoVolumeMaterial& vmproxy) = default;
0044
0045
0046
0047
0048 ProtoVolumeMaterial(ProtoVolumeMaterial&& vmproxy) = default;
0049
0050
0051
0052 ~ProtoVolumeMaterial() override = default;
0053
0054
0055 const BinUtility& binUtility() const;
0056
0057
0058
0059
0060 ProtoVolumeMaterial& operator=(const ProtoVolumeMaterial& vmproxy) = default;
0061
0062
0063 const Material material(const Vector3& ) const final;
0064
0065
0066
0067
0068 std::ostream& toStream(std::ostream& sl) const final;
0069
0070 private:
0071 BinUtility m_binUtility;
0072 Material m_material;
0073 };
0074
0075 inline const Acts::Material Acts::ProtoVolumeMaterial::material(
0076 const Acts::Vector3& ) const {
0077 return m_material;
0078 }
0079
0080 inline const Acts::BinUtility& Acts::ProtoVolumeMaterial::binUtility() const {
0081 return m_binUtility;
0082 }
0083
0084 }