Belle II Software  release-06-00-14
07_trackingEfficiency_createData.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
18 
19 """
20 <header>
21  <output>trackingEfficiency_pt_0.60GeV.root</output>
22  <contact>software-tracking@belle2.org</contact>
23  <description>Create events with 10 muon tracks with fixed pt value.</description>
24 </header>
25 """
26 
27 import basf2 as b2
28 from tracking.validation.tracking_efficiency_helpers import run_simulation, run_reconstruction, get_generated_pt_value
29 
30 b2.set_random_seed(123457)
31 
32 pt_value = get_generated_pt_value(4)
33 
34 output_filename = '../trackingEfficiency_pt_%.2fGeV.root' % pt_value
35 
36 print(output_filename)
37 
38 path = b2.create_path()
39 
40 run_simulation(path, pt_value)
41 run_reconstruction(path, output_filename)
42 
43 b2.process(path)