Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
np
nptool
Commits
1647ef34
Commit
1647ef34
authored
Oct 16, 2018
by
Valérian Alcindor
Browse files
Adding Tantalum to MaterialManager.cc
parent
ffae4ff6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
NPSimulation/Core/MaterialManager.cc
NPSimulation/Core/MaterialManager.cc
+9
-0
No files found.
NPSimulation/Core/MaterialManager.cc
View file @
1647ef34
...
...
@@ -659,6 +659,15 @@ G4Material* MaterialManager::GetMaterialFromLibrary(string Name,double density){
m_Material
[
Name
]
=
material
;
return
material
;
}
else
if
(
Name
==
"Ta"
||
Name
==
"Tantalum"
){
if
(
!
density
)
density
=
16.601
*
g
/
cm3
;
G4Material
*
material
=
new
G4Material
(
"NPS_"
+
Name
,
density
,
1
);
material
->
AddElement
(
GetElementFromLibrary
(
"Ta"
),
1
);
m_Material
[
Name
]
=
material
;
return
material
;
}
else
if
(
Name
==
"Ca"
){
if
(
!
density
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment