-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPPC_Germanium_Detector.gdml
More file actions
78 lines (47 loc) · 2.11 KB
/
PPC_Germanium_Detector.gdml
File metadata and controls
78 lines (47 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gdml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/Users/stortini/software/geant4/geant4/source/persistency/gdml/schema/gdml.xsd">
##########################################
#cylinder_height + cone_height = detector height
#cylinder_radius = cone's larger radius = detector radius
#cone_radius1 = cone's smaller radius
#cone_radius2 = cone's larger radius
##########################################
<define>
<constant name="HALFPI" value="pi/2."/>
<constant name="PI" value="1.*pi"/>
<constant name="TWOPI" value="2.*pi"/>
<position name="center" x="0" y="0" z="0"/>
<rotation name="identity" x="0" y="0" z="0" />
<quantity name="cylinder_radius" type="length" value="31" unit="mm"/>
<quantity name="cylinder_height" type="length" value="45.0" unit="mm"/>
<quantity name="cone_radius1" type="length" value="29.39" unit="mm"/>
<quantity name="cone_radius2" type="length" value="31" unit="mm"/>
<quantity name="cone_height" type="length" value="6" unit="mm"/>
</define>
##########################################
<materials>
<material name="natGe" Z="32.0"> <D value="5.32"/> <atom value="72.64"/> </material>
</materials>
##########################################
<solids>
<cone name="cylinder" rmin1="0" rmax1="cylinder_radius" rmin2="0" rmax2="cylinder_radius" z="cylinder_height" startphi="0" deltaphi="TWOPI" aunit="rad" />
<cone name="cone" rmin1="0" rmax1="cone_radius2" rmin2="0" rmax2="cone_radius1" z="cone_height" startphi="0" deltaphi="TWOPI" aunit="rad" />
<union name="detector">
<first ref="cylinder" />
<second ref="cone" />
<position x="0" y="0" z="cylinder_height/2.0 + cone_height/2.0" />
<rotationref ref="identity"/>
</union>
</solids>
##########################################
<structure>
<volume name="PPC_Germanium_Detector">
<materialref ref="natGe"/>
<solidref ref="detector"/>
</volume>
</structure>
##########################################
<setup name="Default" version="1.0">
<world ref="PPC_Germanium_Detector"/>
</setup>
</gdml>