Belle II Software development
KLMK0LPlot.py
1#!/usr/bin/env python3
2
3
10
11"""
12<header>
13 <input>KLMK0LOutput.root</input>
14 <contact>Leo Piilonen (piilonen@vt.edu)</contact>
15 <description>Creation of KLM K0L validation plots.</description>
16</header>
17"""
18
19import basf2
20from KLMK0LPlotModule import KLMK0LPlotModule
21
22# Input.
23root_input = basf2.register_module('RootInput')
24root_input.param('inputFileName', '../KLMK0LOutput.root')
25
26# Plotting.
27klmk0lplot = KLMK0LPlotModule('KLMK0L.root', True, False)
28
29# Create main path.
30main = basf2.create_path()
31
32# Add modules to main path
33main.add_module(root_input)
34main.add_module(klmk0lplot)
35
36main.add_module('Progress')
37# Run.
38basf2.process(main)