12This script saves Bremsstrahlung photons in MCParticles.
14Saves 100 generic BBbar events with EvtGen + Bremsstrahlungi photons created by Geant4 in MCParticles.
15The corresponding secondaryPhysicsProcess ID is 3, which is defined as fBremsstrahlung in G4EmProcessSubType.h.
16The detector simulation mixed with background, trigger simulation, and standard reconstruction are done.
20from simulation
import add_simulation
21from reconstruction
import add_reconstruction
22from background
import get_background_files
24b2.set_random_seed(12345)
27main = b2.create_path()
30main.add_module(
'EventInfoSetter', evtNumList=[100], runList=[1], expList=[1])
33main.add_module(
'EvtGenInput')
36add_simulation(main, bkgfiles=get_background_files())
39b2.set_module_parameters(main,
"FullSim", StoreBremsstrahlungPhotons=
True, BremsstrahlungPhotonsEnergyCut=10.0)
42add_reconstruction(main)
45main.add_module(
"RootOutput", outputFileName=
"EvtGenSimRecYesBrems.root")