Belle II Software
release-08-01-10
DQMAnalysisKLM.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
import
basf2
13
14
# Set log level.
15
basf2.set_log_level(basf2.LogLevel.INFO)
16
17
# Create main path.
18
main = basf2.create_path()
19
20
# Input module.
21
main.add_module(
'DQMHistAnalysisInputRootFile'
,
22
Experiment=0,
23
RunList=[0],
24
EventsList=[1],
25
EventInterval=1,
26
FileList=[
'KLMDQM.root'
],
27
SelectHistograms=[
'KLM/*'
,
'DAQ/*'
])
28
29
main.add_module(
"DQMHistAutoCanvas"
)
# Plot all Histo from Input
30
31
# KLM DQM analysis module.
32
main.add_module(
'DQMHistAnalysisKLM'
)
33
34
# Output module.
35
main.add_module(
'DQMHistAnalysisOutputFile'
,
36
HistoFile=
'KLMDQMAnalysed.root'
,
37
SaveHistos=
False
,
38
SaveCanvases=
True
)
39
40
# Process main path.
41
basf2.process(main)
42
43
# Print modules' statistics.
44
print(basf2.statistics)
dqm
analysis
examples
DQMAnalysisKLM.py
Generated on Mon Sep 23 2024 14:01:35 for Belle II Software by
1.9.1