Belle II Software  release-05-01-25
ecltrigger.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 
4 from basf2 import *
5 
6 
7 def add_ecl_trigger(path):
8  """
9  add ecl trigger module to path
10  """
11  trgeclfam = register_module("TRGECLFAM")
12  trgeclfam.param('TCWaveform', 0) # Output TC Waveform (0 : no save, 1 : save)
13  path.add_module(trgeclfam)
14 
15  trgecl = register_module("TRGECL")
16  # Output Clustering method(0: Use only ICN, 1: ICN + Max TC)
17  trgecl.param('Clustering', 1)
18  trgecl.param('ClusterLimit', 6) # The limit # of cluster
19  path.add_module(trgecl)