Belle II Software
light-2406-ragdoll
1_gensimrec_1110021010.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<output>../1110021010.dst.root</output>
14
<contact>Frank Meier; frank.meier
@duke.edu
</contact>
15
</header>
16
"""
17
# Generates and reconstructs 1000 [B0 -> rho0 gamma] decay events for nightly
18
# validation. This script is NOT AN OFFICIAL DATA PRODUCTION script. Always
19
# always refer to the B2P project for the latest official scripts.
20
21
import basf2
22
from generators import add_evtgen_generator
23
from simulation import add_simulation
24
from reconstruction import add_reconstruction
25
from mdst import add_mdst_output
26
27
DECAY_MODE_ID = 1110021010
28
OUTPUT_FILENAME = f"../{DECAY_MODE_ID}.dst.root"
29
30
basf2.set_random_seed(12345)
# for reproducibility
31
main = basf2.Path()
32
main.add_module(
'EventInfoSetter'
, evtNumList=[1000])
33
add_evtgen_generator(
34
main,
'signal'
,
35
basf2.find_file(f
'decfiles/dec/{DECAY_MODE_ID}.dec'
)
36
)
# signal event generation
37
add_simulation(main)
# detector simulation without background overlay
38
add_reconstruction(main)
# reconstruction
39
add_mdst_output(main, filename=OUTPUT_FILENAME)
# mdst output
40
main.add_module(
'Progress'
)
41
basf2.process(main)
42
print(basf2.statistics)
analysis
validation
1_gensimrec_1110021010.py
Generated on Tue Jul 9 2024 23:27:37 for Belle II Software by
1.9.6