Belle II Software  release-05-01-25
tsim_grl_gdl.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 # The example of running grl and gdl of L1 trigger, conjunction with tsim_subdetectors.py
5 # basf2 tsim_grl_gdl.py -i inputrootfile -o outputrootfile
6 # the inputrootfile should be the output file of tsim_subdetectors.py
7 
8 import os
9 from basf2 import *
10 from L1trigger import *
11 import glob
12 
13 main = create_path()
14 main.add_module('RootInput')
15 # add trigger simlation of sub detectors (CDC, ECL, and bKLM are included currently)
16 add_grl_gdl_tsim(main)
17 
18 # output
19 main.add_module('RootOutput')
20 
21 
22 # main
23 process(main)
24 print(statistics)
25 # ===<END>