3 from Campaigns.Utils
import getMCCampaign, Campaign
4 from PyUtils.Logging
import logging
5 msg = logging.getLogger(
'BJetTriggerByYearContent')
6 msg.setLevel(logging.INFO)
20 Campaign.PhaseII: 2030,
23 dataYear = flags.Input.DataYear
28 if flags.Trigger.EDMVersion == 2:
30 "HLT_xAOD__BTaggingContainer_HLTBjetFex",
31 "HLT_xAOD__BTaggingContainer_HLTBjetFexAux.MV2c00_discriminant.MV2c10_discriminant.MV2c20_discriminant",
36 "HLT_xAOD__JetContainer_a4tcemsubjesFS",
37 "HLT_xAOD__JetContainer_a4tcemsubjesFSAux.pt.eta.phi.m",
39 "HLT_xAOD__JetContainer_EFJet",
40 "HLT_xAOD__JetContainer_EFJetAux.pt.eta.phi.m",
41 "HLT_xAOD__JetContainer_SplitJet",
42 "HLT_xAOD__JetContainer_SplitJetAux.pt.eta.phi.m",
46 "HLT_xAOD__JetContainer_a4tcemsubjesISFS",
47 "HLT_xAOD__JetContainer_a4tcemsubjesISFSAux.pt.eta.phi.m",
49 "HLT_xAOD__JetContainer_SplitJet",
50 "HLT_xAOD__JetContainer_SplitJetAux.pt.eta.phi.m",
51 "HLT_xAOD__JetContainer_GSCJet",
52 "HLT_xAOD__JetContainer_GSCJetAux.pt.eta.phi.m",
55 jetCollections[2015] = jetCollections[2016]
56 jetCollections[2018] = jetCollections[2017]
59 msg.debug(f
'Configured b-jet trigger content for {year}')
61 triggerContent += jetCollections[year]
63 elif flags.Trigger.EDMVersion >= 3:
65 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets",
66 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJetsAux.pt.eta.phi.m",
67 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTagging",
71 msg.debug(f
'Configured b-jet trigger content for {year}')
75 2022: [
'DL1d20211216'],
76 2023: [
'GN120220813'],
77 2024: [
'GN220240122'],
80 for btagger
in btaggers:
81 btagstrs.append(
'.'.
join([f
'{btagger}_{p}' for p
in [
'pb',
'pc',
'pu']]))
82 btagvars =
'.'.
join(btagstrs)
83 triggerContent.append(f
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTaggingAux.{btagvars}")
85 elif flags.Trigger.EDMVersion == -1:
87 msg.debug(
'Received EDMVersion=-1: no trigger info available. Returning empty b-jet trigger content')
90 raise ValueError(f
"Unsupported EDM version {flags.Trigger.EDMVersion} determined")