Belle II Software development
EvtGenSimRecLarge.py
1#!/usr/bin/env python3
2
3
10
11"""
12<header>
13 <contact>arul.prakash@physik.uni-muenchen.de</contact>
14 <output>EvtGenSimRecLarge.root</output>
15 <description>
16 This steering file produces 10000 generic BBbar events with
17 EvtGen, runs the detector simulation with mixed in background, and performs
18 the standard reconstruction. It will only be run for release validation in
19 order to test the software on a larger set of events to be more closer to
20 the typical runtime on a grid site.
21 </description>
22 <interval>release</interval>
23</header>
24"""
25
26from basf2 import set_random_seed, create_path, process, statistics
27from simulation import add_simulation
28from reconstruction import add_reconstruction
29from beamparameters import add_beamparameters
30from validation import statistics_plots, event_timing_plot
31from background import get_background_files
32
33set_random_seed(12345)
34
35main = create_path()
36
37# specify number of events to be generated
38main.add_module("EventInfoSetter", evtNumList=[10000], runList=[1], expList=[0])
39
40# beam parameters
41add_beamparameters(main, "Y4S")
42
43# generate BBbar events
44main.add_module("EvtGenInput")
45
46# detector and L1 trigger simulation
47add_simulation(main, bkgfiles=get_background_files())
48
49# reconstruction
50add_reconstruction(main)
51
52main.add_module('Progress')
53# memory profile
54main.add_module("Profile")
55
56# output
57main.add_module("RootOutput",
58 outputFileName="../EvtGenSimRecLarge.root",
59 branchNames=["ProfileInfo"])
60
61process(main)
62
63# Print call statistics
64print(statistics)
65
66statistics_plots(
67 "EvtGenSimRecLarge_statistics.root",
68 contact="arul.prakash@physik.uni-muenchen.de",
69 job_desc="a standard simulation and reconstruction job with generic "
70 "EvtGen events",
71 prefix="EvtGenSimRecLarge",
72)
73event_timing_plot(
74 "../EvtGenSimRecLarge.root",
75 "EvtGenSimRecLarge_statistics.root",
76 contact="arul.prakash@physik.uni-muenchen.de",
77 job_desc="a standard simulation and reconstruction job with generic "
78 "EvtGen events",
79 prefix="EvtGenSimRecLarge",
80)