99def decodeThreshold( threshold_btag ):
100 """ decodes the b-tagging thresholds """
101
102 log.debug("decoded b-jet threshold: b%s", threshold_btag)
103
104 tagger = "offperf" if threshold_btag == "offperf" else re.findall("(.*)[0-9]{2}",threshold_btag)[0]
105
106 allowedTaggers = ["offperf", "dl1d", "gn182bb", "gn177bb", "gn175bb", "gn1","gn2"]
107 if tagger not in allowedTaggers:
108 log.debug("tagger = %s not amidst allowed taggers ",threshold_btag)
109 raise RuntimeError("Can't recognize tagger during TrigBjetHypoTool configuration. Tagger = "+threshold_btag)
110
111 btagger = "GN220240122"
112 bbtagger = "dl1dbb20230314"
113
114 bbcut = bbTaggingWP.get(threshold_btag)
115
116
117 threshold_btag = threshold_btag.split("bb", maxsplit=1)[0]
118
119
120 if "dl1d" in threshold_btag:
121 btagger = "DL1d20211216"
122
123
124 if "gn1" in threshold_btag:
125 btagger = "GN120220813"
126
127 if "gn2" in threshold_btag:
128 btagger = "GN220240122"
129 bcut = bTaggingWP[threshold_btag]
130
131 return [btagger, bcut] , [bbtagger, bbcut]
132