@@ -182,17 +182,17 @@ def write_templates(system, variations):
182182 pg .write ('import math\n \n ' )
183183 pg .write ('# These are example of methods to build a mother and daughter volume.\n \n ' )
184184 pg .write (f'def build_{ system } (configuration):\n ' )
185- pg .write (' build_mother_volume (configuration)\n ' )
185+ pg .write (' build_flux_box (configuration)\n ' )
186186 pg .write (' build_target(configuration)\n \n ' )
187- pg .write ('def build_mother_volume (configuration):\n ' )
188- pg .write (' gvolume = GVolume(\' absorber \' )\n ' )
189- pg .write (' gvolume.description = \' scintillator box\' \n ' )
187+ pg .write ('def build_flux_box (configuration):\n ' )
188+ pg .write (' gvolume = GVolume(\' flux_box \' )\n ' )
189+ pg .write (' gvolume.description = \' carbon fiber box\' \n ' )
190190 pg .write (' gvolume.make_box(40.0, 40.0, 2.0)\n ' )
191191 pg .write (' gvolume.material = \' carbonFiber\' \n ' )
192192 pg .write (' gvolume.color = \' 3399FF\' \n ' )
193+ pg .write (' gvolume.style = 1\n ' )
193194 pg .write (' gvolume.digitization = \' flux\' \n ' )
194195 pg .write (' gvolume.set_position(0, 0, 100)\n ' )
195- pg .write (' gvolume.style = 1\n ' )
196196 pg .write (' gvolume.set_identifier(\' box\' , 2) # identifier for this box\n ' )
197197 pg .write (' gvolume.publish(configuration)\n \n ' )
198198
0 commit comments