4 from basf2
import logging, LogLevel, create_path, process
6 logging.log_level = LogLevel.ERROR
12 main.add_module(
"EventInfoSetter", evtNumList=[1])
15 main.add_module(
"Gearbox")
21 geometry = main.add_module(
"Geometry", logLevel=LogLevel.INFO, assignRegions=
True,
22 components=[
'BeamPipe',
'PXD',
'SVD'])
26 main.add_module(
'FullSim')
29 materialscan = main.add_module(
"MaterialScan", logLevel=LogLevel.INFO)
38 'Filename':
'MaterialScan.root',
42 'spherical.origin': [0, 0, 0],
44 'spherical.nTheta': 100,
46 'spherical.minTheta': 17,
48 'spherical.maxTheta': 150,
50 'spherical.cosTheta':
True,
52 'spherical.nPhi': 100,
54 'spherical.minPhi': 0,
56 'spherical.maxPhi': 360,
59 'spherical.maxDepth': 0,
61 'spherical.splitByMaterials':
False,
64 'spherical.ignored': [
'Air',
'Vacuum',
'G4_AIR',
'ColdAir'],
69 'planar.plane':
'custom',
82 'planar.maxDepth': 32,
96 'planar.splitByMaterials':
True,
99 'planar.ignored': [
'Air',
'G4_AIR',
'ColdAir'],