Belle II Software  release-06-00-14
1_gensimrec_1110021010.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 <header>
14  <output>../1110021010.dst.root</output>
15  <contact>Frank Meier; frank.meier@duke.edu</contact>
16 </header>
17 """
18 # Generates and reconstructs 1000 [B0 -> rho0 gamma] decay events for nightly
19 # validation. This script is NOT AN OFFICIAL DATA PRODUCTION script. Always
20 # always refer to the B2P project for the latest official scripts.
21 
22 import basf2
23 from generators import add_evtgen_generator
24 from simulation import add_simulation
25 from reconstruction import add_reconstruction, add_mdst_output
26 
27 DECAY_MODE_ID = 1110021010
28 OUTPUT_FILENAME = "../%i.dst.root" % DECAY_MODE_ID
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('decfiles/dec/1110021010.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 basf2.process(main)
41 print(basf2.statistics)