Belle II Software
development
test0_GenericB_GENSIMRECtoDST.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<output>../GenericB_GENSIMRECtoDST.dst.root</output>
14
<contact>Frank Meier; frank.meier
@duke.edu
</contact>
15
</header>
16
"""
17
18
import basf2
19
from simulation import add_simulation
20
from reconstruction import add_reconstruction
21
from beamparameters import add_beamparameters
22
23
basf2.set_random_seed(12345)
24
25
main = basf2.create_path()
26
27
# specify number of events to be generated
28
eventinfosetter = basf2.register_module('EventInfoSetter')
29
eventinfosetter.param('evtNumList', [1000])
30
eventinfosetter.param('runList', [0])
31
eventinfosetter.param('expList', [0])
32
main.add_module(eventinfosetter)
33
34
# set the BeamParameters for running at Y(4S)
35
beamparameters = add_beamparameters(main, "Y4S")
36
basf2.print_params(beamparameters)
37
38
# generate BBbar events
39
main.add_module('EvtGenInput')
40
41
# detector simulation, digitisers
and
clusterisers
42
add_simulation(main)
43
44
# reconstruction
45
add_reconstruction(main)
46
47
# dst output
48
output = basf2.register_module(
'RootOutput'
)
49
output.param(
'outputFileName'
,
'../GenericB_GENSIMRECtoDST.dst.root'
)
50
main.add_module(output)
51
52
main.add_module(
'Progress'
)
53
# Go!
54
basf2.process(main)
55
56
# Print call statistics
57
print(basf2.statistics)
analysis
validation
test0_GenericB_GENSIMRECtoDST.py
Generated on Fri Nov 8 2024 02:33:11 for Belle II Software by
1.9.6