13 This script saves Bremsstrahlung photons in MCParticles.
15 Saves 100 generic BBbar events with EvtGen + Bremsstrahlungi photons created by Geant4 in MCParticles.
16 The corresponding secondaryPhysicsProcess ID is 3, which is defined as fBremsstrahlung in G4EmProcessSubType.h.
17 The detector simulation mixed with background, trigger simulation, and standard reconstruction are done.
21 from simulation
import add_simulation
22 from reconstruction
import add_reconstruction
23 from background
import get_background_files
25 b2.set_random_seed(12345)
28 main = b2.create_path()
31 main.add_module(
'EventInfoSetter', evtNumList=[100], runList=[1], expList=[1])
34 main.add_module(
'EvtGenInput')
37 add_simulation(main, bkgfiles=get_background_files())
40 b2.set_module_parameters(main,
"FullSim", StoreBremsstrahlungPhotons=
True, BremsstrahlungPhotonsEnergyCut=10.0)
43 add_reconstruction(main)
46 main.add_module(
"RootOutput", outputFileName=
"EvtGenSimRecYesBrems.root")