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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
np
nptool
Commits
fb4afea5
Commit
fb4afea5
authored
Jan 19, 2022
by
Valérian Alcindor
Browse files
Some Strasse related updates
parent
f56520df
Pipeline
#157452
passed with stages
in 7 minutes and 38 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
6 deletions
+49
-6
NPSimulation/Core/MaterialManager.cc
NPSimulation/Core/MaterialManager.cc
+42
-1
NPSimulation/Core/SteppingAction.cc
NPSimulation/Core/SteppingAction.cc
+2
-1
NPSimulation/Detectors/Strasse/Strasse.cc
NPSimulation/Detectors/Strasse/Strasse.cc
+5
-4
No files found.
NPSimulation/Core/MaterialManager.cc
View file @
fb4afea5
...
...
@@ -985,6 +985,48 @@ G4Material* MaterialManager::GetMaterialFromLibrary(string Name,
return
material
;
}
else
if
(
Name
==
"Al1050"
)
{
if
(
!
density
)
density
=
2.71
*
g
/
cm3
;
G4Material
*
material
=
new
G4Material
(
"NPS_"
+
Name
,
density
,
2
);
material
->
AddElement
(
GetElementFromLibrary
(
"Al"
),
99.5
/
100.
);
// To get to 100%
material
->
AddElement
(
GetElementFromLibrary
(
"Fe"
),
0.5
/
100.
);
// Not 100% from wiki...
// material->AddElement(GetElementFromLibrary("Cu"), 0.05/100.);
// material->AddElement(GetElementFromLibrary("Fe"), 0.4/100.);
// material->AddElement(GetElementFromLibrary("Mg"), 0.05/100.);
// material->AddElement(GetElementFromLibrary("Mn"), 0.05/100.);
// material->AddElement(GetElementFromLibrary("Si"), 0.25/100.);
// material->AddElement(GetElementFromLibrary("Ti"), 0.03/100.);
// material->AddElement(GetElementFromLibrary("V"), 0.05/100.);
// material->AddElement(GetElementFromLibrary("Zn"), 0.05/100.);
m_Material
[
Name
]
=
material
;
return
material
;
}
else
if
(
Name
==
"Al5754"
)
{
if
(
!
density
)
density
=
2.67
*
g
/
cm3
;
G4Material
*
material
=
new
G4Material
(
"NPS_"
+
Name
,
density
,
2
);
//Realistic
material
->
AddElement
(
GetElementFromLibrary
(
"Al"
),
97
/
100.
);
material
->
AddElement
(
GetElementFromLibrary
(
"Mg"
),
3
/
100.
);
// Not 100% from Wiki...
// material->AddElement(GetElementFromLibrary("Al"), 97.4/100.);
// material->AddElement(GetElementFromLibrary("Cr"), 0.3/100.);
// material->AddElement(GetElementFromLibrary("Cu"), 0.1/100.);
// material->AddElement(GetElementFromLibrary("Fe"), 0.4/100.);
// material->AddElement(GetElementFromLibrary("Mg"), 3.6/100.);
// material->AddElement(GetElementFromLibrary("Mn"), 0.5/100.);
// material->AddElement(GetElementFromLibrary("Si"), 0.4/100.);
// material->AddElement(GetElementFromLibrary("Ti"), 0.15/100.);
// material->AddElement(GetElementFromLibrary("Zn"), 0.2/100.);
m_Material
[
Name
]
=
material
;
return
material
;
}
else
if
(
Name
==
"NE213"
)
{
if
(
!
density
)
density
=
0.874
*
g
/
cm3
;
...
...
@@ -1194,7 +1236,6 @@ G4Material* MaterialManager::GetGasFromLibrary(string Name, double Pressure,
return
material
;
}
else
{
exit
(
1
);
}
...
...
NPSimulation/Core/SteppingAction.cc
View file @
fb4afea5
...
...
@@ -6,7 +6,8 @@
*****************************************************************************/
/*****************************************************************************
* Original Author: ValerianAlcindor contact address: valcindor@@ikp.tu-darmstadt.de
* Original Author: ValerianAlcindor contact address:
*valcindor@@ikp.tu-darmstadt.de
* *
* Creation Date : September 2021 *
* Last update : *
...
...
NPSimulation/Detectors/Strasse/Strasse.cc
View file @
fb4afea5
...
...
@@ -633,7 +633,9 @@ G4LogicalVolume* Strasse::BuildOuterDetector(){
G4LogicalVolume
*
Strasse
::
BuildChamber
(){
if
(
!
m_Chamber
){
// Needed Element
G4Material
*
Material
=
MaterialManager
::
getInstance
()
->
GetMaterialFromLibrary
(
"Al"
);
// G4Material* Material = MaterialManager::getInstance()->GetMaterialFromLibrary("Al");
G4Material
*
Material
=
MaterialManager
::
getInstance
()
->
GetMaterialFromLibrary
(
"Al5754"
);
// G4Material* Material = MaterialManager::getInstance()->GetMaterialFromLibrary("Al1050");
G4RotationMatrix
*
Rot
=
new
G4RotationMatrix
();
// Main Cylinder
...
...
@@ -694,7 +696,6 @@ G4LogicalVolume* Strasse::BuildChamber(){
m_Chamber
=
new
G4LogicalVolume
(
Chamber3
,
Material
,
"logic_Strasse_Chamber"
,
0
,
0
,
0
);
m_Chamber
->
SetVisAttributes
(
ChamberVisAtt
);
}
...
...
@@ -1023,7 +1024,7 @@ void Strasse::ConstructDetector(G4LogicalVolume* world){
}
// Chamber
/*
for
(
unsigned
short
i
=
0
;
i
<
m_Chamber_Z
.
size
()
;
i
++
)
{
G4ThreeVector
Det_pos
=
G4ThreeVector
(
0
,
0
,
-
m_Chamber_Z
[
i
])
;
G4RotationMatrix
*
Rot
=
new
G4RotationMatrix
();
...
...
@@ -1032,7 +1033,7 @@ void Strasse::ConstructDetector(G4LogicalVolume* world){
BuildChamber
(),
"Strasse"
,
world
,
false
,
i
+
1
);
}
*/
//G4ThreeVector Det_pos = G4ThreeVector(0,0,+11.5) ;
...
...
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