Belle II Software development
ecltrigger.py
1#!/usr/bin/env python
2
3
10
11import basf2 as b2
12
13
14def add_ecl_trigger(path, SourceOfTC=3):
15 """
16 add ecl trigger module to path
17 """
18 trgeclfam = b2.register_module("TRGECLFAM")
19 # Output TC Waveform (0 : no save, 1 : save)
20 trgeclfam.param('TCWaveform', 0)
21 # save only measured TC data(=0) or both measured and true TC data(=1)
22 trgeclfam.param('FAMAnaTable', 0)
23 # select source of TC data (1=ECLHit, 2=ECLSimHit, 3=ECLHit+TRGECLBGTCHit)
24 # ("1:=ECLHit" is used for signal w/o bkg, and real time background monitor)
25 trgeclfam.param('SourceOfTC', SourceOfTC)
26 #
27 path.add_module(trgeclfam)
28 #
29 trgecl = b2.register_module("TRGECL")
30 # trgecl.logging.log_level = LogLevel.DEBUG
31
32 # Output Clustering method(0: Use only ICN, 1: ICN + Max TC)
33 trgecl.param('Clustering', 1)
34 # The limit # of cluster in clustering logic
35 trgecl.param('ClusterLimit', 6)
36
37 # Theta ID region(low and high) of 3DBhabhaVetoInTrack
38 trgecl.param('3DBhabhaVetoInTrackThetaRegion', [3, 15])
39 # taub2b two cluster angle selection in CM (degree)
40 # (phi low, phi high, theta low, theta high)
41 trgecl.param('Taub2bAngleCut', [110, 250, 130, 230])
42 # taub2b total energy cut in lab (GeV)
43 trgecl.param('Taub2bEtotCut', 7.0)
44 # taub2b cluster energy selection in lab (GeV) : E(CL1) and E(CL2)
45 trgecl.param('Taub2bClusterECut1', 1.9)
46 trgecl.param('Taub2bClusterECut2', 999.0)
47
48 # taub2b2 two cluster angle selection in CM (degree)
49 # (phi low, phi high, theta low, theta high)
50 trgecl.param('Taub2b2AngleCut', [120, 240, 140, 220])
51 # taub2b2 total energy cut in lab (GeV)
52 trgecl.param('Taub2b2EtotCut', 7.0)
53 # taub2b2 cluster energy cut in lab (GeV) for cluseter in endcap
54 trgecl.param('Taub2b2CLEEndcapCut', 3.0)
55 # taub2b2 cluster energy selection in lab (GeV)
56 trgecl.param('Taub2b2CLECut', 0.162)
57
58 # taub2b3 two cluster angle selection in CM (degree)
59 # (phi low, phi high, theta low, theta high)
60 trgecl.param('Taub2b3AngleCut', [120, 240, 140, 220])
61 # taub2b3 total energy cut in lab (GeV)
62 trgecl.param('Taub2b3EtotCut', 7.0)
63 # taub2b3 cluster energy cut in lab (GeV) for one of b2b cluseter
64 trgecl.param('Taub2b3CLEb2bCut', 0.14)
65 # taub2b3 cluster energy low selection in lab (GeV) for all clusters
66 trgecl.param('Taub2b3CLELowCut', 0.12)
67 # taub2b3 cluster energy high selection in lab (GeV) for all clusters
68 trgecl.param('Taub2b3CLEHighCut', 4.5)
69
70 # angle selection for addition Bhabha veto
71 trgecl.param('3DBhabhaAddAngleCut', [150, 210, 160, 200])
72 #
73 path.add_module(trgecl)