29 mypath = b2.create_path()
31 mypath.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=num_events)
36 pairgen = b2.register_module(
'PairGen')
37 pairgen.param(
'pdgCode', 99666)
38 pairgen.param(
'saveBoth',
True)
39 mypath.add_module(pairgen)
42 GEARBOX = b2.register_module(
'Gearbox')
44 GEOMETRY = b2.register_module(
'Geometry')
46 'components': [
'BeamPipe',
'MagneticField',
'PXD',
'SVD',
'CDC',
'ECL',
'ARICH',
'TOP',
'KLM'],
49 GEOMETRY.param(GEOMETRY_param)
52 g4sim = b2.register_module(
'FullSim')
53 g4sim.param(
'RegisterMonopoles',
True)
54 g4sim.param(
'MonopoleMagCharge', mag)
55 g4sim.param(
'trajectoryStore', 1)
58 PXDDIGI = b2.register_module(
'PXDDigitizer')
60 'Digits':
'PXDDigits',
61 'PoissonSmearing':
True,
62 'ElectronicEffects':
True
64 PXDDIGI.param(PXDDIGI_param)
76 pxdClusterizer = b2.register_module(
'PXDClusterizer')
79 output = b2.register_module(
'RootOutput')
80 output.param(
'outputFileName',
'mplPair_1GeV_test.root')
84 progress = b2.register_module(
'ProgressBar')
85 mypath.add_module(GEARBOX)
86 mypath.add_module(GEOMETRY)
87 mypath.add_module(g4sim)
88 mypath.add_module(PXDDIGI)
89 mypath.add_module(pxdClusterizer)
91 mypath.add_module(output)
92 mypath.add_module(progress)
def add_particle(name, pdgCode, mass, width, charge, spin, max_width=None, lifetime=0, pythiaID=0, define_anti_particle=False)