8 #Specific H,W,L of volTPC
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"/>
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"/>
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");
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;
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"/>
process_name opflash particleana ie ie ie z
then source grid fermiapp products dune setup_dune_fermiapp sh exit else echo No setup file found exit fi setup
process_name opflash particleana ie x
process_name can override from command line with o or output proton mvapid_weights muon_all_BDT weights xml
do one_file $F done echo for F in find $TOP name CMakeLists txt print
process_name opflash particleana ie ie y
for($it=0;$it< $RaceTrack_number;$it++)
process_name largeant stream1 can override from command line with o or output physics producers generator N
print OUTPUT<< EOF;< setup name="Default"version="1.0">< worldref="volWorld"/></setup ></gdml > EOF close(OUTPUT)
std::string sub(const std::string &a, const std::string &b)
open(RACETRACK) or die("Could not open file $RACETRACK for writing")