14 from basf2
import logging, LogLevel, create_path, process
15 from optparse
import OptionParser
17 parser = OptionParser()
18 parser.add_option(
'-f',
'--file', dest=
'filename', default=
'ARICHMaterialScan.root')
19 (options, args) = parser.parse_args()
21 home = os.environ[
'BELLE2_LOCAL_DIR']
23 print(
"output file :", end=
" ")
25 print(
"/arich/examples/", end=
"")
26 print(options.filename)
29 logging.log_level = LogLevel.ERROR
35 main.add_module(
"EventInfoSetter", evtNumList=[1])
38 main.add_module(
"Gearbox")
41 geometry = main.add_module(
"Geometry", logLevel=LogLevel.INFO, assignRegions=
True,
46 main.add_module(
'FullSim')
49 materialscan = main.add_module(
"MaterialScan", logLevel=LogLevel.INFO)
58 'Filename': options.filename,
62 'spherical.origin': [0, 0, 0],
64 'spherical.nTheta': 100,
66 'spherical.minTheta': 17,
68 'spherical.maxTheta': 150,
70 'spherical.cosTheta':
True,
72 'spherical.nPhi': 100,
74 'spherical.minPhi': 0,
76 'spherical.maxPhi': 360,
79 'spherical.maxDepth': 0,
81 'spherical.splitByMaterials':
False,
84 'spherical.ignored': [
'Air',
'Vacuum',
'G4_AIR',
'ColdAir'],
89 'planar.plane':
'custom',
102 'planar.maxDepth': 0,
107 'planar.minU': -120.0,
118 'planar.splitByMaterials':
True,
121 'planar.ignored': [
'Air',
'G4_AIR',
'ColdAir'],
128 com =
'root -l ' + options.filename +
' ' + home +
'/arich/utility/scripts/plotARICHmaterialbudget.C'