-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgtest.gdml
More file actions
81 lines (54 loc) · 2.23 KB
/
gtest.gdml
File metadata and controls
81 lines (54 loc) · 2.23 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
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gdml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://service-spi.web.cern.ch/service-spi/app/releases/GDML/schema/gdml.xsd">
##########################################
This file is a "mother file" to insert other gdml file geometries into. This file itself contains a vacuum inside of a larger world. GDML Modules are inserted as physical volumes in the vacuum logical volume. See 'structure' section of this file to insert other geometries.
##########################################
<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="world_size" type="length" value="10.0" unit="m"/>
<quantity name="vacuum_radius" type="length" value="2.5" unit="m"/>
<quantity name="vacuum_height" type="length" value="5.0" unit="m"/>
</define>
##########################################
<materials>
<element name="hydrogen" formula="H" Z="1."> <atom value="1.008"/> </element>
<material name="vacuum">
<D value="1.e-22" unit="mg/cm3"/>
<fraction n="1.0" ref="hydrogen"/>
</material>
</materials>
##########################################
<solids>
<box name="world_box" x="world_size" y="world_size" z="world_size"/>
<cone name="vacuum_cylinder" rmin1="0" rmax1="vacuum_radius" rmin2="0" rmax2="vacuum_radius" z="vacuum_height" startphi="0" deltaphi="TWOPI" aunit="rad"/>
</solids>
##########################################
<structure>
<volume name="vacuum_volume">
<materialref ref="vacuum"/>
<solidref ref="vacuum_cylinder"/>
<physvol>
<file name="PP_Piece.gdml"/>
<positionref ref="center"/>
<rotationref ref="identity"/>
</physvol>
</volume>
<volume name="world">
<materialref ref="vacuum"/>
<solidref ref="world_box"/>
<physvol>
<volumeref ref="vacuum_volume"/>
<positionref ref="center"/>
<rotationref ref="identity"/>
</physvol>
</volume>
</structure>
##########################################
<setup name="Default" version="1.0">
<world ref="world"/>
</setup>
</gdml>