File indexing completed on 2025-01-19 09:23:24
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
0015 #include <iosfwd>
0016
0017 namespace Acts {
0018
0019
0020
0021
0022
0023 class HomogeneousVolumeMaterial : public IVolumeMaterial {
0024 public:
0025
0026
0027
0028 HomogeneousVolumeMaterial(const Material& material);
0029
0030
0031
0032
0033 HomogeneousVolumeMaterial(const HomogeneousVolumeMaterial& hvm) = default;
0034
0035
0036
0037
0038 HomogeneousVolumeMaterial(HomogeneousVolumeMaterial&& hvm) = default;
0039
0040
0041 ~HomogeneousVolumeMaterial() override = default;
0042
0043
0044
0045
0046 HomogeneousVolumeMaterial& operator=(const HomogeneousVolumeMaterial& hvm) =
0047 default;
0048
0049
0050
0051
0052 bool operator==(const HomogeneousVolumeMaterial& hvm) const;
0053
0054
0055
0056
0057
0058
0059 const Material material(const Vector3& position) const final;
0060
0061
0062
0063
0064 std::ostream& toStream(std::ostream& sl) const final;
0065
0066 private:
0067 Material m_material = Material();
0068 };
0069
0070 inline const Material HomogeneousVolumeMaterial::material(
0071 const Vector3& ) const {
0072 return (m_material);
0073 }
0074
0075 inline bool HomogeneousVolumeMaterial::operator==(
0076 const HomogeneousVolumeMaterial& hvm) const {
0077 return (m_material == hvm.m_material);
0078 }
0079
0080 }