20 from simulation
import add_simulation
21 from reconstruction
import add_reconstruction, add_mdst_output
22 from ROOT
import Belle2
23 import modularAnalysis
as ma
27 eventinfosetter = main.add_module(
"EventInfoSetter", evtNumList=[100], expList=[1003])
33 dec_file = os.path.abspath(sys.argv[1])
34 print(
"using following decay file: " + dec_file)
36 main.add_module(
'EvtGenInput', ParentParticle=
'Upsilon(4S)', userDECFile=dec_file)
39 displacer = register_module(
"GeneratedVertexDisplacer")
42 displacer.param(
"pdgVal", (100))
45 displacer.param(
"lifetime", (10))
49 displacer.param(
"lifetimeOption",
"exponential")
52 main.add_module(displacer)
55 ma.printMCParticles(onlyPrimaries=
False, maxLevel=-1, path=main)
61 add_reconstruction(main)
64 add_mdst_output(main, filename=
'displacerOut.root')