ATLAS Offline Software
DetectorDescription
AGDD
AGDDModel
src
AGDDMixture.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/AGDDMixture.h
"
6
#include "
AGDDModel/AGDDElement.h
"
7
#include "
AGDDModel/AGDDSimpleMaterial.h
"
8
#include "
AGDDModel/AGDDMaterialStore.h
"
9
10
#include <iostream>
11
12
std::ostream&
operator <<
(std::ostream&
os
,
const
AGDDMixture
&
obj
)
13
{
14
os
<<
"- Material "
<<
obj
.m_name<<
" type=Mixture density="
<<
obj
.m_density<<std::endl;
15
os
<<
"\tcomponents"
<<std::endl;
16
for
(
unsigned
int
i
=0;
i
<
obj
.m_theMaterials.size();
i
++)
17
{
18
const
std::string
ss
=
obj
.m_theMaterials[
i
]->GetName();
19
const
double
ii=
obj
.m_theComposition[
i
];
20
os
<<
"\t\t material "
<<
ss
<<
" fraction="
<<ii<<std::endl;
21
}
22
return
os
;
23
}
24
25
AGDDMixture::AGDDMixture
(
AGDDMaterialStore
&
ms
,
const
std::string&
n
,
double
d
):
26
AGDDSimpleMaterial
(
ms
,
n
,
d
)
27
{
28
m_mType
=
Mixture
;
29
}
30
31
void
AGDDMixture::AddMaterial
(
AGDDMaterialStore
&
ms
,
const
std::string&
el
)
32
{
33
AGDDSimpleMaterial
* material=
ms
.GetMaterial(
el
);
34
m_theMaterials
.push_back(material);
35
}
36
void
AGDDMixture::Fraction
(
double
d
)
37
{
38
m_theComposition
.push_back(
d
);
39
}
AGDDMixture::AddMaterial
void AddMaterial(AGDDMaterialStore &ms, const std::string &)
Definition:
AGDDMixture.cxx:31
PowhegControl_ttHplus_NLO.ss
ss
Definition:
PowhegControl_ttHplus_NLO.py:83
operator<<
std::ostream & operator<<(std::ostream &os, const AGDDMixture &obj)
Definition:
AGDDMixture.cxx:12
hist_file_dump.d
d
Definition:
hist_file_dump.py:137
AGDDMixture::Fraction
void Fraction(double)
Definition:
AGDDMixture.cxx:36
AGDDMaterialStore.h
AGDDMixture::AGDDMixture
AGDDMixture(AGDDMaterialStore &ms, const std::string &, double)
Definition:
AGDDMixture.cxx:25
python.SystemOfUnits.ms
int ms
Definition:
SystemOfUnits.py:132
AGDDMixture::m_theMaterials
std::vector< AGDDSimpleMaterial * > m_theMaterials
Definition:
AGDDMixture.h:26
AGDDMixture::m_theComposition
std::vector< double > m_theComposition
Definition:
AGDDMixture.h:27
lumiFormat.i
int i
Definition:
lumiFormat.py:85
beamspotman.n
n
Definition:
beamspotman.py:731
plotIsoValidation.el
el
Definition:
plotIsoValidation.py:197
AGDDMaterialStore
Definition:
AGDDMaterialStore.h:23
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
AGDDSimpleMaterial
Definition:
AGDDSimpleMaterial.h:14
AGDDMixture.h
AGDDSimpleMaterial.h
AGDDElement.h
AGDDMixture
Definition:
AGDDMixture.h:16
Mixture
@ Mixture
Definition:
MaterialTypes.h:8
python.PyAthena.obj
obj
Definition:
PyAthena.py:132
AGDDSimpleMaterial::m_mType
material_type m_mType
Definition:
AGDDSimpleMaterial.h:38
Generated on Thu Nov 7 2024 21:09:42 for ATLAS Offline Software by
1.8.18