3 from Campaigns.Utils
import getMCCampaign, Campaign
4 from PyUtils.Logging
import logging
5 msg = logging.getLogger(
'BJetTriggerByYearContent')
6 msg.setLevel(logging.INFO)
21 Campaign.PhaseII: 2030,
24 dataYear = flags.Input.DataYear
29 if flags.Trigger.EDMVersion == 2:
31 "HLT_xAOD__BTaggingContainer_HLTBjetFex",
32 "HLT_xAOD__BTaggingContainer_HLTBjetFexAux.MV2c00_discriminant.MV2c10_discriminant.MV2c20_discriminant.BTagBtagToJetAssociator",
37 "HLT_xAOD__JetContainer_a4tcemsubjesFS",
38 "HLT_xAOD__JetContainer_a4tcemsubjesFSAux.pt.eta.phi.m",
40 "HLT_xAOD__JetContainer_EFJet",
41 "HLT_xAOD__JetContainer_EFJetAux.pt.eta.phi.m",
42 "HLT_xAOD__JetContainer_SplitJet",
43 "HLT_xAOD__JetContainer_SplitJetAux.pt.eta.phi.m",
47 "HLT_xAOD__JetContainer_a4tcemsubjesISFS",
48 "HLT_xAOD__JetContainer_a4tcemsubjesISFSAux.pt.eta.phi.m",
50 "HLT_xAOD__JetContainer_SplitJet",
51 "HLT_xAOD__JetContainer_SplitJetAux.pt.eta.phi.m",
52 "HLT_xAOD__JetContainer_GSCJet",
53 "HLT_xAOD__JetContainer_GSCJetAux.pt.eta.phi.m",
56 jetCollections[2015] = jetCollections[2016]
57 jetCollections[2018] = jetCollections[2017]
60 msg.debug(f
'Configured b-jet trigger content for {year}')
62 triggerContent += jetCollections[year]
64 elif flags.Trigger.EDMVersion == 3:
66 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets",
67 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTagging",
71 msg.debug(f
'Configured Run 3 b-jet trigger content for {year}')
75 2022: [
'DL1d20211216'],
76 2023: [
'GN120220813'],
77 2024: [
'GN220240122'],
78 2025: [
'GN220240122'],
79 2026: [
'GN220240122'],
81 for btagger
in btaggers:
82 btagstrs.append(
'.'.
join([f
'{btagger}_{p}' for p
in [
'pb',
'pc',
'pu']]))
83 jetstrs = btagstrs + [
'pt',
'eta',
'phi',
'm']
84 btagvars =
'.'.
join(btagstrs)
85 jetvars =
'.'.
join(jetstrs)
86 triggerContent.append(f
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTaggingAux.{btagvars}")
87 triggerContent.append(f
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJetsAux.{jetvars}")
90 elif flags.Trigger.EDMVersion >= 4:
91 triggerContent = [
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets"]
94 msg.debug(f
'Configured Run 4 b-jet trigger content for {year}')
96 jetstrs = [
'pt',
'eta',
'phi',
'm']
98 2030: [
'GN220240122'],
100 for btagger
in btaggers:
101 jetstrs.append(
'.'.
join([f
'{btagger}_{p}' for p
in [
'pb',
'pc',
'pu']]))
102 jetvars =
'.'.
join(jetstrs)
103 triggerContent.append(f
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJetsAux.{jetvars}")
104 return triggerContent
106 elif flags.Trigger.EDMVersion == -1:
108 msg.debug(
'Received EDMVersion=-1: no trigger info available. Returning empty b-jet trigger content')
111 raise ValueError(f
"Unsupported EDM version {flags.Trigger.EDMVersion} determined")