File indexing completed on 2025-01-18 09:11:25
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/Material/HomogeneousSurfaceMaterial.hpp"
0010
0011 #include "Acts/Material/MaterialSlab.hpp"
0012
0013 #include <ostream>
0014
0015 namespace Acts {
0016
0017 HomogeneousSurfaceMaterial::HomogeneousSurfaceMaterial(const MaterialSlab& full,
0018 double splitFactor,
0019 MappingType mappingType)
0020 : ISurfaceMaterial(splitFactor, mappingType), m_fullMaterial(full) {}
0021
0022 HomogeneousSurfaceMaterial& HomogeneousSurfaceMaterial::scale(double factor) {
0023 m_fullMaterial.scaleThickness(factor);
0024 return *this;
0025 }
0026
0027 const MaterialSlab& HomogeneousSurfaceMaterial::materialSlab(
0028 const Vector2& ) const {
0029 return m_fullMaterial;
0030 }
0031
0032 const MaterialSlab& HomogeneousSurfaceMaterial::materialSlab(
0033 const Vector3& ) const {
0034 return m_fullMaterial;
0035 }
0036
0037 std::ostream& HomogeneousSurfaceMaterial::toStream(std::ostream& sl) const {
0038 sl << "HomogeneousSurfaceMaterial : " << std::endl;
0039 sl << " - fullMaterial : " << m_fullMaterial << std::endl;
0040 sl << " - split factor : " << m_splitFactor << std::endl;
0041 return sl;
0042 }
0043
0044 }