13 This script saves all the secondary particles in MCParticles.
15 Saves 100 generic BBbar events with EvtGen + all the secondary particles created by Geant4 in MCParticles.
16 The detector simulation mixed with background, trigger simulation, and standard reconstruction is done.
20 from simulation
import add_simulation
21 from reconstruction
import add_reconstruction
22 from background
import get_background_files
24 b2.set_random_seed(12345)
27 main = b2.create_path()
30 main.add_module(
'EventInfoSetter', evtNumList=[100], runList=[1], expList=[1])
33 main.add_module(
'EvtGenInput')
36 add_simulation(main, bkgfiles=get_background_files())
39 b2.set_module_parameters(main,
"FullSim", StoreAllSecondaries=
True, SecondariesEnergyCut=1.0)
42 add_reconstruction(main)
45 main.add_module(
"RootOutput", outputFileName=
"EvtGenSimRecYesSecondaries.root")