Belle II Software  release-06-01-15
ecltrigger.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 import basf2 as b2
13 
14 
15 def add_ecl_trigger(path):
16  """
17  add ecl trigger module to path
18  """
19  trgeclfam = b2.register_module("TRGECLFAM")
20  # Output TC Waveform (0 : no save, 1 : save)
21  trgeclfam.param('TCWaveform', 0)
22  # save only measured TC data(=0) or both measured and true TC data(=1)
23  trgeclfam.param('FAMAnaTable', 0)
24  #
25  path.add_module(trgeclfam)
26  #
27  trgecl = b2.register_module("TRGECL")
28  # trgecl.logging.log_level = LogLevel.DEBUG
29 
30  # Output Clustering method(0: Use only ICN, 1: ICN + Max TC)
31  trgecl.param('Clustering', 1)
32  # The limit # of cluster in clustering logic
33  trgecl.param('ClusterLimit', 6)
34 
35  # Theta ID region(low and high) of 3DBhabhaVetoInTrack
36  trgecl.param('3DBhabhaVetoInTrackThetaRegion', [3, 15])
37  # taub2b two cluster angle selection in CM (degree)
38  # (phi low, phi high, theta low, theta high)
39  trgecl.param('Taub2bAngleCut', [110, 250, 130, 230])
40  # taub2b total energy cut in lab (GeV)
41  trgecl.param('Taub2bEtotCut', 7.0)
42  # taub2b cluster energy selection in lab (GeV) : E(CL1) and E(CL2)
43  trgecl.param('Taub2bClusterECut1', 1.9)
44  trgecl.param('Taub2bClusterECut2', 999.0)
45 
46  # taub2b2 two cluster angle selection in CM (degree)
47  # (phi low, phi high, theta low, theta high)
48  trgecl.param('Taub2b2AngleCut', [120, 240, 140, 220])
49  # taub2b2 total energy cut in lab (GeV)
50  trgecl.param('Taub2b2EtotCut', 7.0)
51  # taub2b2 cluster energy cut in lab (GeV) for cluseter in endcap
52  trgecl.param('Taub2b2CLEEndcapCut', 3.0)
53  # taub2b2 cluster energy selection in lab (GeV)
54  trgecl.param('Taub2b2CLECut', 0.162)
55 
56  # angle selection for addition Bhabha veto
57  trgecl.param('3DBhabhaAddAngleCut', [150, 210, 160, 200])
58  #
59  path.add_module(trgecl)