Belle II Software development
tsim_grl_gdl.py
1#!/usr/bin/env python3
2
3
10
11# The example of running grl and gdl of L1 trigger, conjunction with tsim_subdetectors.py
12# basf2 tsim_grl_gdl.py -i inputrootfile -o outputrootfile
13# the inputrootfile should be the output file of tsim_subdetectors.py
14
15import basf2 as b2
16from L1trigger import add_grl_gdl_tsim
17
18main = b2.create_path()
19main.add_module('RootInput')
20# add trigger simlation of sub detectors (CDC, ECL, and bKLM are included currently)
21add_grl_gdl_tsim(main)
22
23# output
24main.add_module('RootOutput')
25
26
27# main
28b2.process(main)
29print(b2.statistics)
30# ===<END>