ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDModel
src
AGDDElement.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/AGDDElement.h
"
6
#include "
AGDDModel/AGDDMaterialStore.h
"
7
8
#include <iostream>
9
10
std::ostream&
operator <<
(std::ostream& os,
const
AGDDElement
&obj)
11
{
12
os<<
"- Element "
<<obj.m_name<<
" symbol="
<<obj.m_symbol<<
13
" Z="
<<obj.m_z<<
" A="
<<obj.m_a<<std::endl;
14
return
os;
15
}
16
17
void
AGDDElement::RegisterToStore
(
AGDDMaterialStore
& ms,
18
AGDDElement
*e)
19
{
20
ms.RegisterElement(e);
21
}
22
23
const
std::string&
AGDDElement::GetName
()
const
24
{
25
return
m_name
;
26
}
27
28
const
std::string&
AGDDElement::GetSymbol
()
const
29
{
30
return
m_symbol
;
31
}
operator<<
std::ostream & operator<<(std::ostream &os, const AGDDElement &obj)
Definition
AGDDElement.cxx:10
AGDDElement.h
AGDDMaterialStore.h
AGDDElement::m_name
std::string m_name
Definition
AGDDElement.h:32
AGDDElement::GetSymbol
const std::string & GetSymbol() const
Definition
AGDDElement.cxx:28
AGDDElement::RegisterToStore
void RegisterToStore(AGDDMaterialStore &ms, AGDDElement *)
Definition
AGDDElement.cxx:17
AGDDElement::m_symbol
std::string m_symbol
Definition
AGDDElement.h:33
AGDDElement::GetName
const std::string & GetName() const
Definition
AGDDElement.cxx:23
AGDDElement::AGDDElement
AGDDElement(AGDDMaterialStore &ms, const std::string &n, const std::string &s, int z, double a)
Definition
AGDDElement.h:14
AGDDMaterialStore
Definition
AGDDMaterialStore.h:23
Generated on
for ATLAS Offline Software by
1.17.0