17 eventInfoSetterModule = b2.register_module(
'EventInfoSetter')
18 eventInfoSetterModule.param({
'evtNumList': [10],
'runList': [1],
21 progressModule = b2.register_module(
'Progress')
23 particleGunModule = b2.register_module(
'ParticleGun')
24 particleGunModule.param({
25 'pdgCodes': [13, -13],
28 'momentumGeneration':
'uniform',
29 'momentumParams': [0.6, 1.4],
30 'thetaGeneration':
'uniform',
31 'thetaParams': [17., 150.],
34 rootOutputModule = b2.register_module(
'RootOutput')
35 rootOutputModule.param({
'outputFileName':
'mc_gun.root'})
38 main = b2.create_path()
40 main.add_module(eventInfoSetterModule)
41 main.add_module(progressModule)
43 main.add_module(particleGunModule)
45 components = [
'MagneticFieldConstant4LimitedRCDC',
'BeamPipe',
'PXD',
'SVD',
50 main.add_module(rootOutputModule)
def add_simulation(path, components=None, bkgfiles=None, bkgOverlay=True, forceSetPXDDataReduction=False, usePXDDataReduction=True, cleanupPXDDataReduction=True, generate_2nd_cdc_hits=False, simulateT0jitter=True, isCosmics=False, FilterEvents=False, usePXDGatedMode=False, skipExperimentCheckForBG=False, save_slow_pions_in_mc=False)