Belle II Software prerelease-11-00-00a
ecltrigger.py
1#!/usr/bin/env python
2
3
10
11import basf2 as b2
12
13
14def add_ecl_trigger(path, SourceOfTC=3, ETMConditionDB=True, ConditionDBFAM=True):
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 if conditionDB is used for FAM (False: no use, True: use)
24 trgeclfam.param('ConditionDBFAM', ConditionDBFAM)
25 # select source of TC data (1=ECLHit, 2=ECLSimHit, 3=ECLHit+TRGECLBGTCHit)
26 # ("1:=ECLHit" is used for signal w/o bkg, and real time background monitor)
27 trgeclfam.param('SourceOfTC', SourceOfTC)
28 #
29 path.add_module(trgeclfam)
30 #
31 trgecl = b2.register_module("TRGECL")
32 # trgecl.logging.log_level = LogLevel.DEBUG
33
34 # flag of ConditionDB (False:=not use ConditionDB, True:=use ConditionDB)
35 trgecl.param('ConditionDB', ETMConditionDB)
36
37 # Output Clustering method(0: Use only ICN, 1: ICN + Max TC)
38 trgecl.param('Clustering', 1)
39 # The limit # of cluster in clustering logic
40 trgecl.param('ClusterLimit', 6)
41
42 # Theta ID region(low and high) of 3DBhabhaVetoInTrack
43 trgecl.param('3DBhabhaVetoInTrackThetaRegion', [3, 15])
44 # taub2b two cluster angle selection in CM (degree)
45 # (phi low, phi high, theta low, theta high)
46 trgecl.param('Taub2bAngleCut', [110, 250, 130, 230])
47 # taub2b total energy cut in lab (GeV)
48 trgecl.param('Taub2bEtotCut', 7.0)
49 # taub2b cluster energy selection in lab (GeV)
50 trgecl.param('Taub2bCLELabCut', 1.9)
51
52 # taub2b2 two cluster angle selection in CM (degree)
53 # (phi low, phi high, theta low, theta high)
54 trgecl.param('Taub2b2AngleCut', [120, 240, 140, 220])
55 # taub2b2 total energy cut in lab (GeV)
56 trgecl.param('Taub2b2EtotCut', 7.0)
57 # taub2b2 cluster energy cut(low, high) in lab (GeV)
58 trgecl.param('Taub2b2CLELabCut', [0.162, 3.0])
59
60 # taub2b3 two cluster angle selection in CM (degree)
61 # (phi low, phi high, theta low, theta high)
62 trgecl.param('Taub2b3AngleCut', [120, 240, 140, 220])
63 # taub2b3 total energy cut in lab (GeV)
64 trgecl.param('Taub2b3EtotCut', 7.0)
65 # taub2b3 cluster energy cut in lab (GeV) for one of b2b cluseter
66 trgecl.param('Taub2b3CLEb2bLabCut', 0.14)
67 # taub2b3 cluster energy low selection(low, high) in lab (GeV) for all clusters
68 trgecl.param('Taub2b3CLELabCut', [0.12, 4.5])
69
70 # hie1 and hie2, angle selection for addition Bhabha veto
71 trgecl.param('hie12BhabhaVetoAngle', [150, 210, 160, 200])
72 #
73 path.add_module(trgecl)