Belle II Software  release-06-02-00
grltrigger.py
1 # !/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 import basf2 as b2
13 
14 
15 def add_grl_trigger(path, SimulationMode=1):
16  """
17  do match and produce the objects on grl
18  @path modules are added to this path
19  @SimulationMode 0: fast simulation 1:full simulation
20  """
21  match = b2.register_module('TRGGRLMatch')
22  match.param('SimulationMode', SimulationMode)
23  path.add_module(match)
24 
25  objects = b2.register_module('TRGGRLProjects')
26  objects.param('SimulationMode', SimulationMode)
27  path.add_module(objects)