Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:09:38

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2016-2020 CERN for the benefit of the Acts project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
0008 
0009 #include "Acts/Material/HomogeneousSurfaceMaterial.hpp"
0010 
0011 #include "Acts/Material/MaterialSlab.hpp"
0012 
0013 #include <ostream>
0014 
0015 Acts::HomogeneousSurfaceMaterial::HomogeneousSurfaceMaterial(
0016     const MaterialSlab& full, double splitFactor, Acts::MappingType mappingType)
0017     : ISurfaceMaterial(splitFactor, mappingType), m_fullMaterial(full) {}
0018 
0019 Acts::HomogeneousSurfaceMaterial& Acts::HomogeneousSurfaceMaterial::operator*=(
0020     double scale) {
0021   m_fullMaterial.scaleThickness(scale);
0022   return (*this);
0023 }
0024 
0025 std::ostream& Acts::HomogeneousSurfaceMaterial::toStream(
0026     std::ostream& sl) const {
0027   sl << "Acts::HomogeneousSurfaceMaterial : " << std::endl;
0028   sl << "   - fullMaterial : " << m_fullMaterial << std::endl;
0029   sl << "   - split factor : " << m_splitFactor << std::endl;
0030   return sl;
0031 }