14from simulation
import add_simulation
15from reconstruction
import add_reconstruction
16from mdst
import add_mdst_output
17import modularAnalysis
as ma
19main = b2.create_path()
21eventinfosetter = main.add_module(
"EventInfoSetter", evtNumList=[100], expList=[1003])
27 dec_file = os.path.abspath(sys.argv[1])
28 print(
"using following decay file: " + dec_file)
30main.add_module(
'EvtGenInput', ParentParticle=
'Upsilon(4S)', userDECFile=dec_file)
33displacer = b2.register_module(
"GeneratedVertexDisplacer")
36displacer.param(
"pdgVal", (100))
39displacer.param(
"lifetime", (10))
43displacer.param(
"lifetimeOption",
"exponential")
46main.add_module(displacer)
49ma.printMCParticles(onlyPrimaries=
False, maxLevel=-1, path=main)
55add_reconstruction(main)
58add_mdst_output(main, filename=
'displacerOut.root')