12 from basf2
import logging, LogLevel, register_module, create_path, process
14 logging.log_level = LogLevel.ERROR
17 eventinfosetter = register_module(
'EventInfoSetter')
18 eventinfosetter.param({
'runList': [1],
'evtNumList': [1]})
21 gearbox = register_module(
'Gearbox')
22 gearbox.param(
'fileName',
'/geometry/Beast2_phase1.xml')
24 geometry = register_module(
'Geometry')
25 geometry.set_log_level(LogLevel.INFO)
31 simulation = register_module(
'FullSim')
34 materialscan = register_module(
'MaterialScan')
35 materialscan.set_log_level(LogLevel.INFO)
79 'Filename':
'MaterialScan.root',
81 'spherical.origin': [0, 0, 0],
82 'spherical.nTheta': 1000,
83 'spherical.minTheta': 17,
84 'spherical.maxTheta': 150,
85 'spherical.cosTheta':
True,
86 'spherical.nPhi': 1000,
87 'spherical.minPhi': 0,
88 'spherical.maxPhi': 360,
89 'spherical.maxDepth': 0,
90 'spherical.splitByMaterials':
False,
91 'spherical.ignored': [
'Air',
'Vacuum',
'G4_AIR',
'ColdAir'],
93 'planar.plane':
'custom',
105 'planar.maxDepth': 32,
107 'planar.minU': -50.0,
112 'planar.splitByMaterials':
True,
113 'planar.ignored': [
'Air',
'G4_AIR',
'ColdAir'],
118 main.add_module(eventinfosetter)
119 main.add_module(gearbox)
120 main.add_module(geometry)
121 main.add_module(simulation)
122 main.add_module(materialscan)