Belle II Software  light-2212-foldex
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
26 from mdst import add_mdst_output
27 
28 DECAY_MODE_ID = 1110021010
29 OUTPUT_FILENAME = "../%i.dst.root" % DECAY_MODE_ID
30 
31 basf2.set_random_seed(12345) # for reproducibility
32 main = basf2.Path()
33 main.add_module('EventInfoSetter', evtNumList=[1000])
34 add_evtgen_generator(
35  main, 'signal',
36  basf2.find_file('decfiles/dec/1110021010.dec')
37 ) # signal event generation
38 add_simulation(main) # detector simulation without background overlay
39 add_reconstruction(main) # reconstruction
40 add_mdst_output(main, filename=OUTPUT_FILENAME) # mdst output
41 main.add_module('Progress')
42 basf2.process(main)
43 print(basf2.statistics)