17from generators
import add_evtgen_generator
20print(
'*** Used steering script:')
21with open(sys.argv[0])
as fin:
22 print(fin.read(), end=
"")
23print(
'*** end of the script.')
32main = b2.create_path()
35main.add_module(
"EventInfoSetter", expList=1002, runList=0, evtNumList=100)
38gearbox = b2.register_module(
'Gearbox')
39geomfile =
'/geometry/Beast2_phase2.xml'
41 gearbox.param(
'fileName', geomfile)
43main.add_module(gearbox)
44geometry = b2.register_module(
'Geometry')
45geometry.param(
'useDB',
False)
46geometry.param(
'components', [
'SVD'])
47main.add_module(geometry)
50add_evtgen_generator(path=main, finalstate=final_state, signaldecfile=dec_file)
53main.add_module(
'FullSim', StoreAllSecondaries=
True)
56main.add_module(
'SVDDigitizer')
58main.add_module(
"Progress")
59main.add_module(
'RootOutput', outputFileName=fileOUT)