15 from simulation
import add_simulation
16 from reconstruction
import add_reconstruction
17 from mdst
import add_mdst_output
18 import modularAnalysis
as ma
20 main = b2.create_path()
22 eventinfosetter = main.add_module(
"EventInfoSetter", evtNumList=[100], expList=[1003])
28 dec_file = os.path.abspath(sys.argv[1])
29 print(
"using following decay file: " + dec_file)
31 main.add_module(
'EvtGenInput', ParentParticle=
'Upsilon(4S)', userDECFile=dec_file)
34 displacer = b2.register_module(
"GeneratedVertexDisplacer")
37 displacer.param(
"pdgVal", (100))
40 displacer.param(
"lifetime", (10))
44 displacer.param(
"lifetimeOption",
"exponential")
47 main.add_module(displacer)
50 ma.printMCParticles(onlyPrimaries=
False, maxLevel=-1, path=main)
56 add_reconstruction(main)
59 add_mdst_output(main, filename=
'displacerOut.root')