8 #Specific H,W,L of volTPC
14 $SteelThickness=0.5*2.54;
15 $ArgonWidth=$CryostatWidth-2*$SteelThickness;
16 $ArgonHeight=$CryostatHeight-2*$SteelThickness;
17 $ArgonLength=$CryostatLength-2*$SteelThickness;
20 $GlassFoamPadding=100;
21 $TotalPadding=$ConcretePadding+$GlassFoamPadding+$SteelThickness;
22 $CavernWidth=$ArgonWidth+2*$TotalPadding;
23 $CavernHeight=$ArgonHeight+$TotalPadding;
24 $CavernLength=$ArgonLength+2*$TotalPadding;
25 $TPCWidth=$CryostatWidth;
26 $TPCHeight=$CryostatHeight;
27 $TPCLength=$CryostatLength;
28 $TPCWireThickness=0.015;
43 # Set up the output file.
44 $volTPC = "voltpc.gdml";
45 $volTPC = ">>" . $volTPC;
46 open(volTPC) or die("Could not open file $volTPC for writing");
50 <box name="World" lunit="cm"
53 z="5*$CryostatLength"/>
54 <box name="DetEnclosure" lunit="cm"
56 y="$CryostatHeight+10"
57 z="$CryostatLength+10"/>
58 <box name="Cryostat" lunit="cm"
62 <box name="TPC" lunit="cm"
66 <box name="TPCPlane" lunit="cm"
71 rmax="0.5*$TPCWireThickness"
79 <volume name="volTPCWire">
80 <materialref ref="STEEL_STAINLESS_Fe7Cr2Ni" />
81 <solidref ref="TPCWire" />
83 <volume name="volTPCPlane">
84 <materialref ref="LAr"/>
85 <solidref ref="TPCPlane"/>
88 for ( $i=-0.3*$TPCLength ; $i < 0.3*$TPCLength ; $i+=100 ) {
92 <volumeref ref="volTPCWire"/>
93 <position name="posTPCWire$i" unit="cm" x="0" y="0" z="$wire_zpos"/>
94 <rotation name="rTPCWire$i" unit="deg" x="60" y="0" z="0"/>
100 <volume name="volTPC">
101 <materialref ref="LAr" />
102 <solidref ref="TPC" />
104 <volumeref ref="volTPCPlane"/>
105 <position name="posTPCPlane1" unit="cm" x="-0.45*$TPCWidth" y="0" z="0"/>
108 <volumeref ref="volTPCPlane"/>
109 <position name="posTPCPlane2" unit="cm" x="-0.475*$TPCWidth" y="0" z="0"/>
110 <rotation name="rTPCPlane2" unit="deg" x="0" y="180" z="0"/>
113 <volume name="volCryostat">
114 <materialref ref="LAr" />
115 <solidref ref="Cryostat" />
117 <volumeref ref="volTPC"/>
118 <position name="posTPC" unit="cm" x="0" y="0" z="0"/>
121 <volume name="volDetEnclosure">
122 <materialref ref="Air"/>
123 <solidref ref="DetEnclosure"/>
125 <volumeref ref="volCryostat"/>
126 <position name="posCryostat" unit="cm" x="0" y="0" z="0"/>
129 <volume name="volWorld" >
130 <materialref ref="Air"/>
131 <solidref ref="World"/>
133 <volumeref ref="volDetEnclosure"/>
134 <position name="posDetEnclosure" unit="cm" x="0.5*$TPCWidth" y="0" z="0.5*$TPCLength"/>
139 <setup name="Default" version="1.0">
140 <world ref="volWorld" />
148 #generates necessary gd/xml header
152 $volTPC = "voltpc.gdml";
153 $volTPC = ">" . $volTPC;
154 open(volTPC) or die("Could not open file $volTPC for writing");
156 <?xml version="1.0" encoding="UTF-8" ?>
157 <gdml xmlns:gdml="http://cern.ch/2001/Schemas/GDML"
158 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
159 xsi:noNamespaceSchemaLocation="GDMLSchema/gdml.xsd">
168 $volTPC = "voltpc.gdml";
169 $volTPC = ">>" . $volTPC;
170 open(volTPC) or die("Could not open file $volTPC for writing");
173 <element name="videRef" formula="VACUUM" Z="1"> <atom value="1"/> </element>
174 <element name="hydrogen" formula="H" Z="1"> <atom value="1.0079"/> </element>
175 <element name="nitrogen" formula="N" Z="7"> <atom value="14.0067"/> </element>
176 <element name="oxygen" formula="O" Z="8"> <atom value="15.999"/> </element>
177 <element name="aluminum" formula="Al" Z="13"> <atom value="26.9815"/> </element>
178 <element name="silicon" formula="Si" Z="14"> <atom value="28.0855"/> </element>
179 <element name="carbon" formula="C" Z="6"> <atom value="12.0107"/> </element>
180 <element name="potassium" formula="K" Z="19"> <atom value="39.0983"/> </element>
181 <element name="chromium" formula="Cr" Z="24"> <atom value="51.9961"/> </element>
182 <element name="iron" formula="Fe" Z="26"> <atom value="55.8450"/> </element>
183 <element name="nickel" formula="Ni" Z="28"> <atom value="58.6934"/> </element>
184 <element name="calcium" formula="Ca" Z="20"> <atom value="40.078"/> </element>
185 <element name="sodium" formula="Na" Z="11"> <atom value="22.99"/> </element>
186 <element name="argon" formula="Ar" Z="18"> <atom value="39.9480"/> </element>
188 <material name="Vacuum" formula="Vacuum">
189 <D value="1.e-25" unit="g/cm3"/>
190 <fraction n="1.0" ref="videRef"/>
193 <material name="STEEL_STAINLESS_Fe7Cr2Ni" formula="STEEL_STAINLESS_Fe7Cr2Ni">
194 <D value="7.9300" unit="g/cm3"/>
195 <fraction n="0.0010" ref="carbon"/>
196 <fraction n="0.1800" ref="chromium"/>
197 <fraction n="0.7298" ref="iron"/>
198 <fraction n="0.0900" ref="nickel"/>
201 <material name="LAr" formula="LAr">
202 <D value="1.40" unit="g/cm3"/>
203 <fraction n="1.0000" ref="argon"/>
206 <material formula=" " name="Air">
207 <D value="0.001205" unit="g/cm3"/>
208 <fraction n="0.78084" ref="nitrogen"/>
209 <fraction n="0.209476" ref="oxygen"/>
210 <fraction n="0.00934" ref="argon"/>
213 <material formula=" " name="Granite">
214 <D value="2.7" unit="g/cm3"/>
215 <fraction n="0.438" ref="oxygen"/>
216 <fraction n="0.257" ref="silicon"/>
217 <fraction n="0.222" ref="sodium"/>
218 <fraction n="0.049" ref="aluminum"/>
219 <fraction n="0.019" ref="iron"/>
220 <fraction n="0.015" ref="potassium"/>
223 <material formula=" " name="Dirt">
224 <D value="1.7" unit="g/cm3"/>
225 <fraction n="0.438" ref="oxygen"/>
226 <fraction n="0.257" ref="silicon"/>
227 <fraction n="0.222" ref="sodium"/>
228 <fraction n="0.049" ref="aluminum"/>
229 <fraction n="0.019" ref="iron"/>
230 <fraction n="0.015" ref="potassium"/>
233 <material formula=" " name="Concrete">
234 <D value="2.3" unit="g/cm3"/>
235 <fraction n="0.530" ref="oxygen"/>
236 <fraction n="0.335" ref="silicon"/>
237 <fraction n="0.060" ref="calcium"/>
238 <fraction n="0.015" ref="sodium"/>
239 <fraction n="0.020" ref="iron"/>
240 <fraction n="0.040" ref="aluminum"/>