11from basf2
import logging, LogLevel, register_module, create_path, process
13logging.log_level = LogLevel.ERROR
16eventinfosetter = register_module(
'EventInfoSetter')
17eventinfosetter.param({
'runList': [1],
'evtNumList': [1]})
20gearbox = register_module(
'Gearbox')
21gearbox.param(
'fileName',
'/geometry/Beast2_phase1.xml')
23geometry = register_module(
'Geometry')
24geometry.set_log_level(LogLevel.INFO)
30simulation = register_module(
'FullSim')
33materialscan = register_module(
'MaterialScan')
34materialscan.set_log_level(LogLevel.INFO)
78 'Filename':
'MaterialScan.root',
80 'spherical.origin': [0, 0, 0],
81 'spherical.nTheta': 1000,
82 'spherical.minTheta': 17,
83 'spherical.maxTheta': 150,
84 'spherical.cosTheta':
True,
85 'spherical.nPhi': 1000,
86 'spherical.minPhi': 0,
87 'spherical.maxPhi': 360,
88 'spherical.maxDepth': 0,
89 'spherical.splitByMaterials':
False,
90 'spherical.ignored': [
'Air',
'Vacuum',
'G4_AIR',
'ColdAir'],
92 'planar.plane':
'custom',
104 'planar.maxDepth': 32,
106 'planar.minU': -50.0,
111 'planar.splitByMaterials':
True,
112 'planar.ignored': [
'Air',
'G4_AIR',
'ColdAir'],
117main.add_module(eventinfosetter)
118main.add_module(gearbox)
119main.add_module(geometry)
120main.add_module(simulation)
121main.add_module(materialscan)