Belle II Software  release-08-01-10
runEventT0DQM.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
24 
25 import basf2 as b2
26 
27 # main path
28 main = b2.create_path()
29 
30 # read in a sample
31 input_file = 'cdst_hadronEvents.root'
32 main.add_module("RootInput", inputFileName=input_file)
33 
34 # register the HistoManager and specify output file
35 main.add_module("HistoManager", histoFileName="EventT0DQM.root")
36 
37 # run the DQM module
38 eventT0DQMmodule = main.add_module("EventT0DQM")
39 eventT0DQMmodule.set_log_level(b2.LogLevel.INFO) # LogLevel.DEBUG / LogLevel.INFO
40 eventT0DQMmodule.set_debug_level(21)
41 
42 # == Show progress
43 main.add_module('Progress')
44 
45 # Process events
46 b2.process(main)
47 
48 print(b2.statistics)