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