12This script saves all the secondary particles in MCParticles.
14Saves 100 generic BBbar events with EvtGen + all the secondary particles created by Geant4 in MCParticles.
15The detector simulation mixed with background, trigger simulation, and standard reconstruction is done.
19from simulation
import add_simulation
20from reconstruction
import add_reconstruction
21from background
import get_background_files
23b2.set_random_seed(12345)
26main = b2.create_path()
29main.add_module(
'EventInfoSetter', evtNumList=[100], runList=[1], expList=[1])
32main.add_module(
'EvtGenInput')
35add_simulation(main, bkgfiles=get_background_files())
38b2.set_module_parameters(main,
"FullSim", StoreAllSecondaries=
True, SecondariesEnergyCut=1.0)
41add_reconstruction(main)
44main.add_module(
"RootOutput", outputFileName=
"EvtGenSimRecYesSecondaries.root")