CMS 3D CMS Logo

tmbParams.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 tmbPhase1 = cms.PSet(
4  mpcBlockMe1a = cms.uint32(0),
5  alctTrigEnable = cms.uint32(0),
6  clctTrigEnable = cms.uint32(0),
7  matchTrigEnable = cms.uint32(1),
8  matchTrigWindowSize = cms.uint32(7),
9  tmbL1aWindowSize = cms.uint32(7),
10  # Debug
11  verbosity = cms.int32(0),
12 
13  # Configure early_tbins instead of hardcoding it
14  tmbEarlyTbins = cms.int32(4),
15 
16  # Flag for whether to readout only the earliest max two LCTs in a
17  # L1A readout window, as there is only room just for two in the TMB header.
18  # If false, all LCTs would be readout in L1A window.
19  tmbReadoutEarliest2 = cms.bool(True),
20 
21  # For CLCT-centric matching, whether to drop ALCTs that were matched
22  # to CLCTs in this BX, and not use them in the following BX
23  tmbDropUsedAlcts = cms.bool(True),
24 
25  # For ALCT-centric matching, whether to drop CLCTs that were matched
26  # to ALCTs in this BX, and not use them in the following BX
27  tmbDropUsedClcts = cms.bool(False),
28 
29  # Switch to enable
30  # True = CLCT-centric matching (default non-upgrade behavior,
31  # take CLCTs in BX look for matching ALCTs in window)
32  # False = ALCT-centric matching (recommended for Phase-2,
33  # take ALCTs in BX look for matching CLCTs in window)
34  clctToAlct = cms.bool(False),
35 
36 
37  useHighMultiplicityBits = cms.bool(False),
38 )
39 
40 # to be used by ME11 chambers with upgraded TMB and ALCT
41 tmbPhase2 = tmbPhase1.clone(
42  # reduce ALCT-CLCT matching window size from 7 to 3
43  matchTrigWindowSize = 3,
44  tmbReadoutEarliest2 = False,
45  tmbDropUsedAlcts = False,
46  tmbDropUsedClcts = False,
47 
48  # For CLCT-centric matching in ME11, break after finding
49  # the first BX with matching ALCT
50  matchEarliestAlctOnly = cms.bool(False),
51 
52  # For ALCT-centric matching in ME11, break after finding
53  # the first BX with matching CLCT
54  matchEarliestClctOnly = cms.bool(False),
55 
56  # 0 = default "non-X-BX" sorting algorithm,
57  # where the first BX with match goes first
58  # 1 = simple X-BX sorting algorithm,
59  # where the central match BX goes first,
60  # then the closest early, the closest late, etc.
61  tmbCrossBxAlgorithm = cms.uint32(1),
62 
63  # How many maximum LCTs per whole chamber per BX to keep
64  maxLCTs = cms.uint32(2),
65 
66  # True: allow construction of unphysical LCTs
67  # in ME11 for which WG and HS do not intersect
68  # False: do not build unphysical LCTs
69  ignoreAlctCrossClct = cms.bool(True),
70 
71 
72  debugLUTs = cms.bool(False),
73  debugMatching = cms.bool(False),
74 )
75 
76 # to be used by ME11 chambers with GEM-CSC ILT
77 tmbPhase2GE11 = tmbPhase2.clone(
78  tmbCrossBxAlgorithm = 2,
79 
80 
81  maxDeltaBXPad = cms.int32(1),
82  maxDeltaBXCoPad = cms.int32(1),
83  maxDeltaPadL1Even = cms.int32(12),
84  maxDeltaPadL1Odd = cms.int32(24),
85  maxDeltaPadL2Even = cms.int32(12),
86  maxDeltaPadL2Odd = cms.int32(24),
87 
88 
89  dropLowQualityCLCTsNoGEMs_ME1a = cms.bool(False),
90  dropLowQualityCLCTsNoGEMs_ME1b = cms.bool(True),
91  dropLowQualityALCTsNoGEMs_ME1a = cms.bool(False),
92  dropLowQualityALCTsNoGEMs_ME1b = cms.bool(False),
93  buildLCTfromALCTandGEM_ME1a = cms.bool(False),
94  buildLCTfromALCTandGEM_ME1b = cms.bool(True),
95  buildLCTfromCLCTandGEM_ME1a = cms.bool(False),
96  buildLCTfromCLCTandGEM_ME1b = cms.bool(True),
97  promoteALCTGEMpattern = cms.bool(True),
98  promoteALCTGEMquality = cms.bool(True),
99  promoteCLCTGEMquality_ME1a = cms.bool(True),
100  promoteCLCTGEMquality_ME1b = cms.bool(True),
101 )
102 
103 # to be used by ME21 chambers with GEM-CSC ILT
104 tmbPhase2GE21 = tmbPhase2.clone(
105  tmbCrossBxAlgorithm = 2,
106 
107 
108  maxDeltaBXPad = cms.int32(1),
109  maxDeltaBXCoPad = cms.int32(1),
110  maxDeltaPadL1Even = cms.int32(12),
111  maxDeltaPadL1Odd = cms.int32(24),
112  maxDeltaPadL2Even = cms.int32(12),
113  maxDeltaPadL2Odd = cms.int32(24),
114 
115 
116  dropLowQualityALCTsNoGEMs = cms.bool(True),
117  dropLowQualityCLCTsNoGEMs = cms.bool(True),
118  buildLCTfromALCTandGEM = cms.bool(True),
119  buildLCTfromCLCTandGEM = cms.bool(True),
120  promoteALCTGEMpattern = cms.bool(True),
121  promoteALCTGEMquality = cms.bool(True),
122  promoteCLCTGEMquality = cms.bool(True),
123 )
124 
125 tmbPSets = cms.PSet(
126  tmbPhase1 = tmbPhase1.clone(),
127  tmbPhase2 = tmbPhase2.clone(),
128  tmbPhase2GE11 = tmbPhase2GE11.clone(),
129  tmbPhase2GE21 = tmbPhase2GE21.clone(),
130 )