ATLAS Offline Software
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDModel
src
AGDDMaterial.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AGDDModel/AGDDMaterial.h
"
6
#include "
AGDDModel/AGDDElement.h
"
7
#include "
AGDDModel/AGDDSimpleMaterial.h
"
8
9
#include <iostream>
10
11
std::ostream&
operator <<
(std::ostream& os,
const
AGDDMaterial
&obj)
12
{
13
os<<
"- Material "
<<obj.m_name<<
" type-Material density="
<<obj.m_density<<
14
" Z="
<<obj.m_z<<
" A="
<<obj.m_a<<std::endl;
15
return
os;
16
}
17
18
AGDDMaterial::AGDDMaterial
(
AGDDMaterialStore
& ms,
19
const
std::string& n,
20
AGDDElement
* e,
double
d):
21
AGDDSimpleMaterial
(ms,n,d),
m_z
(e->
GetZ
()),
m_a
(e->
GetA
()),
m_element
(e),
m_matCreated
(false)
22
{
23
m_mType
=
Material
;
24
}
25
26
AGDDMaterial::AGDDMaterial
(
AGDDMaterialStore
& ms,
27
const
std::string& n,
int
z
,
double
a
,
double
d):
28
AGDDSimpleMaterial
(ms,n,d),
m_z
(
z
),
m_a
(
a
),
m_element
(0),
m_matCreated
(false)
29
{
30
m_mType
=
Material
;
31
}
AGDDElement.h
operator<<
std::ostream & operator<<(std::ostream &os, const AGDDMaterial &obj)
Definition
AGDDMaterial.cxx:11
AGDDMaterial.h
AGDDSimpleMaterial.h
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
Material
@ Material
Definition
MaterialTypes.h:8
z
#define z
AGDDElement
Definition
AGDDElement.h:11
AGDDMaterialStore
Definition
AGDDMaterialStore.h:23
AGDDMaterial::m_matCreated
bool m_matCreated
Definition
AGDDMaterial.h:31
AGDDMaterial::GetA
double GetA() const
Definition
AGDDMaterial.h:23
AGDDMaterial::GetZ
int GetZ() const
Definition
AGDDMaterial.h:22
AGDDMaterial::m_z
int m_z
Definition
AGDDMaterial.h:28
AGDDMaterial::m_element
AGDDElement * m_element
Definition
AGDDMaterial.h:30
AGDDMaterial::m_a
double m_a
Definition
AGDDMaterial.h:29
AGDDMaterial::AGDDMaterial
AGDDMaterial(AGDDMaterialStore &ms, const std::string &, AGDDElement *, double)
Definition
AGDDMaterial.cxx:18
AGDDSimpleMaterial::m_mType
material_type m_mType
Definition
AGDDSimpleMaterial.h:38
AGDDSimpleMaterial::AGDDSimpleMaterial
AGDDSimpleMaterial(AGDDMaterialStore &ms, const std::string &n, double d)
Definition
AGDDSimpleMaterial.h:17
Generated on
for ATLAS Offline Software by
1.14.0