16basf2datadir = os.path.join(os.environ.get(
'BELLE2_LOCAL_DIR',
None),
'data')
19particlegun = b2.register_module(
'ParticleGun')
22particlegun.param(
'randomSeed', 346)
24particlegun.param(
'pdgCodes', [11])
25particlegun.param(
'nTracks', 1)
26particlegun.param(
'momentumGeneration',
'uniformPt')
28particlegun.param(
'momentumParams', [1.0, 1.0])
29particlegun.param(
'thetaGeneration',
'uniform')
31particlegun.param(
'thetaParams', [45, 45])
32particlegun.param(
'phiGeneration',
'uniform')
33particlegun.param(
'phiParams', [0, 360])
34particlegun.param(
'vertexGeneration',
'fixed')
35particlegun.param(
'vertexGeneration',
'normal')
36particlegun.param(
'xVertexParams', [0, 0.0])
37particlegun.param(
'yVertexParams', [0, 0.0])
38particlegun.param(
'zVertexParams', [0, 0.0])
41eventinfosetter = b2.register_module(
'EventInfoSetter')
42eventinfoprinter = b2.register_module(
'Progress')
44paramloader = b2.register_module(
'Gearbox')
45geobuilder = b2.register_module(
'Geometry')
47g4sim = b2.register_module(
'FullSim')
48cdcdigitizer = b2.register_module(
'CDCDigitizer')
49out = b2.register_module(
'SimpleOutput')
50cdctrg = b2.register_module(
"TRGCDC")
51tsstream = b2.register_module(
"TRGCDCTSStream")
55eventinfosetter.param({
'EvtNumList': [10],
'RunList': [1]})
58cdctrg.param(
'ConfigFile',
59 os.path.join(basf2datadir,
60 "trg/TRGCDCConfig_0_20101111_1051.dat"))
61cdctrg.param(
'DebugLevel', 0)
62cdctrg.param(
'CurlBackStop', 1)
63cdctrg.param(
'HoughFinderPerfect', 1)
66tsstream.param(
'DebugLevel', 2)
67tsstream.param(
'Mode', 0)
68tsstream.param(
'OutputStreamFile',
"TRGCDCTSStream.dat")
72mcparticleprinter = b2.register_module(
'PrintMCParticles')
73mcparticleprinter.param(
'maxLevel', -1)
76geobuilder.param(
'Components', [
'MagneticField',
'CDC'
80param_cdcdigi = {
'Fraction': 1,
'Resolution1': 0.00,
'Resolution2': 0.0}
81cdcdigitizer.param(param_cdcdigi)
84main = b2.create_path()
87main.add_module(eventinfosetter)
88main.add_module(eventinfoprinter)
89main.add_module(paramloader)
90main.add_module(geobuilder)
91main.add_module(particlegun)
92main.add_module(mcparticleprinter)
94main.add_module(cdcdigitizer)
95main.add_module(cdctrg)
96main.add_module(tsstream)