Belle II Software development
EvtGenSimRecLarge.py
1#!/usr/bin/env python3
2
3
10
11"""
12<header>
13 <contact>giacomo.pietro@kit.edu</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
27from simulation import add_simulation
28from reconstruction import add_reconstruction
29from validation import statistics_plots, event_timing_plot
30from validationgenerators import add_evtgen_for_validation
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# generate BBbar events
41add_evtgen_for_validation(main)
42
43# detector and L1 trigger simulation
44add_simulation(main, bkgfiles=get_background_files())
45
46# reconstruction
47add_reconstruction(main)
48
49main.add_module('Progress')
50# memory profile
51main.add_module("Profile")
52
53# output
54main.add_module("RootOutput",
55 outputFileName="../EvtGenSimRecLarge.root",
56 branchNames=["ProfileInfo"])
57
58process(main, calculateStatistics=True)
59
60statistics_plots(
61 "EvtGenSimRecLarge_statistics.root",
62 contact="giacomo.pietro@kit.edu",
63 job_desc="a standard simulation and reconstruction job with generic "
64 "EvtGen events",
65 prefix="EvtGenSimRecLarge",
66)
67event_timing_plot(
68 "../EvtGenSimRecLarge.root",
69 "EvtGenSimRecLarge_statistics.root",
70 contact="giacomo.pietro@kit.edu",
71 job_desc="a standard simulation and reconstruction job with generic "
72 "EvtGen events",
73 prefix="EvtGenSimRecLarge",
74)