3 from Campaigns.Utils
import getDataYear
4 from PyUtils.Logging
import logging
5 msg = logging.getLogger(
'BJetTriggerByYearContent')
6 msg.setLevel(logging.INFO)
9 if flags.Trigger.EDMVersion == 2:
11 "HLT_xAOD__BTaggingContainer_HLTBjetFex",
12 "HLT_xAOD__BTaggingContainer_HLTBjetFexAux.MV2c00_discriminant.MV2c10_discriminant.MV2c20_discriminant.BTagBtagToJetAssociator",
17 "HLT_xAOD__JetContainer_a4tcemsubjesFS",
18 "HLT_xAOD__JetContainer_a4tcemsubjesFSAux.pt.eta.phi.m",
20 "HLT_xAOD__JetContainer_EFJet",
21 "HLT_xAOD__JetContainer_EFJetAux.pt.eta.phi.m",
22 "HLT_xAOD__JetContainer_SplitJet",
23 "HLT_xAOD__JetContainer_SplitJetAux.pt.eta.phi.m",
27 "HLT_xAOD__JetContainer_a4tcemsubjesISFS",
28 "HLT_xAOD__JetContainer_a4tcemsubjesISFSAux.pt.eta.phi.m",
30 "HLT_xAOD__JetContainer_SplitJet",
31 "HLT_xAOD__JetContainer_SplitJetAux.pt.eta.phi.m",
32 "HLT_xAOD__JetContainer_GSCJet",
33 "HLT_xAOD__JetContainer_GSCJetAux.pt.eta.phi.m",
36 jetCollections[2015] = jetCollections[2016]
37 jetCollections[2018] = jetCollections[2017]
40 msg.debug(f
'Configured b-jet trigger content for {year}')
42 triggerContent += jetCollections[year]
44 elif flags.Trigger.EDMVersion == 3:
46 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets",
47 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTagging",
51 msg.debug(f
'Configured Run 3 b-jet trigger content for {year}')
55 2022: [
'DL1d20211216'],
56 2023: [
'GN120220813'],
57 2024: [
'GN220240122'],
58 2025: [
'GN220240122'],
59 2026: [
'GN220240122'],
61 for btagger
in btaggers:
62 btagstrs.append(
'.'.
join([f
'{btagger}_{p}' for p
in [
'pb',
'pc',
'pu']]))
63 jetstrs = btagstrs + [
'pt',
'eta',
'phi',
'm']
64 btagvars =
'.'.
join(btagstrs)
65 jetvars =
'.'.
join(jetstrs)
66 triggerContent.append(f
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTaggingAux.{btagvars}")
67 triggerContent.append(f
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJetsAux.{jetvars}")
70 elif flags.Trigger.EDMVersion >= 4:
71 triggerContent = [
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets"]
74 msg.debug(f
'Configured Run 4 b-jet trigger content for {year}')
76 jetstrs = [
'pt',
'eta',
'phi',
'm']
78 2030: [
'GN220240122'],
80 for btagger
in btaggers:
81 jetstrs.append(
'.'.
join([f
'{btagger}_{p}' for p
in [
'pb',
'pc',
'pu']]))
82 jetvars =
'.'.
join(jetstrs)
83 triggerContent.append(f
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJetsAux.{jetvars}")
86 elif flags.Trigger.EDMVersion == -1:
88 msg.debug(
'Received EDMVersion=-1: no trigger info available. Returning empty b-jet trigger content')
91 raise ValueError(f
"Unsupported EDM version {flags.Trigger.EDMVersion} determined")