28mypath = b2.create_path()
30mypath.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=num_events)
35pairgen = b2.register_module(
'PairGen')
36pairgen.param(
'pdgCode', 99666)
37pairgen.param(
'saveBoth',
True)
38mypath.add_module(pairgen)
41GEARBOX = b2.register_module(
'Gearbox')
43GEOMETRY = b2.register_module(
'Geometry')
45 'components': [
'BeamPipe',
'MagneticField',
'PXD',
'SVD',
'CDC',
'ECL',
'ARICH',
'TOP',
'KLM'],
48GEOMETRY.param(GEOMETRY_param)
51g4sim = b2.register_module(
'FullSim')
52g4sim.param(
'RegisterMonopoles',
True)
53g4sim.param(
'MonopoleMagCharge', mag)
54g4sim.param(
'trajectoryStore', 1)
57PXDDIGI = b2.register_module(
'PXDDigitizer')
59 'Digits':
'PXDDigits',
60 'PoissonSmearing':
True,
61 'ElectronicEffects':
True
63PXDDIGI.param(PXDDIGI_param)
75pxdClusterizer = b2.register_module(
'PXDClusterizer')
78output = b2.register_module(
'RootOutput')
79output.param(
'outputFileName',
'mplPair_1GeV_test.root')
83progress = b2.register_module(
'ProgressBar')
84mypath.add_module(GEARBOX)
85mypath.add_module(GEOMETRY)
86mypath.add_module(g4sim)
87mypath.add_module(PXDDIGI)
88mypath.add_module(pxdClusterizer)
90mypath.add_module(output)
91mypath.add_module(progress)
def add_particle(name, pdgCode, mass, width, charge, spin, max_width=None, lifetime=0, pythiaID=0, define_anti_particle=False)