13 from simulation
import add_simulation
14 from reconstruction
import add_reconstruction, add_mdst_output
15 from ROOT
import Belle2
16 import modularAnalysis
as ma
20 eventinfosetter = main.add_module(
"EventInfoSetter", evtNumList=[100], expList=[1003])
26 dec_file = os.path.abspath(sys.argv[1])
27 print(
"using following decay file: " + dec_file)
29 main.add_module(
'EvtGenInput', ParentParticle=
'Upsilon(4S)', userDECFile=dec_file)
32 displacer = register_module(
"GeneratedVertexDisplacer")
35 displacer.param(
"pdgVal", (100))
38 displacer.param(
"lifetime", (10))
42 displacer.param(
"lifetimeOption",
"exponential")
45 main.add_module(displacer)
48 ma.printMCParticles(onlyPrimaries=
False, maxLevel=-1, path=main)
54 add_reconstruction(main)
57 add_mdst_output(main, filename=
'displacerOut.root')