Belle II Software  release-08-01-10
dqm_delta_input_test.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 
13 import basf2 as b2
14 import b2test_utils as b2tu
15 
16 
17 with b2tu.clean_working_directory():
18  # Set the log level to show only error and fatal messages
19  # b2.set_log_level(b2.LogLevel.ERROR)
20  # b2.set_log_level(b2.LogLevel.INFO)
21  b2.set_log_level(b2.LogLevel.DEBUG)
22  b2.set_debug_level(20)
23 
24  # Create main path
25  main = b2.create_path()
26 
27  # Modules
28  main.add_module('DQMHistAnalysisInputTest', Events=30, ConfigFiles=[
29  b2.find_file("dqm/tests/test1.json"), b2.find_file("dqm/tests/test2.json")])
30  main.add_module('DQMHistAnalysisDeltaTest', histogramDirectoryName="test", histogramName="testHist2")
31 
32  # Process all events
33  b2.process(main)