ATLAS Offline Software
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDModel
src
AGDDSimpleMaterial.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AGDDModel/AGDDSimpleMaterial.h
"
6
#include "
AGDDModel/AGDDMaterialStore.h
"
7
8
#include <iostream>
9
10
std::ostream&
operator <<
(std::ostream& os,
const
AGDDSimpleMaterial
&obj)
11
{
12
os<<
"- Material "
<<obj.m_name<<
" type="
<<obj.m_mType<<
" density="
<<obj.m_density<<std::endl;
13
return
os;
14
}
15
16
17
void
AGDDSimpleMaterial::RegisterToStore
(
AGDDMaterialStore
& ms,
18
AGDDSimpleMaterial
*e)
19
{
20
ms.RegisterMaterial(e);
21
}
22
23
const
std::string&
AGDDSimpleMaterial::GetName
()
const
24
{
25
return
m_name
;
26
}
AGDDMaterialStore.h
operator<<
std::ostream & operator<<(std::ostream &os, const AGDDSimpleMaterial &obj)
Definition
AGDDSimpleMaterial.cxx:10
AGDDSimpleMaterial.h
AGDDMaterialStore
Definition
AGDDMaterialStore.h:23
AGDDSimpleMaterial::AGDDSimpleMaterial
AGDDSimpleMaterial(AGDDMaterialStore &ms, const std::string &n, double d)
Definition
AGDDSimpleMaterial.h:17
AGDDSimpleMaterial::m_name
std::string m_name
Definition
AGDDSimpleMaterial.h:34
AGDDSimpleMaterial::GetName
const std::string & GetName() const
Definition
AGDDSimpleMaterial.cxx:23
AGDDSimpleMaterial::RegisterToStore
void RegisterToStore(AGDDMaterialStore &ms, AGDDSimpleMaterial *)
Definition
AGDDSimpleMaterial.cxx:17
Generated on
for ATLAS Offline Software by
1.14.0