Belle II Software  release-05-01-25
EKLMADC.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 # EKLM ADC study.
5 
6 import basf2
7 
8 # Set the log level to show only error and fatal messages
9 basf2.set_log_level(basf2.LogLevel.WARNING)
10 
11 # EventInfoSetter - generate event meta data
12 eventinfosetter = basf2.register_module('EventInfoSetter')
13 eventinfosetter.param('evtNumList', [1])
14 
15 # XML reader
16 xmldata = basf2.register_module('Gearbox')
17 
18 # EKLM ADC
19 eklmadc = basf2.register_module('EKLMADC')
20 eklmadc.param('Mode', 'Shape')
21 eklmadc.param('OutputFile', 'FPGA.root')
22 # For generation of the histograms for strips.
23 # eklmadc.param('Mode', 'Strips')
24 # eklmadc.param('OutputFile', 'EKLMADC.root')
25 
26 # Create main path
27 main = basf2.create_path()
28 
29 # Add modules to main path
30 main.add_module(eventinfosetter)
31 main.add_module(xmldata)
32 main.add_module(eklmadc)
33 
34 # Run
35 basf2.process(main)
basf2.process
def process(path, max_event=0)
Definition: __init__.py:25