ATLAS Offline Software
Loading...
Searching...
No Matches
HomogeneousLayerMaterial.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// HomogeneousLayerMaterial.cxx, (c) ATLAS Detector software
8
10
12
15
19
25
27
30 if (this != &lmp) {
31 // now refill everything
32 m_fullMaterial.reset(lmp.m_fullMaterial ? lmp.m_fullMaterial->clone()
33 : nullptr);
35 }
36 return (*this);
37}
38
40 double scale) {
41 // scale the sub-properties
42 if (m_fullMaterial) (*m_fullMaterial) *= scale;
43
44 return (*this);
45}
46
47MsgStream& Trk::HomogeneousLayerMaterial::dump(MsgStream& sl) const {
48 sl << "Trk::HomogeneousLayerMaterial : " << std::endl;
49 if (m_fullMaterial) {
50 sl << " - fullMaterial : " << *m_fullMaterial << std::endl;
51 }
52 sl << " - split factor : " << m_splitFactor << std::endl;
53
54 return sl;
55}
56
57std::ostream& Trk::HomogeneousLayerMaterial::dump(std::ostream& sl) const {
58 sl << "Trk::HomogeneousLayerMaterial : " << std::endl;
59 if (m_fullMaterial) {
60 sl << " - fullMaterial : " << *m_fullMaterial << std::endl;
61 }
62 sl << " - split factor : " << m_splitFactor << std::endl;
63 return sl;
64}
It extends the LayerMaterialProperties base class.
virtual MsgStream & dump(MsgStream &sl) const override
Output Method for MsgStream, to be overloaded by child classes.
virtual ~HomogeneousLayerMaterial() override
Destructor.
HomogeneousLayerMaterial & operator=(const HomogeneousLayerMaterial &lmp)
Assignment operator.
virtual HomogeneousLayerMaterial & operator*=(double scale) override
Scale operator.
std::unique_ptr< MaterialProperties > m_fullMaterial
The five different MaterialProperties.
virtual HomogeneousLayerMaterial * clone() const override
Pseudo-Constructor clone()
HomogeneousLayerMaterial()
Default Constructor - creates empty HomogeneousLayerMaterial.
double m_splitFactor
the split factor in favour of oppositePre
Material with information about thickness of material.
Ensure that the ATLAS eigen extensions are properly loaded.