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