18from basf2
import logging, LogLevel, create_path, process
19from optparse
import OptionParser
21parser = OptionParser()
22parser.add_option(
'-f',
'--file', dest=
'filename', default=
'ARICHMaterialScan.root')
23(options, args) = parser.parse_args()
25home = os.environ[
'BELLE2_LOCAL_DIR']
27print(
"output file :", end=
" ")
29print(
"/arich/examples/", end=
"")
30print(options.filename)
33logging.log_level = LogLevel.ERROR
39main.add_module(
"EventInfoSetter", evtNumList=[1])
42main.add_module(
"Gearbox")
45geometry = main.add_module(
"Geometry", logLevel=LogLevel.INFO, assignRegions=
True,
50main.add_module(
'FullSim')
53materialscan = main.add_module(
"MaterialScan", logLevel=LogLevel.INFO)
62 'Filename': options.filename,
66 'spherical.origin': [0, 0, 0],
68 'spherical.nTheta': 100,
70 'spherical.minTheta': 17,
72 'spherical.maxTheta': 150,
74 'spherical.cosTheta':
True,
76 'spherical.nPhi': 100,
78 'spherical.minPhi': 0,
80 'spherical.maxPhi': 360,
83 'spherical.maxDepth': 0,
85 'spherical.splitByMaterials':
False,
88 'spherical.ignored': [
'Air',
'Vacuum',
'G4_AIR',
'ColdAir'],
93 'planar.plane':
'custom',
106 'planar.maxDepth': 0,
111 'planar.minU': -120.0,
122 'planar.splitByMaterials':
True,
125 'planar.ignored': [
'Air',
'G4_AIR',
'ColdAir'],
132com =
'root -l ' + options.filename +
' ' + home +
'/arich/utility/scripts/plotARICHmaterialbudget.C'