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