Belle II Software development
EventT0Validation.py
1#!/usr/bin/env python3
2
3
10
11"""
12<header>
13 <input>EvtGenSimRec.root</input>
14 <output>EventT0Validation.root</output>
15 <contact>Christian Wessel (christian.wessel@desy.de)</contact>
16 <description>
17 Check the EventT0 performance
18 </description>
19</header>
20"""
21
22import basf2
23
24INPUT_FILENAME = "../EvtGenSimRec.root"
25EventT0_Validation_Name = "EventT0Validation.root"
26
27
28def run():
29 """
30 Run the EventT0 validation.
31 """
32 basf2.set_random_seed(1509)
33 path = basf2.create_path()
34
35 path.add_module('RootInput', inputFileName=INPUT_FILENAME)
36 path.add_module('Gearbox')
37
38 path.add_module('EventT0Validation', RootFileName=EventT0_Validation_Name)
39
40 path.add_module('Progress')
41
42 print(path)
43 basf2.process(path)
44 print(basf2.statistics)
45
46
47if __name__ == '__main__':
48 run()