Belle II Software development
runCDCDedxDQM.py
1#!/usr/bin/env python3
2
3
10
11
20
21import basf2 as b2
22
23# main path
24main = b2.create_path()
25
26# read in a sample
27input_file = 'B2Electrons.root'
28main.add_module("RootInput", inputFileName=input_file)
29
30# register the HistoManager and specify output file
31main.add_module("HistoManager", histoFileName="CDCDedxDQM.root")
32
33# run the DQM module
34main.add_module("CDCDedxDQM")
35
36# Process events
37b2.process(main)