Belle II Software  release-05-01-25
1_gensimrec_1110021010.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 """
5 <header>
6  <output>../1110021010.dst.root</output>
7  <contact>sam.cunliffe@desy.de</contact>
8 </header>
9 """
10 # Generates and reconstructs 1000 [B0 -> rho0 gamma] decay events for nightly
11 # validation. This script is NOT AN OFFICIAL DATA PRODUCTION script. Always
12 # always refer to the B2P project for the latest official scripts.
13 
14 DECAY_MODE_ID = 1110021010
15 OUTPUT_FILENAME = "../%i.dst.root" % DECAY_MODE_ID
16 
17 import basf2
18 from generators import add_evtgen_generator
19 from simulation import add_simulation
20 from reconstruction import add_reconstruction, add_mdst_output
21 
22 basf2.set_random_seed(12345) # for reproducibility
23 main = basf2.Path()
24 main.add_module('EventInfoSetter', evtNumList=[1000])
25 add_evtgen_generator(
26  main, 'signal',
27  basf2.find_file('decfiles/dec/1110021010.dec')
28 ) # signal event generation
29 add_simulation(main) # detector simulation without background overlay
30 add_reconstruction(main) # reconstruction
31 add_mdst_output(main, filename=OUTPUT_FILENAME) # mdst output
32 basf2.process(main)
33 print(basf2.statistics)
basf2.process
def process(path, max_event=0)
Definition: __init__.py:25