18 from generators
import add_evtgen_generator
21 print(
'*** Used steering script:')
22 with open(sys.argv[0],
'r')
as fin:
23 print(fin.read(), end=
"")
24 print(
'*** end of the script.')
33 main = b2.create_path()
36 main.add_module(
"EventInfoSetter", expList=1002, runList=0, evtNumList=100)
39 gearbox = b2.register_module(
'Gearbox')
40 geomfile =
'/geometry/Beast2_phase2.xml'
41 if geomfile !=
'None':
42 gearbox.param(
'fileName', geomfile)
44 main.add_module(gearbox)
45 geometry = b2.register_module(
'Geometry')
46 geometry.param(
'useDB',
False)
47 geometry.param(
'components', [
'SVD'])
48 main.add_module(geometry)
51 add_evtgen_generator(path=main, finalstate=final_state, signaldecfile=dec_file)
54 main.add_module(
'FullSim', StoreAllSecondaries=
True)
57 main.add_module(
'SVDDigitizer')
59 main.add_module(
"Progress")
60 main.add_module(
'RootOutput', outputFileName=fileOUT)