4 from basf2
import logging, LogLevel, register_module, create_path, process
6 logging.log_level = LogLevel.ERROR
9 eventinfosetter = register_module(
'EventInfoSetter')
10 eventinfosetter.param({
'runList': [1],
'evtNumList': [1]})
13 gearbox = register_module(
'Gearbox')
14 gearbox.param(
'fileName',
'/geometry/Beast2_phase1.xml')
16 geometry = register_module(
'Geometry')
17 geometry.set_log_level(LogLevel.INFO)
23 simulation = register_module(
'FullSim')
26 materialscan = register_module(
'MaterialScan')
27 materialscan.set_log_level(LogLevel.INFO)
71 'Filename':
'MaterialScan.root',
73 'spherical.origin': [0, 0, 0],
74 'spherical.nTheta': 1000,
75 'spherical.minTheta': 17,
76 'spherical.maxTheta': 150,
77 'spherical.cosTheta':
True,
78 'spherical.nPhi': 1000,
79 'spherical.minPhi': 0,
80 'spherical.maxPhi': 360,
81 'spherical.maxDepth': 0,
82 'spherical.splitByMaterials':
False,
83 'spherical.ignored': [
'Air',
'Vacuum',
'G4_AIR',
'ColdAir'],
85 'planar.plane':
'custom',
97 'planar.maxDepth': 32,
104 'planar.splitByMaterials':
True,
105 'planar.ignored': [
'Air',
'G4_AIR',
'ColdAir'],
110 main.add_module(eventinfosetter)
111 main.add_module(gearbox)
112 main.add_module(geometry)
113 main.add_module(simulation)
114 main.add_module(materialscan)