diff --git a/.gitignore b/.gitignore index 0c32cf82..4a403794 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ rates/table/rates_tables/* outputs menu_tools.egg-info dist +ph2-menu-tools +prod_ph2-menu-tools +dev_ph2-menu-tools diff --git a/configs/V29/object_performance/muon_matching.yaml b/configs/V29/object_performance/muon_matching.yaml index 67e974bb..501f1c04 100644 --- a/configs/V29/object_performance/muon_matching.yaml +++ b/configs/V29/object_performance/muon_matching.yaml @@ -37,6 +37,7 @@ MuonsMatchingOverlap: - "abs({eta}) < 1.24" test_objects: gmtMuon:default:overlap: "Pt" + gmtMuon:oldRateID:overlap: "Pt" gmtTkMuon:default:overlap: "Pt" xlabel: "Gen. $p_T$ (GeV)" ylabel: "Matching Efficiency (overlap)" diff --git a/configs/V29/object_performance/muon_matching_eta.yaml b/configs/V29/object_performance/muon_matching_eta.yaml index 8940c722..dfeec848 100644 --- a/configs/V29/object_performance/muon_matching_eta.yaml +++ b/configs/V29/object_performance/muon_matching_eta.yaml @@ -39,6 +39,7 @@ MuonsMatching_Eta_Pt15toInf: - "abs({eta}) < 2.4" test_objects: gmtMuon:default: "Eta" + gmtMuon:oldRateID: "Eta" gmtTkMuon:default: "Eta" xlabel: "Gen. $\\eta$" ylabel: "Matching Efficiency (>15 GeV)" diff --git a/configs/V29/objects/electrons.yaml b/configs/V29/objects/electrons.yaml index efb65634..c6006637 100644 --- a/configs/V29/objects/electrons.yaml +++ b/configs/V29/objects/electrons.yaml @@ -46,6 +46,16 @@ tkElectron: inclusive: - "abs({eta}) < 2.4" - "({passeseleid} == 1) | ({pt} < 25)" + IsoNoIDinEE: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({trkiso}) < 0.13" + - "({passeseleid} == 1) | ({pt} < 25)" + endcap: + - "abs({trkiso}) < 0.28" EG: match_dR: 0.2 diff --git a/configs/V29/objects/muons.yaml b/configs/V29/objects/muons.yaml index 77a8fe31..7a607325 100644 --- a/configs/V29/objects/muons.yaml +++ b/configs/V29/objects/muons.yaml @@ -7,7 +7,9 @@ gmtMuon: overlap: [0.83, 1.24] endcap: [1.24, 2.4] ids: - default: + default: {} + oldRateID: + label: "GMT Muon, Qual>=12 in OMTF" cuts: overlap: - "{quality} >= 12" diff --git a/configs/V29/rate_plots/all_rate_plots.yaml b/configs/V29/rate_plots/all_rate_plots.yaml new file mode 100644 index 00000000..e49aff68 --- /dev/null +++ b/configs/V29/rate_plots/all_rate_plots.yaml @@ -0,0 +1,59 @@ +# HTRates: +# sample: MinBias +# version: V29 +# test_objects: +# - phase1PuppiHT:default +# - seededConePuppiHT:default +# # - trackerJet:default +# binning: +# min: 40 +# max: 420 +# step: 20 + +# JetDefaultRates: +# sample: MinBias +# version: V29 +# test_objects: +# - phase1PuppiJet:default +# - seededConePuppiJet:default +# # - trackerJet:default +# binning: +# min: 40 +# max: 420 +# step: 20 + +# ElectronDefaultRates: +# sample: MinBias +# version: V29 +# test_objects: +# - EG:default +# - tkElectron:NoIso +# - tkElectron:Iso +# - tkPhoton:Iso +# binning: +# min: 10 +# max: 97 +# step: 3 + +MuonRates: + sample: MinBias + version: V29 + test_objects: + - gmtMuon:default + - gmtMuon:oldRateID + - gmtTkMuon:default + binning: + min: 0 + max: 75 + step: 3 + +# TauRates: +# sample: MinBias +# version: V29 +# test_objects: +# - nnTau:default +# - caloTau:default +# binning: +# min: 10 +# max: 155 +# step: 5 diff --git a/configs/V31/caching.yaml b/configs/V31/caching.yaml new file mode 100644 index 00000000..57d6c31a --- /dev/null +++ b/configs/V31/caching.yaml @@ -0,0 +1,90 @@ +V31: + DYLL_M50: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/13X/v29/DYToLL_M-50_TuneCP5_14TeV-pythia8/DY_M50_1252_200PU_v29_13x_fixTkPhi/230822_121429/0000/L*.root + trees_branches: + genTree/L1GenTree: + part_mu: [Id, Stat, Pt, Eta, Phi] + part_e: [Id, Stat, Pt, Eta, Phi] + l1PhaseIITree/L1PhaseIITree: + tkElectron: [Pt, Et, Eta, Phi, Chg, Bx, TrkIso, PfIso, PuppiIso, zVtx, HwQual, EGRefPt, EGRefEta, EGRefPhi, HGC, PassesEleID, PassesPhoID] + EG: [Pt, Et, Eta, Phi, Bx, Iso, HwQual, HGC, PassesEleID, PassesSaID] + gmtMuon: [Pt, Eta, Phi, Z0, D0, IPt, IEta, IPhi, IZ0, ID0, Chg, Iso, Qual, Beta, Bx] + gmtTkMuon: [Pt, Eta, Phi, Z0, D0, IPt, IEta, IPhi, IZ0, ID0, Chg, Iso, Qual, Beta, NStubs, Bx] + z0L1TkPV: "all" + TT: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/13X/v29/TT_TuneCP5_14TeV-powheg-pythia8/TT_131_200PU_v29_13x_fixTkPhi/230822_122619/0000/L*.root + trees_branches: + genTree/L1GenTree: + genMetTrue: "all" + jet: "all" + l1PhaseIITree/L1PhaseIITree: + puppiMET: "all" + phase1PuppiJet: "all" + phase1PuppiMHT: "all" + phase1PuppiHT: "all" + seededConePuppiJet: [Pt, Et, Eta, Phi] + seededConeExtendedPuppiJet: [Pt, Et, Eta, Phi, BJetNN] + seededConePuppiHT: "all" + seededConePuppiMHT: "all" + trackerJet: [Pt, Eta, Phi] + trackerMET: "all" + trackerMHT: "all" + trackerHT: "all" + # caloJet: "all" + caloJet: [Et, Pt, Eta, Phi] + ## DEBUG + #tkElectron: [Pt, Et, Eta, Phi, Chg, Bx, TrkIso, PfIso, PuppiIso, zVtx, HwQual, EGRefPt, EGRefEta, EGRefPhi, HGC, PassesEleID, PassesPhoID] + #tkPhoton: [Pt, Et, Eta, Phi, Bx, TrkIso, HwQual, HGC, PassesEleID, PassesPhoID] + z0L1TkPV: "all" + VBFHToTauTau: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/13X/v29/VBFHToTauTau_M-125_TuneCP5_14TeV-powheg-pythia8/VBFHToTauTau_131_200PU_v29_13x_fixTkPhi/230822_122634/0000/L*.root + trees_branches: + genTree/L1GenTree: + part_tau: [Id, Stat, Pt, Eta, Phi, Parent, E] + l1PhaseIITree/L1PhaseIITree: + nnTau: [Et, Eta, Pt, Phi, FullIso, Z0, PassTightNN, Chg, DXY, PassLooseNN] + caloTau: [Et, Eta, Pt, Phi, Iso, HwQual, Bx] + HHToTauTau: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/13X/v29/GluGluToHHTo2B2Tau_node_SM_TuneCP5_14TeV-madgraph-pythia8/HHTo2B2Tau_131_200PU_v29_13x_fixTkPhi/230824_130354/0000/L*.root + trees_branches: + genTree/L1GenTree: + part_tau: [Id, Stat, Pt, Eta, Phi, Parent, E] + l1PhaseIITree/L1PhaseIITree: + nnTau: [Et, Eta, Pt, Phi, FullIso, Z0, PassTightNN, Chg, DXY, PassLooseNN] + caloTau: [Et, Eta, Pt, Phi, Iso, HwQual] + Hgg: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/13X/v29/GluGluHToGG_M-125_TuneCP5_14TeV-powheg-pythia8/GluGluHToGG_131_200PU_v29_13x_fixTkPhi/230822_122650/0000/L*.root + trees_branches: + genTree/L1GenTree: + part_gamma: [Id, Stat, Pt, Eta, Phi] + l1PhaseIITree/L1PhaseIITree: + tkPhoton: [Pt, Et, Eta, Phi, Bx, TrkIso, HwQual, HGC, PassesEleID, PassesPhoID, TrkIsoPV] + EG: [Pt, Et, Eta, Phi, Bx, Iso, HwQual, HGC, PassesEleID, PassesSaID] + MinBias: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/13X/v29/MinBias_TuneCP5_14TeV-pythia8/MinBias_131_v29_13x_fixTkPhi/230825_103803/M*.root + trees_branches: + l1PhaseIITree/L1PhaseIITree: + puppiMET: "all" + phase1PuppiJet: "all" + phase1PuppiMHT: "all" + phase1PuppiHT: "all" + seededConePuppiJet: [Pt, Et, Eta, Phi] + seededConeExtendedPuppiJet: [Pt, Et, Eta, Phi, BJetNN] + seededConeExtendedPuppiHT: "all" + seededConePuppiHT: "all" + seededConePuppiMHT: "all" + caloJet: [Et, Pt, Eta, Phi] + tkElectron: [Pt, Et, Eta, Phi, Chg, TrkIso, PfIso, PuppiIso, zVtx, HwQual, HGC, PassesEleID, PassesPhoID] + EG: [Pt, Et, Eta, Phi, Iso, HwQual, HGC, PassesEleID, PassesSaID] + gmtTkMuon: [Pt, Eta, Phi, Z0, D0, Chg, Qual ] + gmtMuon: [Pt, Eta, Phi, Z0, D0, Chg, Qual ] + nnTau: [Et, Eta, Pt, Phi, Z0, PassTightNN, Chg, DXY, PassLooseNN] + tkPhoton: [Pt, Et, Eta, Phi, TrkIso, HwQual, HGC, PassesEleID, PassesPhoID] + z0L1TkPV: "all" + caloTau: [Et, Eta, Pt, Phi, Iso, HwQual] + trackerJet: [Pt, Eta, Phi] + trackerMET: "all" + trackerMHT: "all" + trackerHT: "all" + + diff --git a/configs/V31/object_performance/comparisons/bJetEff.yml b/configs/V31/object_performance/comparisons/bJetEff.yml new file mode 100644 index 00000000..eaa197fb --- /dev/null +++ b/configs/V31/object_performance/comparisons/bJetEff.yml @@ -0,0 +1,30 @@ +BJetEff_Pt: + files: + JetMatching_Pt_Pt30ToInf_genBJets_-999_V31: + object: seededConeExtendedPuppiJet + dir: outputs/V31/turnons/ + label: "Signal: Matched b-jets" + JetMatching_Pt_Pt30ToInf_genNotBJets_-999_V31: + object: seededConeExtendedPuppiJet + dir: outputs/V31/turnons/ + label: "Background: Unmatched b-jets" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + watermark: "BJet_Pt" + save_dir: "outputs/V31/BJet/turnons" + + +BJetEff_Eta: + files: + JetMatching_Eta_Pt30ToInf_genBJets_-999_V31: + object: seededConeExtendedPuppiJet + dir: outputs/V31/turnons/ + label: "Signal: Matched b-jets" + JetMatching_Eta_Pt30ToInf_genNotBJets_-999_V31: + object: seededConeExtendedPuppiJet + dir: outputs/V31/turnons/ + label: "Background: Unmatched b-jets" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency" + watermark: "BJet_Eta" + save_dir: "outputs/V31/BJet/turnons" diff --git a/configs/V31/object_performance/comparisons/version_comparison.yaml b/configs/V31/object_performance/comparisons/version_comparison.yaml new file mode 100644 index 00000000..166cd6ed --- /dev/null +++ b/configs/V31/object_performance/comparisons/version_comparison.yaml @@ -0,0 +1,44 @@ +V22_V31_GMTMuonsBarrel_Comparison: + files: + MuonsTrigger_20_V22: + object: gmtMuon + dir: outputs/V22/turnons/ + label: "GMT Muon (V22)" + MuonsTrigger_20_V31: + object: gmtMuon + dir: outputs/V31/turnons/ + label: "GMT Muon (V31)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + watermark: "V22_V31_gmtMuonBarrel_Comp" + save_dir: "outputs/V22vs27/turnons" + +V22_V31_ElectronsBarrel_Comparison: + files: + ElectronsTriggerBarrel_30_V22: + object: tkElectron + dir: outputs/V22/turnons/ + label: "tkElectron (V22)" + ElectronsTriggerBarrel_30_V31: + object: tkElectron + dir: outputs/V31/turnons/ + label: "tkElectron (V31)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + watermark: "V22_V31_EGBarrel_Comp" + save_dir: "outputs/V22vs27/turnons" + +V22_V31_GMTtkMuonsBarrel_Comparison: + files: + MuonsTrigger_20_V22: + object: gmtMuon + dir: outputs/V22/turnons/ + label: "GMT tkMuon (V22)" + MuonsTrigger_20_V31: + object: gmtMuon + dir: outputs/V31/turnons/ + label: "GMT tkMuon (V31)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + watermark: "V22_V31_gmtTkMuonBarrel_Comp" + save_dir: "outputs/V22vs27/turnons" diff --git a/configs/V31/object_performance/electron_iso.yaml b/configs/V31/object_performance/electron_iso.yaml new file mode 100644 index 00000000..e3495dae --- /dev/null +++ b/configs/V31/object_performance/electron_iso.yaml @@ -0,0 +1,48 @@ +ElectronsIsolation_Barrel: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + iso_vs_efficiency: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.479" + object: + - "abs({eta}) < 1.479" + test_objects: + tkElectron:NoIso: "trkiso" + xlabel: "Isolation" + ylabel: "Efficiency (Barrel)" + binning: + min: 0 + max: 0.5 + step: 0.005 + +ElectronsIsolation_Endcap: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + iso_vs_efficiency: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.479" + object: + - "abs({eta}) < 2.4" + test_objects: + tkElectron:NoIsoForIso: "trkiso" + xlabel: "Isolation" + ylabel: "Efficiency (Endcap)" + binning: + min: 0 + max: 0.5 + step: 0.005 + diff --git a/configs/V31/object_performance/electron_matching.yaml b/configs/V31/object_performance/electron_matching.yaml new file mode 100644 index 00000000..80145763 --- /dev/null +++ b/configs/V31/object_performance/electron_matching.yaml @@ -0,0 +1,49 @@ +ElectronsMatchingBarrel: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "Pt" + tkElectron:NoIso: "Pt" + tkElectron:Iso: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +ElectronsMatchingEndcap: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "Pt" + tkElectron:NoIso: "Pt" + tkElectron:Iso: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V31/object_performance/electron_matching_eta.yaml b/configs/V31/object_performance/electron_matching_eta.yaml new file mode 100644 index 00000000..c88dd333 --- /dev/null +++ b/configs/V31/object_performance/electron_matching_eta.yaml @@ -0,0 +1,50 @@ +ElectronsMatching_Eta_Pt10to25: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Eta" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} < 25" + - "{pt} > 10" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + tkElectron:NoIso: "Eta" + tkElectron:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +ElectronsMatching_Eta_Pt25toInf: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Eta" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 25" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + tkElectron:NoIso: "Eta" + tkElectron:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($p_T > 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V31/object_performance/electron_trigger.yaml b/configs/V31/object_performance/electron_trigger.yaml new file mode 100644 index 00000000..df459773 --- /dev/null +++ b/configs/V31/object_performance/electron_trigger.yaml @@ -0,0 +1,57 @@ +ElectronsTriggerBarrel: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.8" + test_objects: + EG:default:barrel: "Pt" + tkElectron:NoIso:barrel: "Pt" + tkElectron:Iso:barrel: "Pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +ElectronsTriggerEndcap: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.8" + test_objects: + EG:default:endcap: "Pt" + tkElectron:NoIso:endcap: "Pt" + tkElectron:Iso:endcap: "Pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 diff --git a/configs/V31/object_performance/jets_matching.yaml b/configs/V31/object_performance/jets_matching.yaml new file mode 100644 index 00000000..dbef18f0 --- /dev/null +++ b/configs/V31/object_performance/jets_matching.yaml @@ -0,0 +1,95 @@ +JetMatchingForward_3p7to7: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 3.7" + object: + - "abs({eta}) < 5" + test_objects: + caloJet:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 300 + step: 5 + +JetMatchingBarrel: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + phase1PuppiJet:default: "Pt" + seededConePuppiJet:default: "Pt" + caloJet:default: "Pt" + trackerJet:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingEndcap: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + phase1PuppiJet:default: "Pt" + seededConePuppiJet:default: "Pt" + caloJet:default: "Pt" + trackerJet:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingForward: + version: V31 + sample: TT + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + phase1PuppiJet:default: "Pt" + seededConePuppiJet:default: "Pt" + caloJet:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V31/object_performance/jets_matching_eta.yaml b/configs/V31/object_performance/jets_matching_eta.yaml new file mode 100644 index 00000000..1bfa6331 --- /dev/null +++ b/configs/V31/object_performance/jets_matching_eta.yaml @@ -0,0 +1,72 @@ +JetMatching_Eta_Pt40To100: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + phase1PuppiJet:default: "Eta" + seededConePuppiJet:default: "Eta" + caloJet:default: "Eta" + trackerJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + phase1PuppiJet:default: "Eta" + seededConePuppiJet:default: "Eta" + caloJet:default: "Eta" + trackerJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf_extEta: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 7" + test_objects: + caloJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5.5 + max: 5.5 + step: 0.25 \ No newline at end of file diff --git a/configs/V31/object_performance/jets_matching_wBTag.yaml b/configs/V31/object_performance/jets_matching_wBTag.yaml new file mode 100644 index 00000000..50cd0938 --- /dev/null +++ b/configs/V31/object_performance/jets_matching_wBTag.yaml @@ -0,0 +1,136 @@ +JetMatching_Eta_Pt40To100_ExtendedVsRegular: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + seededConePuppiJet:default: "Eta" + seededConeExtendedPuppiJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf_ExtendedVsRegular: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + seededConePuppiJet:default: "Eta" + seededConeExtendedPuppiJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt30ToInf_genBJets: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 30" + - "abs({partonflavour}) == 5" + object: + - "abs({eta}) < 2.4" + test_objects: + seededConeExtendedPuppiJet:bjetnn: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>30 GeV)" + binning: + min: -2.4 + max: 2.4 + step: 0.25 + +JetMatching_Eta_Pt30ToInf_genNotBJets: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 30" + - "abs({partonflavour}) != 5" + object: + - "abs({eta}) < 2.4" + test_objects: + seededConeExtendedPuppiJet:bjetnn: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>30 GeV)" + binning: + min: -2.4 + max: 2.4 + step: 0.25 + +JetMatching_Pt_Pt30ToInf_genBJets: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({partonflavour}) == 5" + object: + - "abs({eta}) < 2.4" + test_objects: + seededConeExtendedPuppiJet:bjetnn: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 30 + max: 200 + step: 10 + +JetMatching_Pt_Pt30ToInf_genNotBJets: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({partonflavour}) != 5" + object: + - "abs({eta}) < 2.4" + test_objects: + seededConeExtendedPuppiJet:bjetnn: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 30 + max: 200 + step: 10 diff --git a/configs/V31/object_performance/jets_trigger.yaml b/configs/V31/object_performance/jets_trigger.yaml new file mode 100644 index 00000000..58511967 --- /dev/null +++ b/configs/V31/object_performance/jets_trigger.yaml @@ -0,0 +1,85 @@ +JetTurnonBarrel: + version: V31 + sample: TT + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + phase1PuppiJet:default:barrel: "Pt" + seededConePuppiJet:default:barrel: "Pt" + caloJet:default:barrel: "Pt" + trackerJet:default:barrel: "Pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonEndcap: + version: V31 + sample: TT + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + phase1PuppiJet:default:endcap: "Pt" + seededConePuppiJet:default:endcap: "Pt" + caloJet:default:endcap: "Pt" + trackerJet:default:endcap: "Pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonForward: + version: V31 + sample: TT + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + phase1PuppiJet:default:forward: "Pt" + seededConePuppiJet:default:forward: "Pt" + caloJet:default:forward: "Pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V31/object_performance/jets_trigger_fwd.yaml b/configs/V31/object_performance/jets_trigger_fwd.yaml new file mode 100644 index 00000000..ce0a68a3 --- /dev/null +++ b/configs/V31/object_performance/jets_trigger_fwd.yaml @@ -0,0 +1,26 @@ +JetTurnonFwd_3p7to7: + sample: TT + version: V31 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 3.7" + object: + - "abs({eta}) < 7" + test_objects: + #phase1PuppiJet:default:forward: "Pt" + seededConePuppiJet:default:forward: "Pt" + thresholds: [50,100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: r'Trigger Efficiency ( GeV, $3.6<\eta<6$)' + binning: + min: 0 + max: 300 + step: 10 diff --git a/configs/V31/object_performance/met_ht_mht.yaml b/configs/V31/object_performance/met_ht_mht.yaml new file mode 100644 index 00000000..6a93d431 --- /dev/null +++ b/configs/V31/object_performance/met_ht_mht.yaml @@ -0,0 +1,149 @@ +HT_90perc: + sample: TT + version: V31 + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen HT" + trafo: "HT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + test_objects: + trackerHT:default: "" + phase1PuppiHT:default: "" + seededConePuppiHT:default: "" + thresholds: [350] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. HT (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 750 + step: 20 + +HT_50perc: + sample: TT + version: V31 + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen HT" + trafo: "HT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + test_objects: + trackerHT:default: "" + phase1PuppiHT:default: "" + seededConePuppiHT:default: "" + thresholds: [350] + scalings: + method: "naive" + threshold: 0.50 + xlabel: "Gen. HT (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 750 + step: 20 + +MHT_50perc: + sample: TT + version: V31 + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + trackerMHT:default: "" + phase1PuppiMHT:default: "et" + seededConePuppiMHT:default: "et" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +MHT_90perc: + sample: TT + version: V31 + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + trackerMHT:default: "" + phase1PuppiMHT:default: "et" + seededConePuppiMHT:default: "et" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +MET_90perc: + sample: TT + version: V31 + reference_object: + object: "genMetTrue" + x_arg: "" + label: "Gen MET" + test_objects: + trackerMET:default: "" + puppiMET:default: "et" + thresholds: [150] + xlabel: "Gen. MET (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 500 + step: 20 + +MET_50perc: + sample: TT + version: V31 + reference_object: + object: "genMetTrue" + x_arg: "" + label: "Gen MET" + test_objects: + trackerMET:default: "" + puppiMET:default: "et" + thresholds: [150] + xlabel: "Gen. MET (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + scalings: + method: "naive" + threshold: 0.50 + binning: + min: 0 + max: 500 + step: 20 diff --git a/configs/V31/object_performance/mht.yaml b/configs/V31/object_performance/mht.yaml new file mode 100644 index 00000000..c2bdac75 --- /dev/null +++ b/configs/V31/object_performance/mht.yaml @@ -0,0 +1,26 @@ +MHT30_50perc: + sample: TT + version: V31 + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + phase1PuppiMHT:default: "et" + seededConePuppiMHT:default: "et" + trackerMHT:default: "" + thresholds: [70] + scalings: + method: "naive" + threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 diff --git a/configs/V31/object_performance/muon_matching.yaml b/configs/V31/object_performance/muon_matching.yaml new file mode 100644 index 00000000..d8684fcb --- /dev/null +++ b/configs/V31/object_performance/muon_matching.yaml @@ -0,0 +1,70 @@ +MuonsMatchingBarrel: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 0.83" + test_objects: + gmtMuon:default:barrel: "Pt" + gmtTkMuon:default:barrel: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (barrel)" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatchingOverlap: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 0.83" + - "abs({eta}) < 1.24" + test_objects: + gmtMuon:default:overlap: "Pt" + gmtTkMuon:default:overlap: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (overlap)" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatchingEndcap: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 1.24" + - "abs({eta}) < 2.4" + test_objects: + gmtMuon:default:endcap: "Pt" + gmtTkMuon:default:endcap: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V31/object_performance/muon_matching_eta.yaml b/configs/V31/object_performance/muon_matching_eta.yaml new file mode 100644 index 00000000..4a948de0 --- /dev/null +++ b/configs/V31/object_performance/muon_matching_eta.yaml @@ -0,0 +1,48 @@ +MuonsMatching_Eta_Pt2to5: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Eta" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 2" + - "{pt} < 5" + object: + - "abs({eta}) < 2.4" + test_objects: + gmtMuon:default: "Eta" + gmtTkMuon:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (2-5 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +MuonsMatching_Eta_Pt15toInf: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Eta" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 15" + object: + - "abs({eta}) < 2.4" + test_objects: + gmtMuon:default: "Eta" + gmtTkMuon:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>15 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V31/object_performance/muon_trigger.yaml b/configs/V31/object_performance/muon_trigger.yaml new file mode 100644 index 00000000..fd0fbe34 --- /dev/null +++ b/configs/V31/object_performance/muon_trigger.yaml @@ -0,0 +1,81 @@ +MuonsTrigger_Barrel: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 0.83" + test_objects: + gmtMuon:default:barrel: "Pt" + gmtTkMuon:default:barrel: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 + +MuonsTrigger_Overlap: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 0.83" + - "abs({eta}) < 1.24" + test_objects: + gmtMuon:default:overlap: "Pt" + gmtTkMuon:default:overlap: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (overlap, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 + +MuonsTrigger_Endcap: + sample: DYLL_M50 + version: V31 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 1.24" + test_objects: + gmtMuon:default:endcap: "Pt" + gmtTkMuon:default:endcap: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 diff --git a/configs/V31/object_performance/photon_iso.yaml b/configs/V31/object_performance/photon_iso.yaml new file mode 100644 index 00000000..6a55b569 --- /dev/null +++ b/configs/V31/object_performance/photon_iso.yaml @@ -0,0 +1,49 @@ +PhotonIsolation_Barrel: + sample: Hgg + version: V31 + iso_vs_efficiency: True + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.479" + object: + - "abs({eta}) < 1.479" + test_objects: + tkPhoton:NoIso:barrel: "trkiso" + xlabel: "Isolation" + ylabel: "Efficiency (Barrel)" + binning: + min: 0 + max: 0.5 + step: 0.005 + +PhotonIsolation_Endcap: + sample: Hgg + version: V31 + iso_vs_efficiency: True + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.479" + - "abs({eta}) < 2.4" + object: + - "abs({eta}) > 1.479" + test_objects: + tkPhoton:NoIso:endcap: "trkiso" + xlabel: "Isolation" + ylabel: "Efficiency (Endcap)" + binning: + min: 0 + max: 0.5 + step: 0.005 + diff --git a/configs/V31/object_performance/photons_matching.yaml b/configs/V31/object_performance/photons_matching.yaml new file mode 100644 index 00000000..76167a8a --- /dev/null +++ b/configs/V31/object_performance/photons_matching.yaml @@ -0,0 +1,49 @@ +PhotonsMatching_Barrel: + sample: Hgg + version: V31 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "Pt" + tkPhoton:NoIso: "Pt" + tkPhoton:Iso: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_Endcap: + sample: Hgg + version: V31 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "Pt" + tkPhoton:NoIso: "Pt" + tkPhoton:Iso: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V31/object_performance/photons_matching_eta.yaml b/configs/V31/object_performance/photons_matching_eta.yaml new file mode 100644 index 00000000..ddc39d4c --- /dev/null +++ b/configs/V31/object_performance/photons_matching_eta.yaml @@ -0,0 +1,50 @@ +PhotonsMatching_Eta_Pt10to25: + sample: Hgg + version: V31 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Eta" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} < 25" + - "{pt} > 10" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + tkPhoton:NoIso: "Eta" + tkPhoton:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +PhotonsMatching_Eta_Pt25toInf: + sample: Hgg + version: V31 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Eta" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} >= 25" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + tkPhoton:NoIso: "Eta" + tkPhoton:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V31/object_performance/photons_trigger.yaml b/configs/V31/object_performance/photons_trigger.yaml new file mode 100644 index 00000000..4ee00e33 --- /dev/null +++ b/configs/V31/object_performance/photons_trigger.yaml @@ -0,0 +1,57 @@ +PhotonsTrigger_Barrel: + sample: Hgg + version: V31 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default:barrel: "Pt" + tkPhoton:NoIso:barrel: "Pt" + tkPhoton:Iso:barrel: "Pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +PhotonsTrigger_Endcap: + sample: Hgg + version: V31 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default:endcap: "Pt" + tkPhoton:NoIso:endcap: "Pt" + tkPhoton:Iso:endcap: "Pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 diff --git a/configs/V31/object_performance/slim/.backups/.cele.yaml~ b/configs/V31/object_performance/slim/.backups/.cele.yaml~ new file mode 100644 index 00000000..91ccd23e --- /dev/null +++ b/configs/V31/object_performance/slim/.backups/.cele.yaml~ @@ -0,0 +1,19 @@ + +Electrons_Turnons_V29: + files: + ElectronsMatching_10_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>10)" + ElectronsMatching_20_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>20)" + ElectronsMatching_30_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>30)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + watermark: "V29_tkIsoEle_Comp" + save_dir: "outputs/V29/turnons" diff --git a/configs/V31/object_performance/slim/cele.yaml b/configs/V31/object_performance/slim/cele.yaml new file mode 100644 index 00000000..65c3f929 --- /dev/null +++ b/configs/V31/object_performance/slim/cele.yaml @@ -0,0 +1,18 @@ +Electrons_Turnons_V29: + files: + ElectronsMatching_10_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>10)" + ElectronsMatching_20_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>20)" + ElectronsMatching_30_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>30)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + watermark: "V29_tkIsoEle_Comp" + save_dir: "outputs/V29/turnons" diff --git a/configs/V31/object_performance/slim/cjet.yaml b/configs/V31/object_performance/slim/cjet.yaml new file mode 100644 index 00000000..b3af3c02 --- /dev/null +++ b/configs/V31/object_performance/slim/cjet.yaml @@ -0,0 +1,22 @@ +Jets_Turnons_V29: + files: + JetMatching_25_-999_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>25)" + JetMatching_50_-999_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>50)" + JetMatching_75_-999_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>75)" + JetMatching_100_-999_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>100)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + watermark: "V29_SCJet_Comp" + save_dir: "outputs/V29/turnons" diff --git a/configs/V31/object_performance/slim/compare_gammas.yaml b/configs/V31/object_performance/slim/compare_gammas.yaml new file mode 100644 index 00000000..00a041b2 --- /dev/null +++ b/configs/V31/object_performance/slim/compare_gammas.yaml @@ -0,0 +1,18 @@ +Photons_Turnons_V29: + files: + PhotonsTrigger_Iso_Inclusive_10_V29: + object: tkIsoPhoton + dir: outputs/V29/turnons/ + label: "tkIsoPhoton (L1 $p_T$>10)" + PhotonsTrigger_Iso_Inclusive_20_V29: + object: tkIsoPhoton + dir: outputs/V29/turnons/ + label: "tkIsoPhoton (L1 $p_T$>20)" + PhotonsTrigger_Iso_Inclusive_30_V29: + object: tkIsoPhoton + dir: outputs/V29/turnons/ + label: "tkIsoPhoton (L1 $p_T$>30)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency" + watermark: "V29_tkIsoPhoton_Comp" + save_dir: "outputs/V29/turnons" diff --git a/configs/V31/object_performance/slim/compare_jets.yaml b/configs/V31/object_performance/slim/compare_jets.yaml new file mode 100644 index 00000000..0d787d2f --- /dev/null +++ b/configs/V31/object_performance/slim/compare_jets.yaml @@ -0,0 +1,22 @@ +Jets_Turnons_V29: + files: + JetTurnon_SC_Inclusive_25_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>25)" + JetTurnon_SC_Inclusive_50_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>50)" + JetTurnon_SC_Inclusive_75_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>75)" + JetTurnon_SC_Inclusive_100_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>100)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency" + watermark: "V29_SCJet_Comp" + save_dir: "outputs/V29/turnons" diff --git a/configs/V31/object_performance/slim/compare_mus.yaml b/configs/V31/object_performance/slim/compare_mus.yaml new file mode 100644 index 00000000..e07ffa49 --- /dev/null +++ b/configs/V31/object_performance/slim/compare_mus.yaml @@ -0,0 +1,18 @@ +Muons_Turnons_V29: + files: + MuonsTrigger_gmtkMu_Inclusive_5_V29: + object: gmtTkMuon + dir: outputs/V29/turnons/ + label: "GMT TkMuon (L1 $p_T$>5)" + MuonsTrigger_gmtkMu_Inclusive_15_V29: + object: gmtTkMuon + dir: outputs/V29/turnons/ + label: "GMT TkMuon (L1 $p_T$>15)" + MuonsTrigger_gmtkMu_Inclusive_25_V29: + object: gmtTkMuon + dir: outputs/V29/turnons/ + label: "GMT TkMuon (L1 $p_T$>25)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency" + watermark: "V29_gmtTkMuon_Comp" + save_dir: "outputs/V29/turnons" diff --git a/configs/V31/object_performance/slim/comparisons.yaml b/configs/V31/object_performance/slim/comparisons.yaml new file mode 100644 index 00000000..b45fc48f --- /dev/null +++ b/configs/V31/object_performance/slim/comparisons.yaml @@ -0,0 +1,79 @@ +Photons_Turnons_V29: + files: + PhotonsMatching_10_-999_V29: + object: tkIsoPhoton + dir: outputs/V29/turnons/ + label: "tkIsoPhoton (L1 $p_T$>10)" + PhotonsMatching_20_-999_V29: + object: tkIsoPhoton + dir: outputs/V29/turnons/ + label: "tkIsoPhoton (L1 $p_T$>20)" + PhotonsMatching_30_-999_V29: + object: tkIsoPhoton + dir: outputs/V29/turnons/ + label: "tkIsoPhoton (L1 $p_T$>30)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + watermark: "V29_tkIsoPhoton_Comp" + save_dir: "outputs/V29/turnons" + +Jets_Turnons_V29: + files: + JetMatching_25_-999_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>25)" + JetMatching_50_-999_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>50)" + JetMatching_75_-999_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>75)" + JetMatching_100_-999_V29: + object: seededConePuppiJet + dir: outputs/V29/turnons/ + label: "SC PuppiJet (L1 $p_T$>100)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + watermark: "V29_SCJet_Comp" + save_dir: "outputs/V29/turnons" + +Electrons_Turnons_V29: + files: + ElectronsMatching_10_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>10)" + ElectronsMatching_20_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>20)" + ElectronsMatching_30_-999_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>30)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + watermark: "V29_tkIsoEle_Comp" + save_dir: "outputs/V29/turnons" + +Muons_Turnons_V29: + files: + MuonsMatching_5_-999_V29: + object: gmtTkMuon + dir: outputs/V29/turnons/ + label: "GMT TkMuon (L1 $p_T$>5)" + MuonsMatching_15_-999_V29: + object: gmtTkMuon + dir: outputs/V29/turnons/ + label: "GMT TkMuon (L1 $p_T$>15)" + MuonsMatching_25_-999_V29: + object: gmtTkMuon + dir: outputs/V29/turnons/ + label: "GMT TkMuon (L1 $p_T$>25)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + watermark: "V29_gmtTkMuon_Comp" + save_dir: "outputs/V29/turnons" diff --git a/configs/V31/object_performance/slim/egamma_trigger_inclusive.yaml b/configs/V31/object_performance/slim/egamma_trigger_inclusive.yaml new file mode 100644 index 00000000..fd66981f --- /dev/null +++ b/configs/V31/object_performance/slim/egamma_trigger_inclusive.yaml @@ -0,0 +1,85 @@ +ElectronsTrigger_Inclusive: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_e" + suffix: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + test_objects: + EG: + suffix: "Pt" + label: "EG" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + tkElectron: + suffix: "Pt" + label: "tkElectron" + match_dR: 0.15 + cuts: + - "{passeseleid} == 1" + tkIsoElectron: + base_obj: "tkElectron" + suffix: "Pt" + label: "tkIsoElectron" + iso_BB: 0.13 + iso_EE: 0.28 + iso_branch: "trkiso" + match_dR: 0.15 + cuts: + - "{passeseleid} == 1" + thresholds: [30] #[10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +PhotonsTrigger_Inclusive: + sample: Hgg + default_version: V29 + reference_object: + object: "part_gamma" + suffix: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + test_objects: + EG: + suffix: "Pt" + label: "EG" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "{passeseleid} == 1" + tkPhoton: + match_dR: 0.15 + suffix: "Pt" + label: "tkPhoton" + quality_id: "QUAL_125x_tkPhoID" + tkIsoPhoton: + base_obj: "tkPhoton" + match_dR: 0.15 + suffix: "Pt" + label: "tkIsoPhoton" + iso_EE: 0.2 + iso_BB: 0.2 + iso_branch: trkiso + quality_id: "QUAL_125x_tkPhoID" + thresholds: [30] #[10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 diff --git a/configs/V31/object_performance/slim/egamma_trigger_tkiso_inclusive.yaml b/configs/V31/object_performance/slim/egamma_trigger_tkiso_inclusive.yaml new file mode 100644 index 00000000..d2b367c4 --- /dev/null +++ b/configs/V31/object_performance/slim/egamma_trigger_tkiso_inclusive.yaml @@ -0,0 +1,62 @@ +ElectronsTrigger_Iso_Inclusive: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_e" + suffix: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + test_objects: + tkIsoElectron: + base_obj: "tkElectron" + suffix: "Pt" + label: "tkIsoElectron" + iso_BB: 0.13 + iso_EE: 0.28 + iso_branch: "trkiso" + match_dR: 0.15 + cuts: + - "{passeseleid} == 1" + thresholds: [10, 20, 30] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +PhotonsTrigger_Iso_Inclusive: + sample: Hgg + default_version: V29 + reference_object: + object: "part_gamma" + suffix: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + test_objects: + tkIsoPhoton: + base_obj: "tkPhoton" + match_dR: 0.15 + suffix: "Pt" + label: "tkIsoPhoton" + iso_EE: 0.2 + iso_BB: 0.2 + iso_branch: trkiso + quality_id: "QUAL_125x_tkPhoID" + thresholds: [10, 20, 30] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 diff --git a/configs/V31/object_performance/slim/ele_test.yaml b/configs/V31/object_performance/slim/ele_test.yaml new file mode 100644 index 00000000..a43c6949 --- /dev/null +++ b/configs/V31/object_performance/slim/ele_test.yaml @@ -0,0 +1,45 @@ +ElectronsMatching_25: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_e" + suffix: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 25" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + tkElectron: + suffix: "Pt" + label: "TkElectron" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{passeseleid} == 1" + tkIsoElectron: + base_obj: "tkElectron" + suffix: "Pt" + label: "TkIsoElectron" + iso_BB: 0.13 + iso_EE: 0.28 + iso_branch: "trkiso" + match_dR: 0.15 + cuts: + - "{passeseleid} == 1" + - "abs({eta}) < 2.5" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 0 + max: 150 + step: 3 diff --git a/configs/V31/object_performance/slim/electron_matching.yaml b/configs/V31/object_performance/slim/electron_matching.yaml new file mode 100644 index 00000000..5463cb9f --- /dev/null +++ b/configs/V31/object_performance/slim/electron_matching.yaml @@ -0,0 +1,191 @@ +ElectronsMatching_10: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_e" + suffix: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG (L1 $p_{T}$ > 10 GeV)" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 10" + tkElectron: + suffix: "Pt" + label: "TkElectron (L1 $p_{T}$ > 10 GeV)" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 10" + - "{passeseleid} == 1" + tkIsoElectron: + base_obj: "tkElectron" + suffix: "Pt" + label: "TkIsoElectron (L1 $p_{T}$ > 10 GeV)" + iso_BB: 0.13 + iso_EE: 0.28 + iso_branch: "trkiso" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{passeseleid} == 1" + - "{pt} > 10" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 150 + step: 3 + +ElectronsMatching_20: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_e" + suffix: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG (L1 $p_{T}$ > 20 GeV)" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 20" + tkElectron: + suffix: "Pt" + label: "TkElectron (L1 $p_{T}$ > 20 GeV)" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 20" + - "{passeseleid} == 1" + tkIsoElectron: + base_obj: "tkElectron" + suffix: "Pt" + label: "TkIsoElectron (L1 $p_{T}$ > 20 GeV)" + iso_BB: 0.13 + iso_EE: 0.28 + iso_branch: "trkiso" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{passeseleid} == 1" + - "{pt} > 20" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 150 + step: 3 + +ElectronsMatching_25: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_e" + suffix: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG (L1 $p_{T}$ > 25 GeV)" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + tkElectron: + suffix: "Pt" + label: "TkElectron (L1 $p_{T}$ > 25 GeV)" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + - "{passeseleid} == 1" + tkIsoElectron: + base_obj: "tkElectron" + suffix: "Pt" + label: "TkIsoElectron (L1 $p_{T}$ > 25 GeV)" + iso_BB: 0.13 + iso_EE: 0.28 + iso_branch: "trkiso" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{passeseleid} == 1" + - "{pt} > 25" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 150 + step: 3 + +ElectronsMatching_30: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_e" + suffix: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG (L1 $p_{T}$ > 30 GeV)" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 30" + tkElectron: + suffix: "Pt" + label: "TkElectron (L1 $p_{T}$ > 30 GeV)" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 30" + - "{passeseleid} == 1" + tkIsoElectron: + base_obj: "tkElectron" + suffix: "Pt" + label: "TkIsoElectron (L1 $p_{T}$ > 30 GeV)" + iso_BB: 0.13 + iso_EE: 0.28 + iso_branch: "trkiso" + match_dR: 0.15 + cuts: + - "abs({eta}) < 2.5" + - "{passeseleid} == 1" + - "{pt} > 30" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 150 + step: 3 diff --git a/configs/V31/object_performance/slim/electrons_comparisons.yaml b/configs/V31/object_performance/slim/electrons_comparisons.yaml new file mode 100644 index 00000000..c5e35714 --- /dev/null +++ b/configs/V31/object_performance/slim/electrons_comparisons.yaml @@ -0,0 +1,18 @@ +Electrons_Turnons_V29: + files: + ElectronsTrigger_Iso_Inclusive_10_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>10)" + ElectronsTrigger_Iso_Inclusive_20_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>20)" + ElectronsTrigger_Iso_Inclusive_30_V29: + object: tkIsoElectron + dir: outputs/V29/turnons/ + label: "tkIsoElectron (L1 $p_T$>30)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency" + watermark: "V29_tkIsoEle_Comp" + save_dir: "outputs/V29/turnons" diff --git a/configs/V31/object_performance/slim/jets_matching.yaml b/configs/V31/object_performance/slim/jets_matching.yaml new file mode 100644 index 00000000..d8c38fd5 --- /dev/null +++ b/configs/V31/object_performance/slim/jets_matching.yaml @@ -0,0 +1,128 @@ +JetMatching_25: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen Jets" + cuts: + object: + - "abs({eta}) < 2.5" + test_objects: + seededConePuppiJet: + match_dR: 0.35 + suffix: "Pt" + label: "Seeded Cone PuppiJet (L1 $p_{T}$ > 25 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + trackerJet: + match_dR: 0.4 + suffix: "Pt" + label: "Tracker Jet (L1 $p_{T}$ > 25 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 500 + step: 10 + +JetMatching_50: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen Jets" + cuts: + object: + - "abs({eta}) < 2.5" + test_objects: + seededConePuppiJet: + match_dR: 0.35 + suffix: "Pt" + label: "Seeded Cone PuppiJet (L1 $p_{T}$ > 50 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 50" + trackerJet: + match_dR: 0.4 + suffix: "Pt" + label: "Tracker Jet (L1 $p_{T}$ > 50 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 50" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 500 + step: 10 + +JetMatching_75: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen Jets" + cuts: + object: + - "abs({eta}) < 2.5" + test_objects: + seededConePuppiJet: + match_dR: 0.35 + suffix: "Pt" + label: "Seeded Cone PuppiJet (L1 $p_{T}$ > 75 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 75" + trackerJet: + match_dR: 0.4 + suffix: "Pt" + label: "Tracker Jet (L1 $p_{T}$ > 75 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 75" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 500 + step: 10 + +JetMatching_160: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen Jets" + cuts: + object: + - "abs({eta}) < 2.5" + test_objects: + seededConePuppiJet: + match_dR: 0.35 + suffix: "Pt" + label: "Seeded Cone PuppiJet (L1 $p_{T}$ > 160 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 160" + trackerJet: + match_dR: 0.4 + suffix: "Pt" + label: "Tracker Jet (L1 $p_{T}$ > 160 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 160" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 500 + step: 10 + diff --git a/configs/V31/object_performance/slim/jets_matching_eta.yaml b/configs/V31/object_performance/slim/jets_matching_eta.yaml new file mode 100644 index 00000000..eb3aad26 --- /dev/null +++ b/configs/V31/object_performance/slim/jets_matching_eta.yaml @@ -0,0 +1,64 @@ +JetMatching_Eta_Pt40To100: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + seededConePuppiJet: + match_dR: 0.35 + suffix: "Eta" + label: "Seeded Cone PuppiJet" + cuts: + - "abs({eta}) < 5" + trackerJet: + match_dR: 0.4 + suffix: "Eta" + label: "Tracker Jet" + cuts: + - "abs({eta}) < 2.4" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + seededConePuppiJet: + match_dR: 0.35 + suffix: "Eta" + label: "Seeded Cone PuppiJet" + cuts: + - "abs({eta}) < 5" + trackerJet: + match_dR: 0.4 + suffix: "Eta" + label: "Tracker Jet" + cuts: + - "abs({eta}) < 2.4" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 diff --git a/configs/V31/object_performance/slim/jets_trigger_inclusive.yaml b/configs/V31/object_performance/slim/jets_trigger_inclusive.yaml new file mode 100644 index 00000000..52bb659d --- /dev/null +++ b/configs/V31/object_performance/slim/jets_trigger_inclusive.yaml @@ -0,0 +1,30 @@ +JetTurnon_Inclusive: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen Jets" + test_objects: + phase1PuppiJet: + match_dR: 0.3 + suffix: "Pt" + label: "Histogrammed PuppiJet" + seededConePuppiJet: + match_dR: 0.35 + suffix: "Pt" + label: "Seeded Cone PuppiJet" + trackerJet: + match_dR: 0.4 + suffix: "Pt" + label: "Tracker Jet" + thresholds: [100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V31/object_performance/slim/jets_trigger_sc_inclusive.yaml b/configs/V31/object_performance/slim/jets_trigger_sc_inclusive.yaml new file mode 100644 index 00000000..bff95210 --- /dev/null +++ b/configs/V31/object_performance/slim/jets_trigger_sc_inclusive.yaml @@ -0,0 +1,22 @@ +JetTurnon_SC_Inclusive: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen Jets" + test_objects: + seededConePuppiJet: + match_dR: 0.35 + suffix: "Pt" + label: "Seeded Cone PuppiJet" + thresholds: [25, 50, 75, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V31/object_performance/slim/met.yaml b/configs/V31/object_performance/slim/met.yaml new file mode 100644 index 00000000..6ad199f6 --- /dev/null +++ b/configs/V31/object_performance/slim/met.yaml @@ -0,0 +1,84 @@ +MET: + sample: TT + default_version: V29 + reference_object: + object: "genMetTrue" + suffix: "" + label: "Gen MET" + test_objects: + puppiMET: + suffix: "et" + label: "Puppi MET" + trackerMET: + suffix: "" + label: "Tracker MET" + thresholds: [90] + xlabel: "Gen. MET (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 500 + step: 20 + +MHT30: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + seededConePuppiMHT: + suffix: "et" + label: "SeededCone MHT" + trackerMHT: + suffix: "" + label: "Tracker MHT" + thresholds: [150] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +HT: + sample: TT + default_version: V29 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen HT" + trafo: "HT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + test_objects: + seededConePuppiHT: + suffix: "" + label: "SeededCone HT" + trackerHT: + suffix: "" + label: "Tracker HT" + thresholds: [350] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. HT (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 750 + step: 20 diff --git a/configs/V31/object_performance/slim/muon_matching.yaml b/configs/V31/object_performance/slim/muon_matching.yaml new file mode 100644 index 00000000..755f0c12 --- /dev/null +++ b/configs/V31/object_performance/slim/muon_matching.yaml @@ -0,0 +1,104 @@ +MuonsMatching_5: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_mu" + suffix: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.4" + test_objects: + gmtMuon: + suffix: "Pt" + label: "GMT Muon (L1 $p_{T}$ > 5 GeV)" + match_dR: 0.3 + cuts: + - "abs({eta}) < 2.4" + - "{pt} > 5" + gmtTkMuon: + suffix: "Pt" + label: "GMT TkMuon (L1 $p_{T}$ > 5 GeV)" + match_dR: 0.1 + cuts: + - "abs({eta}) < 2.4" + - "{pt} > 5" + - "({quality}) > 0" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatching_15: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_mu" + suffix: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.4" + test_objects: + gmtMuon: + suffix: "Pt" + label: "GMT Muon (L1 $p_{T}$ > 15 GeV)" + match_dR: 0.3 + cuts: + - "abs({eta}) < 2.4" + - "{pt} > 15" + gmtTkMuon: + suffix: "Pt" + label: "GMT TkMuon (L1 $p_{T}$ > 15 GeV)" + match_dR: 0.1 + cuts: + - "abs({eta}) < 2.4" + - "{pt} > 15" + - "({quality}) > 0" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatching_20: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_mu" + suffix: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.4" + test_objects: + gmtMuon: + suffix: "Pt" + label: "GMT Muon (L1 $p_{T}$ > 20 GeV)" + match_dR: 0.3 + cuts: + - "abs({eta}) < 2.4" + - "{pt} > 20" + gmtTkMuon: + suffix: "Pt" + label: "GMT TkMuon (L1 $p_{T}$ > 20 GeV)" + match_dR: 0.1 + cuts: + - "abs({eta}) < 2.4" + - "{pt} > 20" + - "({quality}) > 0" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V31/object_performance/slim/muon_trigger_gmtTK_inclusive.yaml b/configs/V31/object_performance/slim/muon_trigger_gmtTK_inclusive.yaml new file mode 100644 index 00000000..9036e9fc --- /dev/null +++ b/configs/V31/object_performance/slim/muon_trigger_gmtTK_inclusive.yaml @@ -0,0 +1,27 @@ +MuonsTrigger_gmtkMu_Inclusive: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_mu" + suffix: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + test_objects: + gmtTkMuon: + suffix: "Pt" + label: "GMT TkMuon" + match_dR: 0.3 + cuts: + - "({quality}) > 0" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (L1 $p_T > $ GeV)" + thresholds: [5, 15, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 diff --git a/configs/V31/object_performance/slim/muon_trigger_inclusive.yaml b/configs/V31/object_performance/slim/muon_trigger_inclusive.yaml new file mode 100644 index 00000000..afc6b492 --- /dev/null +++ b/configs/V31/object_performance/slim/muon_trigger_inclusive.yaml @@ -0,0 +1,31 @@ +MuonsTrigger_Inclusive: + sample: DYLL_M50 + default_version: V29 + reference_object: + object: "part_mu" + suffix: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + test_objects: + gmtMuon: + suffix: "Pt" + label: "GMT Muon" + match_dR: 0.3 + gmtTkMuon: + suffix: "Pt" + label: "GMT TkMuon" + match_dR: 0.3 + cuts: + - "({quality}) > 0" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 diff --git a/configs/V31/object_performance/slim/pho_test.yaml b/configs/V31/object_performance/slim/pho_test.yaml new file mode 100644 index 00000000..6caafc17 --- /dev/null +++ b/configs/V31/object_performance/slim/pho_test.yaml @@ -0,0 +1,47 @@ +PhotonsMatching_25: + sample: Hgg + default_version: V29 + reference_object: + object: "part_gamma" + suffix: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + tkPhoton: + match_dR: 0.15 + suffix: "Pt" + label: "tkPhoton" + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + tkIsoPhoton: + base_obj: "tkPhoton" + match_dR: 0.15 + suffix: "Pt" + label: "tkIsoPhoton" + iso_EE: 0.2 + iso_BB: 0.2 + iso_branch: trkiso + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V31/object_performance/slim/photons_matching.yaml b/configs/V31/object_performance/slim/photons_matching.yaml new file mode 100644 index 00000000..db57ed8a --- /dev/null +++ b/configs/V31/object_performance/slim/photons_matching.yaml @@ -0,0 +1,191 @@ +PhotonsMatching_10: + sample: Hgg + default_version: V29 + reference_object: + object: "part_gamma" + suffix: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG (L1 $p_{T}$ > 10 GeV)" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 10" + tkPhoton: + match_dR: 0.15 + suffix: "Pt" + label: "tkPhoton (L1 $p_{T}$ > 10 GeV)" + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 10" + tkIsoPhoton: + base_obj: "tkPhoton" + match_dR: 0.15 + suffix: "Pt" + label: "tkIsoPhoton (L1 $p_{T}$ > 10 GeV)" + iso_EE: 0.2 + iso_BB: 0.2 + iso_branch: trkiso + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 10" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_20: + sample: Hgg + default_version: V29 + reference_object: + object: "part_gamma" + suffix: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG (L1 $p_{T}$ > 20 GeV)" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 20" + tkPhoton: + match_dR: 0.15 + suffix: "Pt" + label: "tkPhoton (L1 $p_{T}$ > 20 GeV)" + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 20" + tkIsoPhoton: + base_obj: "tkPhoton" + match_dR: 0.15 + suffix: "Pt" + label: "tkIsoPhoton (L1 $p_{T}$ > 20 GeV)" + iso_EE: 0.2 + iso_BB: 0.2 + iso_branch: trkiso + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 20" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_25: + sample: Hgg + default_version: V29 + reference_object: + object: "part_gamma" + suffix: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG (L1 $p_{T}$ > 25 GeV)" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + tkPhoton: + match_dR: 0.15 + suffix: "Pt" + label: "tkPhoton (L1 $p_{T}$ > 25 GeV)" + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + tkIsoPhoton: + base_obj: "tkPhoton" + match_dR: 0.15 + suffix: "Pt" + label: "tkIsoPhoton (L1 $p_{T}$ > 25 GeV)" + iso_EE: 0.2 + iso_BB: 0.2 + iso_branch: trkiso + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_30: + sample: Hgg + default_version: V29 + reference_object: + object: "part_gamma" + suffix: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + EG: + suffix: "Pt" + label: "EG (L1 $p_{T}$ > 30 GeV)" + match_dR: 0.2 + quality_id: "QUAL_125x_EGID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 30" + tkPhoton: + match_dR: 0.15 + suffix: "Pt" + label: "tkPhoton (L1 $p_{T}$ > 30 GeV)" + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 30" + tkIsoPhoton: + base_obj: "tkPhoton" + match_dR: 0.15 + suffix: "Pt" + label: "tkIsoPhoton (L1 $p_{T}$ > 30 GeV)" + iso_EE: 0.2 + iso_BB: 0.2 + iso_branch: trkiso + quality_id: "QUAL_125x_tkPhoID" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 30" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V31/object_performance/slim/tau_matching.yaml b/configs/V31/object_performance/slim/tau_matching.yaml new file mode 100644 index 00000000..09dba5c3 --- /dev/null +++ b/configs/V31/object_performance/slim/tau_matching.yaml @@ -0,0 +1,67 @@ +TausMatching_25: + sample: VBFHToTauTau + default_version: V29 + reference_object: + object: "part_tau" + suffix: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 2.5" + test_objects: + nnTau: + suffix: "Pt" + label: "NN Tau (L1 $p_{T}$ > 25 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 25" + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Pt" + label: "Calo Tau (L1 $p_{T}$ > 60 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 60" + match_dR: 0.3 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 150 + step: 6 + +TausMatching_75: + sample: VBFHToTauTau + default_version: V29 + reference_object: + object: "part_tau" + suffix: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + test_objects: + nnTau: + suffix: "Pt" + label: "NN Tau (L1 $p_{T}$ > 25 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 75" + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Pt" + label: "Calo Tau (L1 $p_{T}$ > 25 GeV)" + cuts: + - "abs({eta}) < 2.5" + - "{pt} > 75" + match_dR: 0.3 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Efficiency" + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V31/object_performance/slim/tau_matching_eta.yaml b/configs/V31/object_performance/slim/tau_matching_eta.yaml new file mode 100644 index 00000000..0982ca3f --- /dev/null +++ b/configs/V31/object_performance/slim/tau_matching_eta.yaml @@ -0,0 +1,137 @@ +TauMatching_Eta_Pt10to25: + sample: VBFHToTauTau + default_version: V29 + reference_object: + object: "part_tau" + suffix: "Eta" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} < 10" + - "{pt} > 25" + object: + - "abs({eta}) < 2.5" + test_objects: + nnTau: + suffix: "Eta" + label: "NN Tau" + cuts: + - "abs({eta}) < 2.5" + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Eta" + label: "Calo Tau" + cuts: + - "abs({eta}) < 2.5" + match_dR: 0.3 + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +TausMatching_Eta_Pt25toInf: + sample: VBFHToTauTau + default_version: V29 + reference_object: + object: "part_tau" + suffix: "Eta" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 25" + object: + - "abs({eta}) < 2.5" + test_objects: + nnTau: + suffix: "Eta" + label: "NN Tau" + cuts: + - "abs({eta}) < 2.5" + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Eta" + label: "Calo Tau" + cuts: + - "abs({eta}) < 2.5" + match_dR: 0.3 + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($p_T > 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +TauMatching_Eta_Pt40to100: + sample: VBFHToTauTau + default_version: V29 + reference_object: + object: "part_tau" + suffix: "Eta" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} < 100" + - "{pt} > 40" + object: + - "abs({eta}) < 2.5" + test_objects: + nnTau: + suffix: "Eta" + label: "NN Tau" + cuts: + - "abs({eta}) < 2.5" + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Eta" + label: "Calo Tau" + cuts: + - "abs({eta}) < 2.5" + match_dR: 0.3 + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($40 < p_T < 100$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +TausMatching_Eta_Pt100toInf: + sample: VBFHToTauTau + default_version: V29 + reference_object: + object: "part_tau" + suffix: "Eta" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 100" + object: + - "abs({eta}) < 2.5" + test_objects: + nnTau: + suffix: "Eta" + label: "NN Tau" + cuts: + - "abs({eta}) < 2.5" + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Eta" + label: "Calo Tau" + cuts: + - "abs({eta}) < 2.5" + match_dR: 0.3 + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($p_T > 100$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V31/object_performance/slim/tau_trigger_inclusive.yaml b/configs/V31/object_performance/slim/tau_trigger_inclusive.yaml new file mode 100644 index 00000000..90989e9b --- /dev/null +++ b/configs/V31/object_performance/slim/tau_trigger_inclusive.yaml @@ -0,0 +1,31 @@ +TauTrigger_Inclusive: + sample: VBFHToTauTau + default_version: V29 + reference_object: + object: "part_tau" + suffix: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + test_objects: + nnTau: + suffix: "Pt" + label: "NN Tau" + cuts: + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Pt" + label: "Calo Tau" + match_dR: 0.3 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (L1 $p_T > $ GeV)" + thresholds: [25] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V31/object_performance/tau_matching.yaml b/configs/V31/object_performance/tau_matching.yaml new file mode 100644 index 00000000..6cce9064 --- /dev/null +++ b/configs/V31/object_performance/tau_matching.yaml @@ -0,0 +1,47 @@ +TausMatchingBarrel: + sample: VBFHToTauTau + version: V31 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default: "Pt" + caloTau:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 150 + step: 6 + +TausMatchingEndcap: + sample: VBFHToTauTau + version: V31 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default: "Pt" + caloTau:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V31/object_performance/tau_matching_wHH.yaml b/configs/V31/object_performance/tau_matching_wHH.yaml new file mode 100644 index 00000000..e604d6fc --- /dev/null +++ b/configs/V31/object_performance/tau_matching_wHH.yaml @@ -0,0 +1,47 @@ +HHTausMatchingBarrel: + sample: HHToTauTau + version: V31 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default: "Pt" + caloTau:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 150 + step: 6 + +HHTausMatchingEndcap: + sample: HHToTauTau + version: V31 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default: "Pt" + caloTau:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V31/object_performance/tau_trigger.yaml b/configs/V31/object_performance/tau_trigger.yaml new file mode 100644 index 00000000..9a99be32 --- /dev/null +++ b/configs/V31/object_performance/tau_trigger.yaml @@ -0,0 +1,55 @@ +TauTriggerBarrel_90perc: + sample: VBFHToTauTau + version: V31 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default:barrel: "Pt" + caloTau:default:barrel: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 + +TauTriggerEndcap_90perc: + sample: VBFHToTauTau + version: V31 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default:endcap: "Pt" + caloTau:default:endcap: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V31/objects/electrons.yaml b/configs/V31/objects/electrons.yaml new file mode 100644 index 00000000..7580e86e --- /dev/null +++ b/configs/V31/objects/electrons.yaml @@ -0,0 +1,69 @@ +part_e: + label: "Gen Electron" + eta_ranges: + inclusive: [0, 7] + ids: + gen_electron_default: + cuts: + inclusive: + - "{dr_0.3} < 0.15" + +tkElectron: + match_dR: 0.15 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.479] + endcap: [1.479, 5] + ids: + NoIso: + label: "TkElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "({passeseleid} == 1) | ({pt} < 25)" + NoIsoForIso: + # This id is exclusively used for the + # isoloation wp derivation + label: "TkElectron id in barrel" + cuts: + inclusive: + - "abs({eta}) < 2.7" + barrel: + - "({passeseleid} == 1) | ({pt} < 25)" + Iso: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({trkiso}) < 0.13" + - "({passeseleid} == 1) | ({pt} < 25)" + endcap: + - "abs({trkiso}) < 0.28" + IsoNoIDinEE: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({trkiso}) < 0.13" + - "({passeseleid} == 1) | ({pt} < 25)" + endcap: + - "abs({trkiso}) < 0.28" + +EG: + match_dR: 0.2 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.479] + endcap: [1.479, 3.0] + label: "EG" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 3.0" + barrel: + - "{passeseleid} == 1" + endcap: + - "{passessaid} == 1" diff --git a/configs/V31/objects/jets.yaml b/configs/V31/objects/jets.yaml new file mode 100644 index 00000000..38a787ca --- /dev/null +++ b/configs/V31/objects/jets.yaml @@ -0,0 +1,73 @@ +caloJet: + match_dR: 0.3 + label: "Calo Jet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + cuts: + inclusive: + - "abs({eta}) < 7" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +seededConeExtendedPuppiJet: + match_dR: 0.35 + label: "Seeded Cone Extended PuppiJet" + eta_ranges: + inclusive: [0, 7] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 5" + bjetnn: + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{bjetnn} > 0.71" + +phase1PuppiJet: + match_dR: 0.3 + label: "Histogrammed PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +seededConePuppiJet: + match_dR: 0.35 + label: "Seeded Cone PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +trackerJet: + match_dR: 0.4 + label: "Tracker Jet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" diff --git a/configs/V31/objects/met_ht_mht.yaml b/configs/V31/objects/met_ht_mht.yaml new file mode 100644 index 00000000..8e0a6e45 --- /dev/null +++ b/configs/V31/objects/met_ht_mht.yaml @@ -0,0 +1,39 @@ +phase1PuppiHT: + label: "Histogrammed Puppi HT" + ids: + default: {} + +phase1PuppiMHT: + label: "Phase1 Puppi MHT" + ids: + default: {} + +puppiMET: + label: "Puppi MET" + ids: + default: {} + +seededConePuppiHT: + label: "SeededCone HT" + ids: + default: {} + +seededConePuppiMHT: + label: "SeededCone MHT" + ids: + default: {} + +trackerHT: + label: "Tracker HT" + ids: + default: {} + +trackerMET: + label: "Tracker MET" + ids: + default: {} + +trackerMHT: + label: "Tracker MHT" + ids: + default: {} diff --git a/configs/V31/objects/muons.yaml b/configs/V31/objects/muons.yaml new file mode 100644 index 00000000..06a6bc43 --- /dev/null +++ b/configs/V31/objects/muons.yaml @@ -0,0 +1,24 @@ +gmtMuon: + label: "GMT Muon" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 0.83] + overlap: [0.83, 1.24] + endcap: [1.24, 2.4] + ids: + default: {} + +gmtTkMuon: + label: "GMT TkMuon" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 0.83] + overlap: [0.83, 1.24] + endcap: [1.24, 2.4] + ids: + default: + cuts: + inclusive: + - "({quality} > 0) | ({pt} > 8)" # quality criterion only to be appied for p_T < 8 GeV diff --git a/configs/V31/objects/photons.yaml b/configs/V31/objects/photons.yaml new file mode 100644 index 00000000..c2075e19 --- /dev/null +++ b/configs/V31/objects/photons.yaml @@ -0,0 +1,27 @@ +tkPhoton: + match_dR: 0.15 + eta_ranges: + inclusive: [0, 5] + barrel: [0, 1.479] + endcap: [1.479, 2.4] + ids: + NoIso: + label: "tkPhoton" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "{passeseleid} == 1" + endcap: + - "{passesphoid} == 1" + Iso: + label: "tkIsoPhoton" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({trkiso}) < 0.2" + - "{passeseleid} == 1" + endcap: + - "abs({trkiso}) < 0.2" + - "{passesphoid} == 1" diff --git a/configs/V31/objects/taus.yaml b/configs/V31/objects/taus.yaml new file mode 100644 index 00000000..386adf5b --- /dev/null +++ b/configs/V31/objects/taus.yaml @@ -0,0 +1,31 @@ +nnTau: + label: "NN Tau" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + cuts: + inclusive: + - "{passloosenn}==1" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{passloosenn}==1" + +caloTau: + label: "Calo Tau" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + label: "Calo Tau, pt>20" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{pt} > 20" diff --git a/configs/V31/rate_plots/eg.yaml b/configs/V31/rate_plots/eg.yaml new file mode 100644 index 00000000..0048997d --- /dev/null +++ b/configs/V31/rate_plots/eg.yaml @@ -0,0 +1,12 @@ +EGRates: + sample: MinBias + version: V31 + test_objects: + - EG:default + - tkElectron:NoIso + - tkElectron:Iso + - tkPhoton:Iso + binning: + min: 10 + max: 97 + step: 3 diff --git a/configs/V31/rate_plots/ht.yaml b/configs/V31/rate_plots/ht.yaml new file mode 100644 index 00000000..2a24a1bd --- /dev/null +++ b/configs/V31/rate_plots/ht.yaml @@ -0,0 +1,23 @@ +HTRates: + sample: MinBias + version: V31 + test_objects: + - phase1PuppiHT:default + - seededConePuppiHT:default + - trackerHT:default + binning: + min: 50 + max: 975 + step: 25 + +MHTRates: + sample: MinBias + version: V31 + test_objects: + - phase1PuppiMHT:default + - seededConePuppiMHT:default + - trackerMHT:default + binning: + min: 50 + max: 975 + step: 25 diff --git a/configs/V31/rate_plots/jets.yaml b/configs/V31/rate_plots/jets.yaml new file mode 100644 index 00000000..8277fde3 --- /dev/null +++ b/configs/V31/rate_plots/jets.yaml @@ -0,0 +1,27 @@ +JetDefaultRates: + sample: MinBias + version: V31 + test_objects: + - phase1PuppiJet:default + - seededConePuppiJet:default + # - seededConeExtendedPuppiJet:default + - trackerJet:default + - caloJet:default + binning: + min: 40 + max: 420 + step: 20 + +JetsByRegion: + sample: MinBias + version: V31 + test_objects: + - phase1PuppiJet:default:barrel + - phase1PuppiJet:default:endcap + - seededConePuppiJet:default:barrel + - seededConePuppiJet:default:endcap + binning: + min: 40 + max: 420 + step: 20 + diff --git a/configs/V31/rate_plots/met.yaml b/configs/V31/rate_plots/met.yaml new file mode 100644 index 00000000..a97eda8b --- /dev/null +++ b/configs/V31/rate_plots/met.yaml @@ -0,0 +1,10 @@ +METRates: + sample: MinBias + version: V31 + test_objects: + - puppiMET:default + - trackerMET:default + binning: + min: 50 + max: 500 + step: 25 diff --git a/configs/V31/rate_plots/muons.yaml b/configs/V31/rate_plots/muons.yaml new file mode 100644 index 00000000..515a6d63 --- /dev/null +++ b/configs/V31/rate_plots/muons.yaml @@ -0,0 +1,22 @@ +gmtMuonByRegion: + sample: MinBias + version: V31 + test_objects: + - gmtMuon:default:barrel + - gmtMuon:default:overlap + - gmtMuon:default:endcap + binning: + min: 0 + max: 75 + step: 3 + +MuonRates: + sample: MinBias + version: V31 + test_objects: + - gmtMuon:default + - gmtTkMuon:default + binning: + min: 0 + max: 75 + step: 3 diff --git a/configs/V31/rate_plots/taus.yaml b/configs/V31/rate_plots/taus.yaml new file mode 100644 index 00000000..9d6d90a5 --- /dev/null +++ b/configs/V31/rate_plots/taus.yaml @@ -0,0 +1,23 @@ +TauRates: + sample: MinBias + version: V31 + test_objects: + - nnTau:default + - caloTau:default + binning: + min: 10 + max: 155 + step: 5 + +TauRatesByRegion: + sample: MinBias + version: V31 + test_objects: + - caloTau:default:barrel + - caloTau:default:endcap + - nnTau:default:barrel + - nnTau:default:endcap + binning: + min: 10 + max: 155 + step: 5 diff --git a/configs/V32/caching.yaml b/configs/V32/caching.yaml new file mode 100644 index 00000000..e65db535 --- /dev/null +++ b/configs/V32/caching.yaml @@ -0,0 +1,76 @@ +V32: + DYLL_M50: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v32_reL1only/DYToLL_M-50_TuneCP5_14TeV-pythia8/DY_M50_131_200PU_v32_reL1only/240205_120621/0000/L1NtuplePhaseII_Step1_*.root + trees_branches: + genTree/L1GenTree: + part_mu: [Id, Stat, Pt, Eta, Phi] + part_e: [Id, Stat, Pt, Eta, Phi] + l1PhaseIITree/L1PhaseIITree: + tkElectron: [Pt, Et, Eta, Phi, Chg, Bx, TrkIso, PfIso, PuppiIso, zVtx, HwQual, HGC, PassesEleID, PassesPhoID] + EG: [Pt, Et, Eta, Phi, Bx, Iso, HwQual, HGC, PassesEleID, PassesSaID] + gmtMuon: [Pt, Eta, Phi, Z0, D0, IPt, IEta, IPhi, IZ0, ID0, Chg, Iso, Qual, Beta, Bx] + gmtTkMuon: [Pt, Eta, Phi, Z0, D0, IPt, IEta, IPhi, IZ0, ID0, Chg, Iso, Qual, Beta, NStubs, Bx] + TT: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v32_reL1only/TT_TuneCP5_14TeV-powheg-pythia8/TT_131_200PU_v32_reL1only/240206_115846/0000/L1NtuplePhaseII_Step1_*.root + trees_branches: + genTree/L1GenTree: + # genMetTrue: "all" # DOES NOT EXIST IN ABOVE + jet: [Pt, Eta, Phi] + l1PhaseIITree/L1PhaseIITree: + puppiMET: "all" + phase1PuppiJet: [Pt, Et, Eta, Phi] + phase1PuppiMHT: "all" + phase1PuppiHT: "all" + seededConePuppiJet: [Pt, Et, Eta, Phi] + seededConeExtendedPuppiJet: [Pt, Et, Eta, Phi, BJetNN] + seededConePuppiHT: "all" + seededConePuppiMHT: "all" + trackerJet: [Pt, Eta, Phi] + trackerMET: "all" + trackerMHT: "all" + trackerHT: "all" + caloJet: [Et, Pt, Eta, Phi] + VBFHToTauTau: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v32_reL1only/VBFHToTauTau_M-125_TuneCP5_14TeV-powheg-pythia8/VBFHToTauTau_131_200PU_v32_reL1only/240206_115854/0000/L1NtuplePhaseII_Step1_*.root + trees_branches: + genTree/L1GenTree: + part_tau: [Id, Stat, Pt, Eta, Phi, Parent, E] + l1PhaseIITree/L1PhaseIITree: + nnTau: [Et, Eta, Pt, Phi, FullIso, Z0, PassTightNN, Chg, DXY, PassLooseNN] + caloTau: [Et, Eta, Pt, Phi, Iso, HwQual, Bx] + # HHToTauTau: + # ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v29/HHToTauTau_1252_crab_v29_Snap3/230417_072539/0000/*.root + # trees_branches: + # genTree/L1GenTree: + # part_tau: [Id, Stat, Pt, Eta, Phi, Parent, E] + # l1PhaseIITree/L1PhaseIITree: + # nnTau: [Et, Eta, Pt, Phi, FullIso, Z0, PassTightNN, Chg, DXY, PassLooseNN] + # caloTau: [Et, Eta, Pt, Phi, Iso, HwQual] + # Hgg: + # ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v29/GluGluHToGG_1252_crab_v29_Snap3/230413_214505/0000/*.root + # trees_branches: + # genTree/L1GenTree: + # part_gamma: [Id, Stat, Pt, Eta, Phi] + # l1PhaseIITree/L1PhaseIITree: + # tkPhoton: [Pt, Et, Eta, Phi, Bx, TrkIso, HwQual, HGC, PassesEleID, PassesPhoID, TrkIsoPV] + # EG: [Pt, Et, Eta, Phi, Bx, Iso, HwQual, HGC, PassesEleID, PassesSaID] + # MinBias: + # ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v29/MinBias_1252_crb_v29_Snap3/230413_214525/*/*.root + # trees_branches: + # l1PhaseIITree/L1PhaseIITree: + # puppiMET: "all" + # phase1PuppiJet: "all" + # phase1PuppiMHT: "all" + # phase1PuppiHT: "all" + # seededConePuppiJet: [Pt, Et, Eta, Phi] + # seededConeExtendedPuppiJet: [Pt, Et, Eta, Phi, BJetNN] + # seededConePuppiHT: "all" + # seededConePuppiMHT: "all" + # tkElectron: [Pt, Et, Eta, Phi, Chg, Bx, TrkIso, PfIso, PuppiIso, zVtx, HwQual, HGC, PassesEleID, PassesPhoID] + # EG: [Pt, Et, Eta, Phi, Bx, Iso, HwQual, HGC, PassesEleID, PassesSaID] + # gmtTkMuon: [Pt, Eta, Phi, Z0, D0, IPt, IEta, IPhi, IZ0, ID0, Chg, Iso, Qual, Beta, NStubs, Bx] + # nnTau: [Et, Eta, Pt, Phi, FullIso, Z0, PassTightNN, Chg, DXY, PassLooseNN] + # tkPhoton: [Pt, Et, Eta, Phi, Bx, TrkIso, HwQual, HGC, PassesEleID, PassesPhoID, TrkIsoPV] + # z0L1TkPV: "all" + # caloTau: [Et, Eta, Pt, Phi, Iso, HwQual, Bx] + diff --git a/configs/V32/object_performance/bJetEff.yaml b/configs/V32/object_performance/bJetEff.yaml new file mode 100644 index 00000000..eff40260 --- /dev/null +++ b/configs/V32/object_performance/bJetEff.yaml @@ -0,0 +1,30 @@ +BJetEff_Pt: + files: + JetMatching_Pt_Pt30ToInf_genBJets_-999_V32: + object: seededConeExtendedPuppiJet + dir: outputs/V32/turnons/ + label: "Signal: Matched b-jets" + JetMatching_Pt_Pt30ToInf_genNotBJets_-999_V32: + object: seededConeExtendedPuppiJet + dir: outputs/V32/turnons/ + label: "Background: Unmatched b-jets" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + watermark: "BJet_Pt" + save_dir: "outputs/V32/BJet/turnons" + + +BJetEff_Eta: + files: + JetMatching_Eta_Pt30ToInf_genBJets_-999_V32: + object: seededConeExtendedPuppiJet + dir: outputs/V32/turnons/ + label: "Signal: Matched b-jets" + JetMatching_Eta_Pt30ToInf_genNotBJets_-999_V32: + object: seededConeExtendedPuppiJet + dir: outputs/V32/turnons/ + label: "Background: Unmatched b-jets" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency" + watermark: "BJet_Eta" + save_dir: "outputs/V32/BJet/turnons" diff --git a/configs/V32/object_performance/electron_iso.yaml b/configs/V32/object_performance/electron_iso.yaml new file mode 100644 index 00000000..225fc3ff --- /dev/null +++ b/configs/V32/object_performance/electron_iso.yaml @@ -0,0 +1,48 @@ +ElectronsIsolation_Barrel: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + iso_vs_efficiency: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.479" + object: + - "abs({eta}) < 1.479" + test_objects: + tkElectron:NoIso: "trkiso" + xlabel: "Isolation" + ylabel: "Efficiency (Barrel)" + binning: + min: 0 + max: 0.5 + step: 0.005 + +ElectronsIsolation_Endcap: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + iso_vs_efficiency: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.479" + object: + - "abs({eta}) < 2.4" + test_objects: + tkElectron:NoIsoForIso: "trkiso" + xlabel: "Isolation" + ylabel: "Efficiency (Endcap)" + binning: + min: 0 + max: 0.5 + step: 0.005 + diff --git a/configs/V32/object_performance/electron_matching.yaml b/configs/V32/object_performance/electron_matching.yaml new file mode 100644 index 00000000..b906d149 --- /dev/null +++ b/configs/V32/object_performance/electron_matching.yaml @@ -0,0 +1,49 @@ +ElectronsMatchingBarrel: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "Pt" + tkElectron:NoIso: "Pt" + tkElectron:Iso: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +ElectronsMatchingEndcap: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "Pt" + tkElectron:NoIso: "Pt" + tkElectron:Iso: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V32/object_performance/electron_matching_eta.yaml b/configs/V32/object_performance/electron_matching_eta.yaml new file mode 100644 index 00000000..bc1d34ca --- /dev/null +++ b/configs/V32/object_performance/electron_matching_eta.yaml @@ -0,0 +1,50 @@ +ElectronsMatching_Eta_Pt10to25: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Eta" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} < 25" + - "{pt} > 10" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + tkElectron:NoIso: "Eta" + tkElectron:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +ElectronsMatching_Eta_Pt25toInf: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Eta" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 25" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + tkElectron:NoIso: "Eta" + tkElectron:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($p_T > 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V32/object_performance/electron_trigger.yaml b/configs/V32/object_performance/electron_trigger.yaml new file mode 100644 index 00000000..03e13307 --- /dev/null +++ b/configs/V32/object_performance/electron_trigger.yaml @@ -0,0 +1,57 @@ +ElectronsTriggerBarrel: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.8" + test_objects: + EG:default:barrel: "Pt" + tkElectron:NoIso:barrel: "Pt" + tkElectron:Iso:barrel: "Pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +ElectronsTriggerEndcap: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_e" + x_arg: "Pt" + label: "Gen Electrons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.8" + test_objects: + EG:default:endcap: "Pt" + tkElectron:NoIso:endcap: "Pt" + tkElectron:Iso:endcap: "Pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 diff --git a/configs/V32/object_performance/jets_matching.yaml b/configs/V32/object_performance/jets_matching.yaml new file mode 100644 index 00000000..2dc8cbf1 --- /dev/null +++ b/configs/V32/object_performance/jets_matching.yaml @@ -0,0 +1,73 @@ +JetMatchingBarrel: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + phase1PuppiJet:default: "Pt" + seededConePuppiJet:default: "Pt" + caloJet:default: "Pt" + # trackerJet:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingEndcap: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + phase1PuppiJet:default: "Pt" + seededConePuppiJet:default: "Pt" + caloJet:default: "Pt" + # trackerJet:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingForward: + version: V32 + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + phase1PuppiJet:default: "Pt" + seededConePuppiJet:default: "Pt" + caloJet:default: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V32/object_performance/jets_matching_eta.yaml b/configs/V32/object_performance/jets_matching_eta.yaml new file mode 100644 index 00000000..0b457ca8 --- /dev/null +++ b/configs/V32/object_performance/jets_matching_eta.yaml @@ -0,0 +1,73 @@ +JetMatching_Eta_Pt40To100: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + phase1PuppiJet:default: "Eta" + seededConePuppiJet:default: "Eta" + caloJet:default: "Eta" + caloJet:PtGr30: "Eta" + # trackerJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + phase1PuppiJet:default: "Eta" + seededConePuppiJet:default: "Eta" + caloJet:default: "Eta" + # trackerJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf_extEta: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 7" + test_objects: + caloJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5.5 + max: 5.5 + step: 0.25 diff --git a/configs/V32/object_performance/jets_matching_wBTag.yaml b/configs/V32/object_performance/jets_matching_wBTag.yaml new file mode 100644 index 00000000..1155301a --- /dev/null +++ b/configs/V32/object_performance/jets_matching_wBTag.yaml @@ -0,0 +1,136 @@ +JetMatching_Eta_Pt40To100_ExtendedVsRegular: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + seededConePuppiJet:default: "Eta" + seededConeExtendedPuppiJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf_ExtendedVsRegular: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + seededConePuppiJet:default: "Eta" + seededConeExtendedPuppiJet:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt30ToInf_genBJets: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 30" + - "abs({partonflavour}) == 5" + object: + - "abs({eta}) < 2.4" + test_objects: + seededConeExtendedPuppiJet:bjetnn: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>30 GeV)" + binning: + min: -2.4 + max: 2.4 + step: 0.25 + +JetMatching_Eta_Pt30ToInf_genNotBJets: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 30" + - "abs({partonflavour}) != 5" + object: + - "abs({eta}) < 2.4" + test_objects: + seededConeExtendedPuppiJet:bjetnn: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>30 GeV)" + binning: + min: -2.4 + max: 2.4 + step: 0.25 + +JetMatching_Pt_Pt30ToInf_genBJets: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({partonflavour}) == 5" + object: + - "abs({eta}) < 2.4" + test_objects: + seededConeExtendedPuppiJet:bjetnn: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 30 + max: 200 + step: 10 + +JetMatching_Pt_Pt30ToInf_genNotBJets: + sample: TT + version: V32 + match_test_to_ref: True + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen Jets" + cuts: + event: + - "abs({partonflavour}) != 5" + object: + - "abs({eta}) < 2.4" + test_objects: + seededConeExtendedPuppiJet:bjetnn: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 30 + max: 200 + step: 10 diff --git a/configs/V32/object_performance/jets_trigger.yaml b/configs/V32/object_performance/jets_trigger.yaml new file mode 100644 index 00000000..d6b0cff5 --- /dev/null +++ b/configs/V32/object_performance/jets_trigger.yaml @@ -0,0 +1,85 @@ +JetTurnonBarrel: + version: V32 + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + phase1PuppiJet:default:barrel: "Pt" + seededConePuppiJet:default:barrel: "Pt" + caloJet:default:barrel: "Pt" + # trackerJet:default:barrel: "Pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonEndcap: + version: V32 + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + phase1PuppiJet:default:endcap: "Pt" + seededConePuppiJet:default:endcap: "Pt" + caloJet:default:endcap: "Pt" + # trackerJet:default:endcap: "Pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonForward: + version: V32 + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" # HACK -> using the nano GenJet parquet file here until fixing the menu ntuples + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + phase1PuppiJet:default:forward: "Pt" + seededConePuppiJet:default:forward: "Pt" + caloJet:default:forward: "Pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V32/object_performance/met_ht_mht.yaml b/configs/V32/object_performance/met_ht_mht.yaml new file mode 100644 index 00000000..0cd78364 --- /dev/null +++ b/configs/V32/object_performance/met_ht_mht.yaml @@ -0,0 +1,149 @@ +HT_90perc: + sample: TT + version: V32 + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen HT" + trafo: "HT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + test_objects: + trackerHT:default: "" + phase1PuppiHT:default: "" + seededConePuppiHT:default: "" + thresholds: [350] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. HT (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 750 + step: 20 + +# HT_50perc: +# sample: TT +# version: V32 +# reference_object: +# object: "GenJet" +# x_arg: "pt" +# label: "Gen HT" +# trafo: "HT" +# cuts: +# object: +# - "abs({eta}) < 2.4" +# - "{pt} > 30" +# test_objects: +# # trackerHT:default: "" +# # phase1PuppiHT:default: "" +# seededConePuppiHT:default: "" +# thresholds: [350] +# scalings: +# method: "naive" +# threshold: 0.50 +# xlabel: "Gen. HT (GeV)" +# ylabel: "Trigger Efficiency ( GeV)" +# binning: +# min: 0 +# max: 750 +# step: 20 + +MHT_50perc: + sample: TT + version: V32 + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + trackerMHT:default: "" + phase1PuppiMHT:default: "et" + seededConePuppiMHT:default: "et" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +# MHT_90perc: +# sample: TT +# version: V32 +# reference_object: +# object: "GenJet" +# x_arg: "pt" +# label: "Gen MHT" +# cuts: +# object: +# - "abs({eta}) < 2.4" +# - "{pt} > 30" +# trafo: "MHT" +# test_objects: +# # trackerMHT:default: "" +# # phase1PuppiMHT:default: "et" +# seededConePuppiMHT:default: "et" +# thresholds: [70, 150] +# scalings: +# method: "naive" +# threshold: 0.90 +# xlabel: "Gen. MHT30 (GeV)" +# ylabel: "Trigger Efficiency ( GeV)" +# binning: +# min: 0 +# max: 500 +# step: 20 + +# MET_90perc: +# sample: TT +# version: V32 +# reference_object: +# object: "genMetTrue" +# x_arg: "" +# label: "Gen MET" +# test_objects: +# trackerMET:default: "" +# puppiMET:default: "et" +# thresholds: [150] +# xlabel: "Gen. MET (GeV)" +# ylabel: "Trigger Efficiency ( GeV)" +# scalings: +# method: "naive" +# threshold: 0.90 +# binning: +# min: 0 +# max: 500 +# step: 20 + +# MET_50perc: +# sample: TT +# version: V32 +# reference_object: +# object: "genMetTrue" +# x_arg: "" +# label: "Gen MET" +# test_objects: +# # trackerMET:default: "" +# puppiMET:default: "et" +# thresholds: [150] +# xlabel: "Gen. MET (GeV)" +# ylabel: "Trigger Efficiency ( GeV)" +# scalings: +# method: "naive" +# threshold: 0.50 +# binning: +# min: 0 +# max: 500 +# step: 20 diff --git a/configs/V32/object_performance/mht.yaml b/configs/V32/object_performance/mht.yaml new file mode 100644 index 00000000..894b0e50 --- /dev/null +++ b/configs/V32/object_performance/mht.yaml @@ -0,0 +1,52 @@ +MHT30_90perc: + sample: TT + version: V32 + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + phase1PuppiMHT:default: "et" + seededConePuppiMHT:default: "et" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +MHT30_50perc: + sample: TT + version: V32 + reference_object: + object: "jet" + x_arg: "Pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + phase1PuppiMHT:default: "et" + seededConePuppiMHT:default: "et" + trackerMHT:default: "" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 diff --git a/configs/V32/object_performance/muon_matching.yaml b/configs/V32/object_performance/muon_matching.yaml new file mode 100644 index 00000000..6385e986 --- /dev/null +++ b/configs/V32/object_performance/muon_matching.yaml @@ -0,0 +1,70 @@ +MuonsMatchingBarrel: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 0.83" + test_objects: + gmtMuon:default:barrel: "Pt" + gmtTkMuon:default:barrel: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (barrel)" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatchingOverlap: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 0.83" + - "abs({eta}) < 1.24" + test_objects: + gmtMuon:default:overlap: "Pt" + gmtTkMuon:default:overlap: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (overlap)" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatchingEndcap: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 1.24" + - "abs({eta}) < 2.4" + test_objects: + gmtMuon:default:endcap: "Pt" + gmtTkMuon:default:endcap: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V32/object_performance/muon_matching_eta.yaml b/configs/V32/object_performance/muon_matching_eta.yaml new file mode 100644 index 00000000..c374f939 --- /dev/null +++ b/configs/V32/object_performance/muon_matching_eta.yaml @@ -0,0 +1,48 @@ +MuonsMatching_Eta_Pt2to5: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Eta" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 2" + - "{pt} < 5" + object: + - "abs({eta}) < 2.4" + test_objects: + gmtMuon:default: "Eta" + gmtTkMuon:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (2-5 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +MuonsMatching_Eta_Pt15toInf: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Eta" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} > 15" + object: + - "abs({eta}) < 2.4" + test_objects: + gmtMuon:default: "Eta" + gmtTkMuon:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>15 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V32/object_performance/muon_trigger.yaml b/configs/V32/object_performance/muon_trigger.yaml new file mode 100644 index 00000000..4cda46a4 --- /dev/null +++ b/configs/V32/object_performance/muon_trigger.yaml @@ -0,0 +1,81 @@ +MuonsTrigger_Barrel: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 0.83" + test_objects: + gmtMuon:default:barrel: "Pt" + gmtTkMuon:default:barrel: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 + +MuonsTrigger_Overlap: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 0.83" + - "abs({eta}) < 1.24" + test_objects: + gmtMuon:default:overlap: "Pt" + gmtTkMuon:default:overlap: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (overlap, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 + +MuonsTrigger_Endcap: + sample: DYLL_M50 + version: V32 + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "Pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 1.24" + test_objects: + gmtMuon:default:endcap: "Pt" + gmtTkMuon:default:endcap: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 diff --git a/configs/V32/object_performance/photon_iso.yaml b/configs/V32/object_performance/photon_iso.yaml new file mode 100644 index 00000000..94f5d881 --- /dev/null +++ b/configs/V32/object_performance/photon_iso.yaml @@ -0,0 +1,49 @@ +PhotonIsolation_Barrel: + sample: Hgg + version: V32 + iso_vs_efficiency: True + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.479" + object: + - "abs({eta}) < 1.479" + test_objects: + tkPhoton:NoIso:barrel: "trkiso" + xlabel: "Isolation" + ylabel: "Efficiency (Barrel)" + binning: + min: 0 + max: 0.5 + step: 0.005 + +PhotonIsolation_Endcap: + sample: Hgg + version: V32 + iso_vs_efficiency: True + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.479" + - "abs({eta}) < 2.4" + object: + - "abs({eta}) > 1.479" + test_objects: + tkPhoton:NoIso:endcap: "trkiso" + xlabel: "Isolation" + ylabel: "Efficiency (Endcap)" + binning: + min: 0 + max: 0.5 + step: 0.005 + diff --git a/configs/V32/object_performance/photons_matching.yaml b/configs/V32/object_performance/photons_matching.yaml new file mode 100644 index 00000000..1152eb66 --- /dev/null +++ b/configs/V32/object_performance/photons_matching.yaml @@ -0,0 +1,49 @@ +PhotonsMatching_Barrel: + sample: Hgg + version: V32 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "Pt" + tkPhoton:NoIso: "Pt" + tkPhoton:Iso: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_Endcap: + sample: Hgg + version: V32 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "Pt" + tkPhoton:NoIso: "Pt" + tkPhoton:Iso: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V32/object_performance/photons_matching_eta.yaml b/configs/V32/object_performance/photons_matching_eta.yaml new file mode 100644 index 00000000..56347d17 --- /dev/null +++ b/configs/V32/object_performance/photons_matching_eta.yaml @@ -0,0 +1,50 @@ +PhotonsMatching_Eta_Pt10to25: + sample: Hgg + version: V32 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Eta" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} < 25" + - "{pt} > 10" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + tkPhoton:NoIso: "Eta" + tkPhoton:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +PhotonsMatching_Eta_Pt25toInf: + sample: Hgg + version: V32 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Eta" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} >= 25" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + tkPhoton:NoIso: "Eta" + tkPhoton:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V32/object_performance/photons_trigger.yaml b/configs/V32/object_performance/photons_trigger.yaml new file mode 100644 index 00000000..d92c50ec --- /dev/null +++ b/configs/V32/object_performance/photons_trigger.yaml @@ -0,0 +1,57 @@ +PhotonsTrigger_Barrel: + sample: Hgg + version: V32 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default:barrel: "Pt" + tkPhoton:NoIso:barrel: "Pt" + tkPhoton:Iso:barrel: "Pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +PhotonsTrigger_Endcap: + sample: Hgg + version: V32 + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default:endcap: "Pt" + tkPhoton:NoIso:endcap: "Pt" + tkPhoton:Iso:endcap: "Pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 diff --git a/configs/V32/object_performance/tau_matching.yaml b/configs/V32/object_performance/tau_matching.yaml new file mode 100644 index 00000000..5b94bce9 --- /dev/null +++ b/configs/V32/object_performance/tau_matching.yaml @@ -0,0 +1,49 @@ +TausMatchingBarrel: + sample: VBFHToTauTau + version: V32 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default: "Pt" + caloTau:default: "Pt" + caloTau:PtGe20: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 150 + step: 6 + +TausMatchingEndcap: + sample: VBFHToTauTau + version: V32 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default: "Pt" + caloTau:default: "Pt" + caloTau:PtGe20: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V32/object_performance/tau_matching_wHH.yaml b/configs/V32/object_performance/tau_matching_wHH.yaml new file mode 100644 index 00000000..15800567 --- /dev/null +++ b/configs/V32/object_performance/tau_matching_wHH.yaml @@ -0,0 +1,47 @@ +# HHTausMatchingBarrel: +# sample: HHToTauTau +# version: V32 +# match_test_to_ref: True +# reference_object: +# object: "part_tau" +# x_arg: "Pt" +# label: "Gen Taus" +# cuts: +# event: +# - "{dr_0.3} < 0.15" +# - "abs({eta}) < 1.5" +# object: +# - "abs({eta}) < 2.4" +# test_objects: +# nnTau:default: "Pt" +# caloTau:default: "Pt" +# xlabel: "Gen. $p_T$ (GeV)" +# ylabel: "Matching Efficiency (Barrel)" +# binning: +# min: 0 +# max: 150 +# step: 6 + +# HHTausMatchingEndcap: +# sample: HHToTauTau +# version: V32 +# match_test_to_ref: True +# reference_object: +# object: "part_tau" +# x_arg: "Pt" +# label: "Gen Taus" +# cuts: +# event: +# - "{dr_0.3} < 0.15" +# - "abs({eta}) > 1.5" +# object: +# - "abs({eta}) < 2.4" +# test_objects: +# nnTau:default: "Pt" +# caloTau:default: "Pt" +# xlabel: "Gen. $p_T$ (GeV)" +# ylabel: "Matching Efficiency (Endcap)" +# binning: +# min: 0 +# max: 150 +# step: 6 diff --git a/configs/V32/object_performance/tau_trigger.yaml b/configs/V32/object_performance/tau_trigger.yaml new file mode 100644 index 00000000..0c598819 --- /dev/null +++ b/configs/V32/object_performance/tau_trigger.yaml @@ -0,0 +1,111 @@ +TauTriggerBarrel_90perc: + sample: VBFHToTauTau + version: V32 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default:barrel: "Pt" + caloTau:default:barrel: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 + +TauTriggerEndcap_90perc: + sample: VBFHToTauTau + version: V32 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default:endcap: "Pt" + caloTau:default:endcap: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 + +TauTriggerBarrel_50perc: + sample: VBFHToTauTau + version: V32 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default:barrel: "Pt" + caloTau:default:barrel: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.50 + binning: + min: 0 + max: 150 + step: 6 + +TauTriggerEndcap_50perc: + sample: VBFHToTauTau + version: V32 + match_test_to_ref: True + reference_object: + object: "part_tau" + x_arg: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau:default:endcap: "Pt" + caloTau:default:endcap: "Pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.50 + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V32/object_performance/version_comparison.yaml b/configs/V32/object_performance/version_comparison.yaml new file mode 100644 index 00000000..b13021f3 --- /dev/null +++ b/configs/V32/object_performance/version_comparison.yaml @@ -0,0 +1,44 @@ +V22_V32_GMTMuonsBarrel_Comparison: + files: + MuonsTrigger_20_V22: + object: gmtMuon + dir: outputs/V22/turnons/ + label: "GMT Muon (V22)" + MuonsTrigger_20_V32: + object: gmtMuon + dir: outputs/V32/turnons/ + label: "GMT Muon (V32)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + watermark: "V22_V32_gmtMuonBarrel_Comp" + save_dir: "outputs/V22vs27/turnons" + +V22_V32_ElectronsBarrel_Comparison: + files: + ElectronsTriggerBarrel_30_V22: + object: tkElectron + dir: outputs/V22/turnons/ + label: "tkElectron (V22)" + ElectronsTriggerBarrel_30_V32: + object: tkElectron + dir: outputs/V32/turnons/ + label: "tkElectron (V32)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + watermark: "V22_V32_EGBarrel_Comp" + save_dir: "outputs/V22vs27/turnons" + +V22_V32_GMTtkMuonsBarrel_Comparison: + files: + MuonsTrigger_20_V22: + object: gmtMuon + dir: outputs/V22/turnons/ + label: "GMT tkMuon (V22)" + MuonsTrigger_20_V32: + object: gmtMuon + dir: outputs/V32/turnons/ + label: "GMT tkMuon (V32)" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + watermark: "V22_V32_gmtTkMuonBarrel_Comp" + save_dir: "outputs/V22vs27/turnons" diff --git a/configs/V32/objects/electrons.yaml b/configs/V32/objects/electrons.yaml new file mode 100644 index 00000000..7580e86e --- /dev/null +++ b/configs/V32/objects/electrons.yaml @@ -0,0 +1,69 @@ +part_e: + label: "Gen Electron" + eta_ranges: + inclusive: [0, 7] + ids: + gen_electron_default: + cuts: + inclusive: + - "{dr_0.3} < 0.15" + +tkElectron: + match_dR: 0.15 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.479] + endcap: [1.479, 5] + ids: + NoIso: + label: "TkElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "({passeseleid} == 1) | ({pt} < 25)" + NoIsoForIso: + # This id is exclusively used for the + # isoloation wp derivation + label: "TkElectron id in barrel" + cuts: + inclusive: + - "abs({eta}) < 2.7" + barrel: + - "({passeseleid} == 1) | ({pt} < 25)" + Iso: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({trkiso}) < 0.13" + - "({passeseleid} == 1) | ({pt} < 25)" + endcap: + - "abs({trkiso}) < 0.28" + IsoNoIDinEE: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({trkiso}) < 0.13" + - "({passeseleid} == 1) | ({pt} < 25)" + endcap: + - "abs({trkiso}) < 0.28" + +EG: + match_dR: 0.2 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.479] + endcap: [1.479, 3.0] + label: "EG" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 3.0" + barrel: + - "{passeseleid} == 1" + endcap: + - "{passessaid} == 1" diff --git a/configs/V32/objects/jets.yaml b/configs/V32/objects/jets.yaml new file mode 100644 index 00000000..cdcbb2de --- /dev/null +++ b/configs/V32/objects/jets.yaml @@ -0,0 +1,82 @@ +caloJet: + match_dR: 0.3 + label: "Calo Jet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + cuts: + inclusive: + - "abs({eta}) < 7" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + PtGr30: + label: "CaloJet, pt > 30" + cuts: + inclusive: + - "abs({eta}) < 7" + - "{pt} > 30" + +seededConeExtendedPuppiJet: + match_dR: 0.35 + label: "Seeded Cone Extended PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 5" + bjetnn: + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{bjetnn} > 0.71" + +phase1PuppiJet: + match_dR: 0.3 + label: "Histogrammed PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +seededConePuppiJet: + match_dR: 0.35 + label: "Seeded Cone PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +trackerJet: + match_dR: 0.4 + label: "Tracker Jet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" diff --git a/configs/V32/objects/met_ht_mht.yaml b/configs/V32/objects/met_ht_mht.yaml new file mode 100644 index 00000000..8e0a6e45 --- /dev/null +++ b/configs/V32/objects/met_ht_mht.yaml @@ -0,0 +1,39 @@ +phase1PuppiHT: + label: "Histogrammed Puppi HT" + ids: + default: {} + +phase1PuppiMHT: + label: "Phase1 Puppi MHT" + ids: + default: {} + +puppiMET: + label: "Puppi MET" + ids: + default: {} + +seededConePuppiHT: + label: "SeededCone HT" + ids: + default: {} + +seededConePuppiMHT: + label: "SeededCone MHT" + ids: + default: {} + +trackerHT: + label: "Tracker HT" + ids: + default: {} + +trackerMET: + label: "Tracker MET" + ids: + default: {} + +trackerMHT: + label: "Tracker MHT" + ids: + default: {} diff --git a/configs/V32/objects/muons.yaml b/configs/V32/objects/muons.yaml new file mode 100644 index 00000000..06a6bc43 --- /dev/null +++ b/configs/V32/objects/muons.yaml @@ -0,0 +1,24 @@ +gmtMuon: + label: "GMT Muon" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 0.83] + overlap: [0.83, 1.24] + endcap: [1.24, 2.4] + ids: + default: {} + +gmtTkMuon: + label: "GMT TkMuon" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 0.83] + overlap: [0.83, 1.24] + endcap: [1.24, 2.4] + ids: + default: + cuts: + inclusive: + - "({quality} > 0) | ({pt} > 8)" # quality criterion only to be appied for p_T < 8 GeV diff --git a/configs/V32/objects/photons.yaml b/configs/V32/objects/photons.yaml new file mode 100644 index 00000000..c2075e19 --- /dev/null +++ b/configs/V32/objects/photons.yaml @@ -0,0 +1,27 @@ +tkPhoton: + match_dR: 0.15 + eta_ranges: + inclusive: [0, 5] + barrel: [0, 1.479] + endcap: [1.479, 2.4] + ids: + NoIso: + label: "tkPhoton" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "{passeseleid} == 1" + endcap: + - "{passesphoid} == 1" + Iso: + label: "tkIsoPhoton" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({trkiso}) < 0.2" + - "{passeseleid} == 1" + endcap: + - "abs({trkiso}) < 0.2" + - "{passesphoid} == 1" diff --git a/configs/V32/objects/taus.yaml b/configs/V32/objects/taus.yaml new file mode 100644 index 00000000..e448794b --- /dev/null +++ b/configs/V32/objects/taus.yaml @@ -0,0 +1,35 @@ +nnTau: + label: "NN Tau" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + cuts: + inclusive: + - "{passloosenn}==1" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{passloosenn}==1" + +caloTau: + label: "Calo Tau" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + PtGe20: + label: "Calo Tau, pt > 20" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{pt} > 20" diff --git a/configs/V32/rate_plots/all_rate_plots.yaml b/configs/V32/rate_plots/all_rate_plots.yaml new file mode 100644 index 00000000..0a56d0c9 --- /dev/null +++ b/configs/V32/rate_plots/all_rate_plots.yaml @@ -0,0 +1,59 @@ +HTRates: + sample: MinBias + version: V32 + test_objects: + - phase1PuppiHT:default + - seededConePuppiHT:default + # - trackerJet:default + binning: + min: 40 + max: 420 + step: 20 + +JetDefaultRates: + sample: MinBias + version: V32 + test_objects: + - phase1PuppiJet:default + - seededConePuppiJet:default + # - trackerJet:default + binning: + min: 40 + max: 420 + step: 20 + +ElectronDefaultRates: + sample: MinBias + version: V32 + test_objects: + - EG:default + - tkElectron:NoIso + - tkElectron:Iso + - tkPhoton:Iso + binning: + min: 10 + max: 97 + step: 3 + +MuonRates: + sample: MinBias + version: V32 + test_objects: + - gmtMuon:default + # - gmtMuon:oldRateID + - gmtTkMuon:default + binning: + min: 0 + max: 75 + step: 3 + +TauRates: + sample: MinBias + version: V32 + test_objects: + - nnTau:default + - caloTau:default + binning: + min: 10 + max: 155 + step: 5 diff --git a/configs/V32nano/caching.yaml b/configs/V32nano/caching.yaml new file mode 100644 index 00000000..dbfe1d63 --- /dev/null +++ b/configs/V32nano/caching.yaml @@ -0,0 +1,59 @@ +V32nano: + DYLL_M50: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v32_reL1only/DYToLL_M-50_TuneCP5_14TeV-pythia8/DY_M50_131_200PU_v32_reL1only/240205_120621/0000/l1nano_*.root + trees_branches: + Events: + GenPart: "all" + prunedGenPart: "all" + # GenVisTau: "all" + # L1scJet: [pt, eta, phi] + # L1scExtJet: [pt, eta, phi, btagScore] + L1gmtTkMuon: "all" + L1StaMu: "all" # aka gmtMuon + L1tkElectron: "all" + # L1nnTau: "all" + ## merge below with python3.11 menu_tools/caching/merge_arrays.py + L1EGbarrel: "all" + L1EGendcap: "all" + TT: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v32_reL1only/TT_TuneCP5_14TeV-powheg-pythia8/TT_131_200PU_v32_reL1only/240206_115846/0000/l1nano_*.root + trees_branches: + Events: + # gen + GenJet: [pt, eta, phi] + GenJetAK8: [pt, eta, phi] + GenMET: "all" + # sums + L1puppiMET: [pt, phi] + L1puppiMLMET: "all" + L1puppiJetSC4sums: [pt, phi] + L1puppiHistoJetSums: [pt, phi] + # jets + L1puppiJetSC4: [pt, eta, phi] + L1puppiJetSC8: [pt, eta, phi] + L1puppiExtJetSC4: [pt, eta, phi, btagScore] + L1puppiJetHisto: [pt, eta, phi] + L1caloJet: [pt, eta, phi] + VBFHToTauTau: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v32_reL1only/VBFHToTauTau_M-125_TuneCP5_14TeV-powheg-pythia8/VBFHToTauTau_131_200PU_v32_reL1only/240206_115854/0000/l1nano_*.root + trees_branches: + Events: + GenVisTau: "all" + L1nnTau: "all" + L1hpsTau: "all" + L1caloTau: "all" + L1nnCaloTau: "all" + MinBias: + ntuple_path: + trees_branches: + Events: + L1puppiMET: "all" + L1puppiMLMET: "all" + L1nnTau: "all" + L1hpsTau: "all" + L1caloTau: "all" + L1nnCaloTau: "all" + L1puppiJetSC4: [pt, eta, phi] + L1puppiJetSC8: [pt, eta, phi] + L1puppiJetHisto: [pt, eta, phi] + L1caloJet: [pt, eta, phi] diff --git a/configs/V32nano/object_performance/bJetEff.yaml b/configs/V32nano/object_performance/bJetEff.yaml new file mode 100644 index 00000000..850c889d --- /dev/null +++ b/configs/V32nano/object_performance/bJetEff.yaml @@ -0,0 +1,30 @@ +BJetEff_pt: + files: + JetMatching_pt_pt30ToInf_genBJets_-999_V32nano: + object: L1puppiExtJetSC4:bjetnn:inclusive + dir: outputs/object_performance/V32nano/turnons/ + label: "Signal: Matched b-jets" + JetMatching_pt_pt30ToInf_genNotBJets_-999_V32nano: + object: L1puppiExtJetSC4:bjetnn:inclusive + dir: outputs/object_performance/V32nano/turnons/ + label: "Background: Unmatched b-jets" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + watermark: "BJet_pt" + save_dir: "outputs/object_performance/V32nano/turnons/" + + +BJetEff_Eta: + files: + JetMatching_Eta_pt30ToInf_genBJets_-999_V32nano: + object: L1puppiExtJetSC4:bjetnn:inclusive + dir: outputs/object_performance/V32nano/turnons/ + label: "Signal: Matched b-jets" + JetMatching_Eta_pt30ToInf_genNotBJets_-999_V32nano: + object: L1puppiExtJetSC4:bjetnn:inclusive + dir: outputs/object_performance/V32nano/turnons/ + label: "Background: Unmatched b-jets" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency" + watermark: "BJet_Eta" + save_dir: "outputs/object_performance/V32nano/turnons/" diff --git a/configs/V32nano/object_performance/electron_iso.yaml b/configs/V32nano/object_performance/electron_iso.yaml new file mode 100644 index 00000000..ad547602 --- /dev/null +++ b/configs/V32nano/object_performance/electron_iso.yaml @@ -0,0 +1,50 @@ +ElectronsIsolation_Barrel: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + iso_vs_efficiency: True + reference_object: + object: "prunedGenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) < 1.479" + object: + - "abs({eta}) < 1.479" + test_objects: + L1tkElectron:NoIso: "relIso" + xlabel: "Isolation" + ylabel: "Efficiency (Barrel)" + binning: + min: 0 + max: 0.5 + step: 0.005 + +ElectronsIsolation_Endcap: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + iso_vs_efficiency: True + reference_object: + object: "prunedGenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) > 1.479" + object: + - "abs({eta}) < 2.4" + test_objects: + L1tkElectron:NoIsoForIso: "relIso" + xlabel: "Isolation" + ylabel: "Efficiency (Endcap)" + binning: + min: 0 + max: 0.5 + step: 0.005 + diff --git a/configs/V32nano/object_performance/electron_matching.yaml b/configs/V32nano/object_performance/electron_matching.yaml new file mode 100644 index 00000000..cc0dff23 --- /dev/null +++ b/configs/V32nano/object_performance/electron_matching.yaml @@ -0,0 +1,103 @@ +ElectronsMatchingBarrel: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default: "pt" + L1tkElectron:NoIso: "pt" + L1tkElectron:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +# ElectronsMatchingBarrel_wPrunedGenPart: +# sample: DYLL_M50 +# version: V32nano +# match_test_to_ref: True +# reference_object: +# object: "prunedGenPart" +# x_arg: "pt" +# label: "Gen Electrons" +# cuts: +# event: +# - "(({statusFlags}>>7)&1) == 1" +# - "abs({pdgId}) == 11" +# - "abs({eta}) < 1.5" +# object: +# - "abs({eta}) < 2.4" +# test_objects: +# L1EG:default: "pt" +# L1tkElectron:NoIso: "pt" +# L1tkElectron:Iso: "pt" +# xlabel: "Gen. $p_T$ (GeV)" +# ylabel: "Matching Efficiency (Barrel)" +# binning: +# min: 0 +# max: 100 +# step: 3 + +ElectronsMatchingEndcap: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default: "pt" + L1tkElectron:NoIso: "pt" + L1tkElectron:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 + +# ElectronsMatchingEndcap_wPrunedGenPart: +# sample: DYLL_M50 +# version: V32nano +# match_test_to_ref: True +# reference_object: +# object: "prunedGenPart" +# x_arg: "pt" +# label: "Gen Electrons" +# cuts: +# event: +# - "(({statusFlags}>>7)&1) == 1" +# - "abs({pdgId}) == 11" +# - "abs({eta}) > 1.5" +# object: +# - "abs({eta}) < 2.4" +# test_objects: +# L1EG:default: "pt" +# L1tkElectron:NoIso: "pt" +# L1tkElectron:Iso: "pt" +# xlabel: "Gen. $p_T$ (GeV)" +# ylabel: "Matching Efficiency (Endcap)" +# binning: +# min: 0 +# max: 100 +# step: 3 diff --git a/configs/V32nano/object_performance/electron_matching_eta.yaml b/configs/V32nano/object_performance/electron_matching_eta.yaml new file mode 100644 index 00000000..bc2ae201 --- /dev/null +++ b/configs/V32nano/object_performance/electron_matching_eta.yaml @@ -0,0 +1,52 @@ +ElectronsMatching_Eta_Pt10to25: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "{pt} < 25" + - "{pt} > 10" + object: + - "abs({eta}) < 3.0" + test_objects: + L1EG:default: "eta" + L1tkElectron:NoIso: "eta" + L1tkElectron:Iso: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +ElectronsMatching_Eta_Pt25toInf: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "{pt} > 25" + object: + - "abs({eta}) < 3.0" + test_objects: + L1EG:default: "eta" + L1tkElectron:NoIso: "eta" + L1tkElectron:Iso: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($p_T > 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V32nano/object_performance/electron_trigger.yaml b/configs/V32nano/object_performance/electron_trigger.yaml new file mode 100644 index 00000000..460124f4 --- /dev/null +++ b/configs/V32nano/object_performance/electron_trigger.yaml @@ -0,0 +1,119 @@ +ElectronsTriggerBarrel: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.8" + test_objects: + L1EG:default:barrel: "pt" + L1tkElectron:NoIso:barrel: "pt" + L1tkElectron:Iso:barrel: "pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +ElectronsTriggerEndcap: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.8" + test_objects: + L1EG:default:endcap: "pt" + L1tkElectron:NoIso:endcap: "pt" + L1tkElectron:Iso:endcap: "pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +# ElectronsTriggerBarrel_wPrunedGenPart: +# sample: DYLL_M50 +# version: V32nano +# match_test_to_ref: True +# reference_object: +# object: "prunedGenPart" +# x_arg: "pt" +# label: "Gen Electrons" +# cuts: +# event: +# - "(({statusFlags}>>7)&1) == 1" +# - "abs({pdgId}) == 11" +# - "abs({eta}) < 1.5" +# object: +# - "abs({eta}) < 2.8" +# test_objects: +# L1EG:default:barrel: "pt" +# L1tkElectron:NoIso:barrel: "pt" +# L1tkElectron:Iso:barrel: "pt" +# thresholds: [10, 20, 30, 40] +# scalings: +# method: "naive" +# threshold: 0.95 +# xlabel: "Gen. pT (GeV)" +# ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" +# binning: +# min: 0 +# max: 100 +# step: 1.5 + +# ElectronsTriggerEndcap_wPrunedGenPart: +# sample: DYLL_M50 +# version: V32nano +# match_test_to_ref: True +# reference_object: +# object: "prunedGenPart" +# x_arg: "pt" +# label: "Gen Electrons" +# cuts: +# event: +# - "(({statusFlags}>>7)&1) == 1" +# - "abs({pdgId}) == 11" +# - "abs({eta}) > 1.5" +# object: +# - "abs({eta}) < 2.8" +# test_objects: +# # L1EG:default:endcap: "pt" +# L1tkElectron:NoIso:endcap: "pt" +# L1tkElectron:Iso:endcap: "pt" +# thresholds: [10, 20, 30, 40] +# scalings: +# method: "naive" +# threshold: 0.95 +# xlabel: "Gen. pT (GeV)" +# ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" +# binning: +# min: 0 +# max: 100 +# step: 1.5 diff --git a/configs/V32nano/object_performance/jets_matching.yaml b/configs/V32nano/object_performance/jets_matching.yaml new file mode 100644 index 00000000..a8c7f071 --- /dev/null +++ b/configs/V32nano/object_performance/jets_matching.yaml @@ -0,0 +1,117 @@ +JetMatchingBarrel: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetHisto:default: "pt" + L1puppiJetSC4:default: "pt" + L1caloJet:default: "pt" + # trackerJet:default: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingEndcap: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetHisto:default: "pt" + L1puppiJetSC4:default: "pt" + L1caloJet:default: "pt" + # trackerJet:default: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingForward: + version: V32nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetHisto:default: "pt" + L1puppiJetSC4:default: "pt" + L1caloJet:default: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingBarrelSC8: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen AK8 Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetSC8:default:barrel: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingEndcapSC8: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen AK8 Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetSC8:default:endcap: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 \ No newline at end of file diff --git a/configs/V32nano/object_performance/jets_matching_eta.yaml b/configs/V32nano/object_performance/jets_matching_eta.yaml new file mode 100644 index 00000000..de12dd97 --- /dev/null +++ b/configs/V32nano/object_performance/jets_matching_eta.yaml @@ -0,0 +1,94 @@ +JetMatching_Eta_Pt40To100: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetHisto:default: "eta" + L1puppiJetSC4:default: "eta" + L1caloJet:default: "eta" + # trackerJet:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetHisto:default: "eta" + L1puppiJetSC4:default: "eta" + L1caloJet:default: "eta" + # trackerJet:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf_extEta: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 7" + test_objects: + L1caloJet:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5.5 + max: 5.5 + step: 0.25 + +JetMatching_Eta_SC8_Pt100ToInf: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetSC8:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 \ No newline at end of file diff --git a/configs/V32nano/object_performance/jets_matching_wBTag.yaml b/configs/V32nano/object_performance/jets_matching_wBTag.yaml new file mode 100644 index 00000000..354c49dd --- /dev/null +++ b/configs/V32nano/object_performance/jets_matching_wBTag.yaml @@ -0,0 +1,136 @@ +JetMatching_Eta_pt40To100_ExtendedVsRegular: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetSC4:default: "Eta" + L1puppiExtJetSC4:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_pt100ToInf_ExtendedVsRegular: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetSC4:default: "Eta" + L1puppiExtJetSC4:default: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_pt30ToInf_genBJets: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 30" + - "abs({partonFlavour}) == 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiExtJetSC4:bjetnn: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>30 GeV)" + binning: + min: -2.4 + max: 2.4 + step: 0.25 + +JetMatching_Eta_pt30ToInf_genNotBJets: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "Eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 30" + - "abs({partonFlavour}) != 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiExtJetSC4:bjetnn: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>30 GeV)" + binning: + min: -2.4 + max: 2.4 + step: 0.25 + +JetMatching_pt_pt30ToInf_genBJets: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({partonFlavour}) == 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiExtJetSC4:bjetnn: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 30 + max: 200 + step: 10 + +JetMatching_pt_pt30ToInf_genNotBJets: + sample: TT + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({partonFlavour}) != 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiExtJetSC4:bjetnn: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 30 + max: 200 + step: 10 diff --git a/configs/V32nano/object_performance/jets_trigger.yaml b/configs/V32nano/object_performance/jets_trigger.yaml new file mode 100644 index 00000000..fe56ec22 --- /dev/null +++ b/configs/V32nano/object_performance/jets_trigger.yaml @@ -0,0 +1,163 @@ +JetTurnonBarrel: + version: V32nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetHisto:default:barrel: "pt" + L1puppiJetSC4:default:barrel: "pt" + L1caloJet:default: "pt" + # trackerJet:default:barrel: "pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonEndcap: + version: V32nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetHisto:default:endcap: "pt" + L1puppiJetSC4:default:endcap: "pt" + L1caloJet:default: "pt" + # trackerJet:default:endcap: "pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonForward: + version: V32nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetHisto:default:forward: "pt" + L1puppiJetSC4:default:forward: "pt" + L1caloJet:default: "pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonBarrelSC8: + version: V32nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetSC8:default:barrel: "pt" + thresholds: [150] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonEndcapSC8: + version: V32nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetSC8:default:endcap: "pt" + thresholds: [150] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonForwardSC8: + version: V32nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetSC8:default:forward: "pt" + thresholds: [150] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V32nano/object_performance/met_ht_mht.yaml b/configs/V32nano/object_performance/met_ht_mht.yaml new file mode 100644 index 00000000..16c1b3bf --- /dev/null +++ b/configs/V32nano/object_performance/met_ht_mht.yaml @@ -0,0 +1,73 @@ +HT_90perc: + sample: TT + version: V32nano + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen HT" + trafo: "HT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + test_objects: + # trackerHT:default: "" + # phase1PuppiHT:default: "" + # seededConePuppiHT:default: "" + L1puppiJetSC4sums:HT: "pt" + thresholds: [350] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. HT (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 750 + step: 20 + +MHT_50perc: + sample: TT + version: V32nano + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + L1puppiJetSC4sums:MHT: "pt" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +MET_90perc: + sample: TT + version: V32nano + reference_object: + object: "GenMET" + x_arg: "pt" + label: "Gen MET" + test_objects: + # trackerMET:default: "" + L1puppiMET:default: "pt" + thresholds: [150] + xlabel: "Gen. MET (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 500 + step: 20 diff --git a/configs/V32nano/object_performance/mht.yaml b/configs/V32nano/object_performance/mht.yaml new file mode 100644 index 00000000..2af16291 --- /dev/null +++ b/configs/V32nano/object_performance/mht.yaml @@ -0,0 +1,72 @@ +MHT_debug_METrefGenMHT: + sample: TT + version: V32nano + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + L1puppiMET:default: "pt" + #thresholds: [-1, 0, 70, 150, 500] + thresholds: [150] + # scalings: + # method: "naive" + # threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +MHT_debug: + sample: TT + version: V32nano + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + L1puppiJetSC4sums:MHT: "pt" + #thresholds: [-1, 0, 70, 150, 500] + thresholds: [150] + # scalings: + # method: "naive" + # threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +MHT_debug_refL1MET: + sample: TT + version: V32nano + reference_object: + object: "L1puppiMET" + x_arg: "pt" + label: "Gen MHT" + test_objects: + L1puppiJetSC4sums:MHT: "pt" + # thresholds: [-1, 0, 70, 150, 500] + thresholds: [150] + # scalings: + # method: "naive" + # threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 \ No newline at end of file diff --git a/configs/V32nano/object_performance/muon_matching.yaml b/configs/V32nano/object_performance/muon_matching.yaml new file mode 100644 index 00000000..f39c2a07 --- /dev/null +++ b/configs/V32nano/object_performance/muon_matching.yaml @@ -0,0 +1,73 @@ +MuonsMatchingBarrel: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) < 0.83" + test_objects: + L1StaMu:default:barrel: "pt" + L1gmtTkMuon:default:barrel: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (barrel)" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatchingOverlap: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) > 0.83" + - "abs({eta}) < 1.24" + test_objects: + L1StaMu:default:overlap: "pt" + L1gmtTkMuon:default:overlap: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (overlap)" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatchingEndcap: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) > 1.24" + - "abs({eta}) < 2.4" + test_objects: + L1StaMu:default:endcap: "pt" + L1gmtTkMuon:default:endcap: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V32nano/object_performance/muon_matching_eta.yaml b/configs/V32nano/object_performance/muon_matching_eta.yaml new file mode 100644 index 00000000..0d3d4418 --- /dev/null +++ b/configs/V32nano/object_performance/muon_matching_eta.yaml @@ -0,0 +1,50 @@ +MuonsMatching_Eta_pt2to5: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + - "{pt} > 2" + - "{pt} < 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1StaMu:default: "eta" + L1gmtTkMuon:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (2-5 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +MuonsMatching_Eta_pt15toInf: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + - "{pt} > 15" + object: + - "abs({eta}) < 2.4" + test_objects: + L1StaMu:default: "eta" + L1gmtTkMuon:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>15 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V32nano/object_performance/muon_trigger.yaml b/configs/V32nano/object_performance/muon_trigger.yaml new file mode 100644 index 00000000..6ef5156a --- /dev/null +++ b/configs/V32nano/object_performance/muon_trigger.yaml @@ -0,0 +1,81 @@ +MuonsTrigger_Barrel: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) < 0.83" + test_objects: + gmtMuon:default:barrel: "pt" + gmtTkMuon:default:barrel: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 + +MuonsTrigger_Overlap: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 0.83" + - "abs({eta}) < 1.24" + test_objects: + gmtMuon:default:overlap: "pt" + gmtTkMuon:default:overlap: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (overlap, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 + +MuonsTrigger_Endcap: + sample: DYLL_M50 + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_mu" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "{dr_0.3} < 0.15" + object: + - "abs({eta}) > 1.24" + test_objects: + gmtMuon:default:endcap: "pt" + gmtTkMuon:default:endcap: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 diff --git a/configs/V32nano/object_performance/photon_iso.yaml b/configs/V32nano/object_performance/photon_iso.yaml new file mode 100644 index 00000000..eb9b7cf0 --- /dev/null +++ b/configs/V32nano/object_performance/photon_iso.yaml @@ -0,0 +1,49 @@ +PhotonIsolation_Barrel: + sample: Hgg + version: V32nano + iso_vs_efficiency: True + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.479" + object: + - "abs({eta}) < 1.479" + test_objects: + L1tkPhoton:NoIso:barrel: "relIso" + xlabel: "Isolation" + ylabel: "Efficiency (Barrel)" + binning: + min: 0 + max: 0.5 + step: 0.005 + +PhotonIsolation_Endcap: + sample: Hgg + version: V32nano + iso_vs_efficiency: True + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.479" + - "abs({eta}) < 2.4" + object: + - "abs({eta}) > 1.479" + test_objects: + L1tkPhoton:NoIso:endcap: "relIso" + xlabel: "Isolation" + ylabel: "Efficiency (Endcap)" + binning: + min: 0 + max: 0.5 + step: 0.005 + diff --git a/configs/V32nano/object_performance/photons_matching.yaml b/configs/V32nano/object_performance/photons_matching.yaml new file mode 100644 index 00000000..5d26fd29 --- /dev/null +++ b/configs/V32nano/object_performance/photons_matching.yaml @@ -0,0 +1,49 @@ +PhotonsMatching_Barrel: + sample: Hgg + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "pt" + L1tkPhoton:NoIso: "pt" + L1tkPhoton:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_Endcap: + sample: Hgg + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default: "pt" + L1tkPhoton:NoIso: "pt" + L1tkPhoton:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V32nano/object_performance/photons_matching_eta.yaml b/configs/V32nano/object_performance/photons_matching_eta.yaml new file mode 100644 index 00000000..6798168e --- /dev/null +++ b/configs/V32nano/object_performance/photons_matching_eta.yaml @@ -0,0 +1,50 @@ +PhotonsMatching_Eta_pt10to25: + sample: Hgg + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Eta" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} < 25" + - "{pt} > 10" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + L1tkPhoton:NoIso: "Eta" + L1tkPhoton:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +PhotonsMatching_Eta_pt25toInf: + sample: Hgg + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "Eta" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "{pt} >= 25" + object: + - "abs({eta}) < 3.0" + test_objects: + EG:default: "Eta" + L1tkPhoton:NoIso: "Eta" + L1tkPhoton:Iso: "Eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V32nano/object_performance/photons_trigger.yaml b/configs/V32nano/object_performance/photons_trigger.yaml new file mode 100644 index 00000000..90fe8ae0 --- /dev/null +++ b/configs/V32nano/object_performance/photons_trigger.yaml @@ -0,0 +1,57 @@ +PhotonsTrigger_Barrel: + sample: Hgg + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default:barrel: "pt" + L1tkPhoton:NoIso:barrel: "pt" + L1tkPhoton:Iso:barrel: "pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +PhotonsTrigger_Endcap: + sample: Hgg + version: V32nano + match_test_to_ref: True + reference_object: + object: "part_gamma" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + EG:default:endcap: "pt" + L1tkPhoton:NoIso:endcap: "pt" + L1tkPhoton:Iso:endcap: "pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 diff --git a/configs/V32nano/object_performance/tau_matching.yaml b/configs/V32nano/object_performance/tau_matching.yaml new file mode 100644 index 00000000..d4c7700c --- /dev/null +++ b/configs/V32nano/object_performance/tau_matching.yaml @@ -0,0 +1,53 @@ +TausMatchingBarrel: + sample: VBFHToTauTau + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnTau:default: "pt" + L1hpsTau:default: "pt" + L1caloTau:default: "pt" + L1nnCaloTau:default: "pt" + L1caloTau:PtGe20: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 150 + step: 6 + +TausMatchingEndcap: + sample: VBFHToTauTau + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnTau:default: "pt" + L1hpsTau:default: "pt" + L1caloTau:default: "pt" + L1nnCaloTau:default: "pt" + L1caloTau:PtGe20: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V32nano/object_performance/tau_matching_eta.yaml b/configs/V32nano/object_performance/tau_matching_eta.yaml new file mode 100644 index 00000000..ddb84274 --- /dev/null +++ b/configs/V32nano/object_performance/tau_matching_eta.yaml @@ -0,0 +1,50 @@ +TauMatching_Eta_Pt40To100: + sample: VBFHToTauTau + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "eta" + label: "Gen Taus" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnTau:default: "eta" + L1hpsTau:default: "eta" + L1caloTau:default: "eta" + L1nnCaloTau:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -3.0 + max: 3.0 + step: 0.2 + +TauMatching_Eta_Pt100ToInf: + sample: VBFHToTauTau + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "eta" + label: "Gen Taus" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + L1nnTau:default: "eta" + L1hpsTau:default: "eta" + L1caloTau:default: "eta" + L1nnCaloTau:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V32nano/object_performance/tau_matching_wHH.yaml b/configs/V32nano/object_performance/tau_matching_wHH.yaml new file mode 100644 index 00000000..ce72201f --- /dev/null +++ b/configs/V32nano/object_performance/tau_matching_wHH.yaml @@ -0,0 +1,47 @@ +# HHTausMatchingBarrel: +# sample: HHToTauTau +# version: V32nano +# match_test_to_ref: True +# reference_object: +# object: "part_tau" +# x_arg: "pt" +# label: "Gen Taus" +# cuts: +# event: +# - "{dr_0.3} < 0.15" +# - "abs({eta}) < 1.5" +# object: +# - "abs({eta}) < 2.4" +# test_objects: +# nnTau:default: "pt" +# caloTau:default: "pt" +# xlabel: "Gen. $p_T$ (GeV)" +# ylabel: "Matching Efficiency (Barrel)" +# binning: +# min: 0 +# max: 150 +# step: 6 + +# HHTausMatchingEndcap: +# sample: HHToTauTau +# version: V32nano +# match_test_to_ref: True +# reference_object: +# object: "part_tau" +# x_arg: "pt" +# label: "Gen Taus" +# cuts: +# event: +# - "{dr_0.3} < 0.15" +# - "abs({eta}) > 1.5" +# object: +# - "abs({eta}) < 2.4" +# test_objects: +# nnTau:default: "pt" +# caloTau:default: "pt" +# xlabel: "Gen. $p_T$ (GeV)" +# ylabel: "Matching Efficiency (Endcap)" +# binning: +# min: 0 +# max: 150 +# step: 6 diff --git a/configs/V32nano/object_performance/tau_trigger.yaml b/configs/V32nano/object_performance/tau_trigger.yaml new file mode 100644 index 00000000..86115859 --- /dev/null +++ b/configs/V32nano/object_performance/tau_trigger.yaml @@ -0,0 +1,119 @@ +TauTriggerBarrel_90perc: + sample: VBFHToTauTau + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnTau:default: "pt" + L1hpsTau:default: "pt" + L1caloTau:default: "pt" + L1nnCaloTau:default: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 + +TauTriggerEndcap_90perc: + sample: VBFHToTauTau + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnTau:default: "pt" + L1hpsTau:default: "pt" + L1caloTau:default: "pt" + L1nnCaloTau:default: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 + +TauTriggerBarrel_50perc: + sample: VBFHToTauTau + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnTau:default: "pt" + L1hpsTau:default: "pt" + L1caloTau:default: "pt" + L1nnCaloTau:default: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.50 + binning: + min: 0 + max: 150 + step: 6 + +TauTriggerEndcap_50perc: + sample: VBFHToTauTau + version: V32nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnTau:default: "pt" + L1hpsTau:default: "pt" + L1caloTau:default: "pt" + L1nnCaloTau:default: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.50 + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V32nano/objects/electrons.yaml b/configs/V32nano/objects/electrons.yaml new file mode 100644 index 00000000..574b9770 --- /dev/null +++ b/configs/V32nano/objects/electrons.yaml @@ -0,0 +1,79 @@ +# part_e: +# label: "Gen Electron" +# eta_ranges: +# inclusive: [0, 7] +# ids: +# gen_electron_default: +# cuts: +# inclusive: +# - "{dr_0.3} < 0.15" +GenPart: + label: "Gen Electron" + eta_ranges: + inclusive: [0, 7] + ids: + gen_electron_default: + cuts: + inclusive: + - "(({statusFlags}>>7)&1) == 1" + +L1tkElectron: + match_dR: 0.15 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.479] + endcap: [1.479, 5] + ids: + NoIso: + label: "TkElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "({eleId} == 1) | ({pt} < 25)" + NoIsoForIso: + # This id is exclusively used for the + # isoloation wp derivation + label: "TkElectron id in barrel" + cuts: + inclusive: + - "abs({eta}) < 2.7" + barrel: + - "({eleId} == 1) | ({pt} < 25)" + Iso: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({relIso}) < 0.13" + - "({eleId} == 1) | ({pt} < 25)" + endcap: + - "abs({relIso}) < 0.28" + IsoNoIDinEE: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({relIso}) < 0.13" + - "({eleId} == 1) | ({pt} < 25)" + endcap: + - "abs({relIso}) < 0.28" + +L1EG: + match_dR: 0.2 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.479] + endcap: [1.479, 3.0] + label: "EG" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 3.0" + - "{pt} > 5" + barrel: + - "{eleId} == 1" + endcap: + - "{saId} == 1" diff --git a/configs/V32nano/objects/jets.yaml b/configs/V32nano/objects/jets.yaml new file mode 100644 index 00000000..b16315f7 --- /dev/null +++ b/configs/V32nano/objects/jets.yaml @@ -0,0 +1,71 @@ +L1caloJet: + match_dR: 0.35 + label: "Calo Jet" + eta_ranges: + inclusive: [0, 7] + cuts: + inclusive: + - "abs({eta}) < 7" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +L1puppiExtJetSC4: + match_dR: 0.35 + label: "Seeded Cone Extended PuppiJet" + eta_ranges: + inclusive: [0, 7] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 5" + bjetnn: + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{btagScore} > 0.71" + +L1puppiJetHisto: + match_dR: 0.35 + label: "Histogrammed PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +L1puppiJetSC4: + match_dR: 0.35 + label: "Seeded Cone PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +L1puppiJetSC8: + match_dR: 0.35 + label: "Seeded Cone PuppiJet 8" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" \ No newline at end of file diff --git a/configs/V32nano/objects/met_ht_mht.yaml b/configs/V32nano/objects/met_ht_mht.yaml new file mode 100644 index 00000000..24c8e6d3 --- /dev/null +++ b/configs/V32nano/objects/met_ht_mht.yaml @@ -0,0 +1,35 @@ +L1puppiMET: + label: "Puppi MET" + ids: + default: {} + +L1puppiMLMET: + label: "Puppi MLMET" + ids: + default: {} + +L1puppiJetSC4sums: + ids: + HT: + label: "SeededCone HT" + cuts: + inclusive: + - "{sumType} == 0" + MHT: + label: "SeededCone MHT" + cuts: + inclusive: + - "{sumType} == 1" + +L1puppiHistoJetSums: + ids: + HT: + label: "Histogrammed Puppi HT" + cuts: + inclusive: + - "{sumType} == 0" + MHT: + label: "Histogrammed Puppi MHT" + cuts: + inclusive: + - "{sumType} == 1" diff --git a/configs/V32nano/objects/muons.yaml b/configs/V32nano/objects/muons.yaml new file mode 100644 index 00000000..fb0d86ea --- /dev/null +++ b/configs/V32nano/objects/muons.yaml @@ -0,0 +1,35 @@ +GenPart: + label: "Gen Muon" + eta_ranges: + inclusive: [0, 7] + ids: + gen_electron_default: + cuts: + inclusive: + - "(({statusFlags}>>7)&1) == 1" + + +L1StaMu: + label: "GMT Muon" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 0.83] + overlap: [0.83, 1.24] + endcap: [1.24, 2.4] + ids: + default: {} + +L1gmtTkMuon: + label: "GMT TkMuon" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 0.83] + overlap: [0.83, 1.24] + endcap: [1.24, 2.4] + ids: + default: + cuts: + inclusive: + - "({hwQual} > 0) | ({pt} > 8)" # quality criterion only to be appied for p_T < 8 GeV diff --git a/configs/V32nano/objects/photons.yaml b/configs/V32nano/objects/photons.yaml new file mode 100644 index 00000000..c0b26b21 --- /dev/null +++ b/configs/V32nano/objects/photons.yaml @@ -0,0 +1,29 @@ +L1tkPhoton: + match_dR: 0.15 + eta_ranges: + inclusive: [0, 5] + barrel: [0, 1.479] + endcap: [1.479, 2.4] + ids: + NoIso: + label: "L1tkPhoton" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{pt} > 5" + barrel: + - "{passeseleid} == 1" + endcap: + - "{passesphoid} == 1" + Iso: + label: "tkIsoPhoton" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{pt} > 5" + barrel: + - "abs({trkiso}) < 0.2" + - "{passeseleid} == 1" + endcap: + - "abs({trkiso}) < 0.2" + - "{passesphoid} == 1" diff --git a/configs/V32nano/objects/taus.yaml b/configs/V32nano/objects/taus.yaml new file mode 100644 index 00000000..80927659 --- /dev/null +++ b/configs/V32nano/objects/taus.yaml @@ -0,0 +1,61 @@ +L1nnTau: + label: "NN Tau" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + # - "{passLooseNN}==1" + # Current IB (22 Feb recipe) does not have updated WP, so cut on NN score rather than checking passLooseNN + - "{chargedIso} > 0.22" + +L1hpsTau: + label: "HPS Tau" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + +L1caloTau: + label: "Calo Tau" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + PtGe20: + label: "Calo Tau, pt > 20" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{pt} > 20" + +L1nnCaloTau: + label: "NN Calo Tau" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{hwQual}==3" diff --git a/configs/V32nano/rate_plots/all_rate_plots.yaml b/configs/V32nano/rate_plots/all_rate_plots.yaml new file mode 100644 index 00000000..7f64c894 --- /dev/null +++ b/configs/V32nano/rate_plots/all_rate_plots.yaml @@ -0,0 +1,46 @@ +TauRates: + sample: MinBias + version: V32nano + test_objects: + - L1nnTau:default + - L1hpsTau:default + - L1caloTau:default + - L1nnCaloTau:default + binning: + min: 10 + max: 155 + step: 5 + +JetDefaultRates: + sample: MinBias + version: V32nano + test_objects: + - L1puppiJetHisto:default + - L1puppiJetSC4:default + - L1caloJet:default + binning: + min: 40 + max: 420 + step: 20 + +JetSC8Rates: + sample: MinBias + version: V32nano + test_objects: + # - L1puppiJetSC4:default + - L1puppiJetSC8:default + binning: + min: 40 + max: 420 + step: 20 + +METRates: + sample: MinBias + version: V32nano + test_objects: + - L1puppiMET:default + - L1puppiMLMET:default + binning: + min: 50 + max: 300 + step: 10 diff --git a/configs/V33nano/README.md b/configs/V33nano/README.md new file mode 100644 index 00000000..d82151a1 --- /dev/null +++ b/configs/V33nano/README.md @@ -0,0 +1,4 @@ +# V33 version + +Based on https://github.com/cms-l1-dpg/Phase2-L1Nano/tree/v33_1400pre3v1 + diff --git a/configs/V33nano/caching.yaml b/configs/V33nano/caching.yaml new file mode 100644 index 00000000..e6af4c77 --- /dev/null +++ b/configs/V33nano/caching.yaml @@ -0,0 +1,85 @@ +V33nano: + Hgg: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v33/GluGluHToGG_M-125_TuneCP5_14TeV-powheg-pythia8/GluGluHToGG_131_200PU_IB1400pre3V1/240221_221354/0000/test_*.root + trees_branches: + Events: + GenPart: [pt, eta, phi, pdgId, statusFlags] + L1tkPhoton: "all" + # L1tkElectron: "all" + L1EGbarrel: "all" + L1EGendcap: "all" + DYLL_M50: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v33_fromEmyr/dyToLL.root + trees_branches: + Events: + GenPart: "all" + L1gmtTkMuon: "all" + L1gmtMuon: "all" + L1tkElectron: "all" + L1EGbarrel: "all" + L1EGendcap: "all" + TT: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v33_fromEmyr/ttbar.root + trees_branches: + Events: + # gen + GenJet: [pt, eta, phi, partonFlavour] + GenJetAK8: [pt, eta, phi] + GenMET: "all" + # sums + L1puppiMET: [pt, phi] + L1puppiMLMET: [pt] + L1puppiJetSC4sums: [pt, phi] + L1puppiHistoJetSums: [pt, phi] + # jets + L1puppiJetSC4: [pt, eta, phi] + L1puppiJetSC8: [pt, eta, phi] + L1puppiExtJetSC4: [pt, eta, phi, btagScore] + L1puppiJetHisto: [pt, eta, phi] + L1caloJet: [pt, eta, phi] + L1TrackMET: [pt] + L1TrackHT: [ht, mht] + L1TrackJet: [pt, eta, phi] + VBFHToTauTau: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v33_fromEmyr/vbfHTauTau.root + trees_branches: + Events: + GenVisTau: "all" + L1nnPuppiTau: "all" + L1hpsTau: "all" + L1caloTau: "all" + L1nnCaloTau: "all" + MinBias: + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/14X/v33_fromEmyr/minbias.root + trees_branches: + Events: + ## PV + L1PV: [z0] + ## EG + L1tkPhoton: "all" + L1tkElectron: "all" + L1EGbarrel: "all" + L1EGendcap: "all" + ## MUONS + L1gmtTkMuon: "all" + L1gmtMuon: "all" # aka gmtMuon + ## TAUS + L1nnPuppiTau: "all" + L1hpsTau: "all" + L1caloTau: "all" + L1nnCaloTau: "all" + ## MET/Sums + L1puppiMET: [pt, phi] + L1puppiMLMET: [pt] + L1puppiJetSC4sums: [pt, phi] + L1puppiHistoJetSums: [pt, phi] + # jets + L1puppiJetSC4: [pt, eta, phi] + L1puppiJetSC8: [pt, eta, phi] + L1puppiExtJetSC4: [pt, eta, phi, btagScore] + L1puppiJetHisto: [pt, eta, phi] + L1caloJet: [pt, eta, phi] + ## track-only + L1TrackMET: [pt] + L1TrackHT: [ht, mht] + L1TrackJet: [pt, eta, phi] \ No newline at end of file diff --git a/configs/V33nano/object_performance/electron_iso.yaml b/configs/V33nano/object_performance/electron_iso.yaml new file mode 100644 index 00000000..b3ebd0a8 --- /dev/null +++ b/configs/V33nano/object_performance/electron_iso.yaml @@ -0,0 +1,50 @@ +ElectronsIsolation_Barrel: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + iso_vs_efficiency: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) < 1.479" + object: + - "abs({eta}) < 1.479" + test_objects: + L1tkElectron:NoIso: "relIso" + xlabel: "Isolation" + ylabel: "Efficiency (Barrel)" + binning: + min: 0 + max: 0.5 + step: 0.005 + +ElectronsIsolation_Endcap: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + iso_vs_efficiency: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) > 1.479" + object: + - "abs({eta}) < 2.4" + test_objects: + L1tkElectron:NoIsoForIso: "relIso" + xlabel: "Isolation" + ylabel: "Efficiency (Endcap)" + binning: + min: 0 + max: 0.5 + step: 0.005 + diff --git a/configs/V33nano/object_performance/electron_matching.yaml b/configs/V33nano/object_performance/electron_matching.yaml new file mode 100644 index 00000000..fc9537cf --- /dev/null +++ b/configs/V33nano/object_performance/electron_matching.yaml @@ -0,0 +1,103 @@ +ElectronsMatchingBarrel: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default: "pt" + L1tkElectron:NoIso: "pt" + L1tkElectron:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +# ElectronsMatchingBarrel_wPrunedGenPart: +# sample: DYLL_M50 +# version: V33nano +# match_test_to_ref: True +# reference_object: +# object: "GenPart" +# x_arg: "pt" +# label: "Gen Electrons" +# cuts: +# event: +# - "(({statusFlags}>>7)&1) == 1" +# - "abs({pdgId}) == 11" +# - "abs({eta}) < 1.5" +# object: +# - "abs({eta}) < 2.4" +# test_objects: +# L1EG:default: "pt" +# L1tkElectron:NoIso: "pt" +# L1tkElectron:Iso: "pt" +# xlabel: "Gen. $p_T$ (GeV)" +# ylabel: "Matching Efficiency (Barrel)" +# binning: +# min: 0 +# max: 100 +# step: 3 + +ElectronsMatchingEndcap: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default: "pt" + L1tkElectron:NoIso: "pt" + L1tkElectron:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 + +# ElectronsMatchingEndcap_wPrunedGenPart: +# sample: DYLL_M50 +# version: V33nano +# match_test_to_ref: True +# reference_object: +# object: "GenPart" +# x_arg: "pt" +# label: "Gen Electrons" +# cuts: +# event: +# - "(({statusFlags}>>7)&1) == 1" +# - "abs({pdgId}) == 11" +# - "abs({eta}) > 1.5" +# object: +# - "abs({eta}) < 2.4" +# test_objects: +# L1EG:default: "pt" +# L1tkElectron:NoIso: "pt" +# L1tkElectron:Iso: "pt" +# xlabel: "Gen. $p_T$ (GeV)" +# ylabel: "Matching Efficiency (Endcap)" +# binning: +# min: 0 +# max: 100 +# step: 3 diff --git a/configs/V33nano/object_performance/electron_matching_eta.yaml b/configs/V33nano/object_performance/electron_matching_eta.yaml new file mode 100644 index 00000000..1b53eb95 --- /dev/null +++ b/configs/V33nano/object_performance/electron_matching_eta.yaml @@ -0,0 +1,52 @@ +ElectronsMatching_Eta_Pt10to25: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "{pt} < 25" + - "{pt} > 10" + object: + - "abs({eta}) < 3.0" + test_objects: + L1EG:default: "eta" + L1tkElectron:NoIso: "eta" + L1tkElectron:Iso: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +ElectronsMatching_Eta_Pt25toInf: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "{pt} > 25" + object: + - "abs({eta}) < 3.0" + test_objects: + L1EG:default: "eta" + L1tkElectron:NoIso: "eta" + L1tkElectron:Iso: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($p_T > 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V33nano/object_performance/electron_trigger.yaml b/configs/V33nano/object_performance/electron_trigger.yaml new file mode 100644 index 00000000..1b514982 --- /dev/null +++ b/configs/V33nano/object_performance/electron_trigger.yaml @@ -0,0 +1,119 @@ +ElectronsTriggerBarrel: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.8" + test_objects: + L1EG:default:barrel: "pt" + L1tkElectron:NoIso:barrel: "pt" + L1tkElectron:Iso:barrel: "pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +ElectronsTriggerEndcap: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Electrons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 11" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.8" + test_objects: + L1EG:default:endcap: "pt" + L1tkElectron:NoIso:endcap: "pt" + L1tkElectron:Iso:endcap: "pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +# ElectronsTriggerBarrel_wPrunedGenPart: +# sample: DYLL_M50 +# version: V33nano +# match_test_to_ref: True +# reference_object: +# object: "GenPart" +# x_arg: "pt" +# label: "Gen Electrons" +# cuts: +# event: +# - "(({statusFlags}>>7)&1) == 1" +# - "abs({pdgId}) == 11" +# - "abs({eta}) < 1.5" +# object: +# - "abs({eta}) < 2.8" +# test_objects: + # L1EG:default:barrel: "pt" +# L1tkElectron:NoIso:barrel: "pt" +# L1tkElectron:Iso:barrel: "pt" +# thresholds: [10, 20, 30, 40] +# scalings: +# method: "naive" +# threshold: 0.95 +# xlabel: "Gen. pT (GeV)" +# ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" +# binning: +# min: 0 +# max: 100 +# step: 1.5 + +# ElectronsTriggerEndcap_wPrunedGenPart: +# sample: DYLL_M50 +# version: V33nano +# match_test_to_ref: True +# reference_object: +# object: "GenPart" +# x_arg: "pt" +# label: "Gen Electrons" +# cuts: +# event: +# - "(({statusFlags}>>7)&1) == 1" +# - "abs({pdgId}) == 11" +# - "abs({eta}) > 1.5" +# object: +# - "abs({eta}) < 2.8" +# test_objects: +# # L1EG:default:endcap: "pt" +# L1tkElectron:NoIso:endcap: "pt" +# L1tkElectron:Iso:endcap: "pt" +# thresholds: [10, 20, 30, 40] +# scalings: +# method: "naive" +# threshold: 0.95 +# xlabel: "Gen. pT (GeV)" +# ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" +# binning: +# min: 0 +# max: 100 +# step: 1.5 diff --git a/configs/V33nano/object_performance/jets_matching.yaml b/configs/V33nano/object_performance/jets_matching.yaml new file mode 100644 index 00000000..6f65cc15 --- /dev/null +++ b/configs/V33nano/object_performance/jets_matching.yaml @@ -0,0 +1,118 @@ +JetMatchingBarrel: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetHisto:default: "pt" + L1puppiJetSC4:default: "pt" + L1caloJet:default: "pt" + L1TrackJet:default: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingEndcap: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetHisto:default: "pt" + L1puppiJetSC4:default: "pt" + L1caloJet:default: "pt" + L1TrackJet:default: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingForward: + version: V33nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetHisto:default: "pt" + L1puppiJetSC4:default: "pt" + L1caloJet:default: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 + + +JetMatchingBarrelSC8: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen AK8 Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetSC8:default:barrel: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetMatchingEndcapSC8: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen AK8 Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetSC8:default:endcap: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 \ No newline at end of file diff --git a/configs/V33nano/object_performance/jets_matching_eta.yaml b/configs/V33nano/object_performance/jets_matching_eta.yaml new file mode 100644 index 00000000..88e2a3a5 --- /dev/null +++ b/configs/V33nano/object_performance/jets_matching_eta.yaml @@ -0,0 +1,94 @@ +JetMatching_Eta_Pt40To100: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetHisto:default: "eta" + L1puppiJetSC4:default: "eta" + L1caloJet:default: "eta" + L1TrackJet:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetHisto:default: "eta" + L1puppiJetSC4:default: "eta" + L1caloJet:default: "eta" + L1TrackJet:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf_extEta: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 7" + test_objects: + L1caloJet:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5.5 + max: 5.5 + step: 0.25 + +JetMatching_Eta_SC8_Pt100ToInf: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetSC8:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 \ No newline at end of file diff --git a/configs/V33nano/object_performance/jets_matching_wBTag.yaml b/configs/V33nano/object_performance/jets_matching_wBTag.yaml new file mode 100644 index 00000000..6c9d52f2 --- /dev/null +++ b/configs/V33nano/object_performance/jets_matching_wBTag.yaml @@ -0,0 +1,136 @@ +JetMatching_Eta_Pt40To100_ExtendedVsRegular: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetSC4:default: "eta" + L1puppiExtJetSC4:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt100ToInf_ExtendedVsRegular: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetSC4:default: "eta" + L1puppiExtJetSC4:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -5 + max: 5 + step: 0.25 + +JetMatching_Eta_Pt30ToInf_genBJets: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 30" + - "abs({partonFlavour}) == 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiExtJetSC4:bjetnn: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>30 GeV)" + binning: + min: -2.4 + max: 2.4 + step: 0.25 + +JetMatching_Eta_Pt30ToInf_genNotBJets: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "eta" + label: "Gen Jets" + cuts: + event: + - "{pt} > 30" + - "abs({partonFlavour}) != 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiExtJetSC4:bjetnn: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>30 GeV)" + binning: + min: -2.4 + max: 2.4 + step: 0.25 + +JetMatching_Pt_Pt30ToInf_genBJets: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({partonFlavour}) == 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiExtJetSC4:bjetnn: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 30 + max: 200 + step: 10 + +JetMatching_Pt_Pt30ToInf_genNotBJets: + sample: TT + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({partonFlavour}) != 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiExtJetSC4:bjetnn: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency" + binning: + min: 30 + max: 200 + step: 10 diff --git a/configs/V33nano/object_performance/jets_sc8_trigger.yaml b/configs/V33nano/object_performance/jets_sc8_trigger.yaml new file mode 100644 index 00000000..abbdf822 --- /dev/null +++ b/configs/V33nano/object_performance/jets_sc8_trigger.yaml @@ -0,0 +1,77 @@ +JetTurnonBarrelSC8: + version: V33nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetSC8:default:barrel: "pt" + thresholds: [150] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonEndcapSC8: + version: V33nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetSC8:default:endcap: "pt" + thresholds: [150] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonForwardSC8: + version: V33nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJetAK8" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetSC8:default:forward: "pt" + thresholds: [150] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V33nano/object_performance/jets_trigger.yaml b/configs/V33nano/object_performance/jets_trigger.yaml new file mode 100644 index 00000000..44665ff1 --- /dev/null +++ b/configs/V33nano/object_performance/jets_trigger.yaml @@ -0,0 +1,85 @@ +JetTurnonBarrel: + version: V33nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetHisto:default:barrel: "pt" + L1puppiJetSC4:default:barrel: "pt" + L1caloJet:default:barrel: "pt" + L1TrackJet:default:barrel: "pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, barrel)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonEndcap: + version: V33nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1puppiJetHisto:default:endcap: "pt" + L1puppiJetSC4:default:endcap: "pt" + L1caloJet:default:endcap: "pt" + L1TrackJet:default:endcap: "pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, endcap)" + binning: + min: 0 + max: 500 + step: 10 + +JetTurnonForward: + version: V33nano + sample: TT + match_test_to_ref: True + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen Jets" + cuts: + event: + - "abs({eta}) > 2.4" + object: + - "abs({eta}) < 5" + test_objects: + L1puppiJetHisto:default:forward: "pt" + L1puppiJetSC4:default:forward: "pt" + L1caloJet:default:forward: "pt" + thresholds: [50, 100] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Trigger Efficiency ( GeV, forward)" + binning: + min: 0 + max: 500 + step: 10 diff --git a/configs/V33nano/object_performance/met_ht_mht.yaml b/configs/V33nano/object_performance/met_ht_mht.yaml new file mode 100644 index 00000000..70112288 --- /dev/null +++ b/configs/V33nano/object_performance/met_ht_mht.yaml @@ -0,0 +1,75 @@ +HT_90perc: + sample: TT + version: V33nano + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen HT" + trafo: "HT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + test_objects: + L1puppiHistoJetSums:HT: "pt" + L1puppiJetSC4sums:HT: "pt" + L1TrackHT:HT: "ht" + thresholds: [350] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. HT (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 750 + step: 20 + +MHT_50perc: + sample: TT + version: V33nano + reference_object: + object: "GenJet" + x_arg: "pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + L1puppiHistoJetSums:MHT: "pt" + L1puppiJetSC4sums:MHT: "pt" + L1TrackHT:MHT: "mht" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.50 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 + +MET_90perc: + sample: TT + version: V33nano + reference_object: + object: "GenMET" + x_arg: "pt" + label: "Gen MET" + test_objects: + L1puppiMET:default: "pt" + L1puppiMLMET:default: "pt" + L1TrackMET:default: "pt" + thresholds: [150] + xlabel: "Gen. MET (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 500 + step: 20 diff --git a/configs/V33nano/object_performance/muon_matching.yaml b/configs/V33nano/object_performance/muon_matching.yaml new file mode 100644 index 00000000..214e26e7 --- /dev/null +++ b/configs/V33nano/object_performance/muon_matching.yaml @@ -0,0 +1,73 @@ +MuonsMatchingBarrel: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) < 0.83" + test_objects: + L1gmtMuon:default:barrel: "pt" + L1gmtTkMuon:default:barrel: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (barrel)" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatchingOverlap: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) > 0.83" + - "abs({eta}) < 1.24" + test_objects: + L1gmtMuon:default:overlap: "pt" + L1gmtTkMuon:default:overlap: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (overlap)" + binning: + min: 0 + max: 100 + step: 3 + +MuonsMatchingEndcap: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) > 1.24" + - "abs({eta}) < 2.4" + test_objects: + L1gmtMuon:default:endcap: "pt" + L1gmtTkMuon:default:endcap: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V33nano/object_performance/muon_matching_eta.yaml b/configs/V33nano/object_performance/muon_matching_eta.yaml new file mode 100644 index 00000000..8aea34d3 --- /dev/null +++ b/configs/V33nano/object_performance/muon_matching_eta.yaml @@ -0,0 +1,50 @@ +MuonsMatching_Eta_Pt2to5: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + - "{pt} > 2" + - "{pt} < 5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1gmtMuon:default: "eta" + L1gmtTkMuon:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (2-5 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +MuonsMatching_Eta_Pt15toInf: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + - "{pt} > 15" + object: + - "abs({eta}) < 2.4" + test_objects: + L1gmtMuon:default: "eta" + L1gmtTkMuon:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>15 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V33nano/object_performance/muon_trigger.yaml b/configs/V33nano/object_performance/muon_trigger.yaml new file mode 100644 index 00000000..9453fdb8 --- /dev/null +++ b/configs/V33nano/object_performance/muon_trigger.yaml @@ -0,0 +1,84 @@ +MuonsTrigger_Barrel: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) < 0.83" + test_objects: + L1gmtMuon:default:barrel: "pt" + L1gmtTkMuon:default:barrel: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 + +MuonsTrigger_Overlap: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) > 0.83" + - "abs({eta}) < 1.24" + test_objects: + L1gmtMuon:default:overlap: "pt" + L1gmtTkMuon:default:overlap: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (overlap, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 + +MuonsTrigger_Endcap: + sample: DYLL_M50 + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Muons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 13" + object: + - "abs({eta}) > 1.24" + test_objects: + L1gmtMuon:default:endcap: "pt" + L1gmtTkMuon:default:endcap: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > 20$ GeV)" + thresholds: [20, 25] + scalings: + method: "naive" + threshold: 0.95 + binning: + min: 0 + max: 50 + step: 1.5 diff --git a/configs/V33nano/object_performance/photon_iso.yaml b/configs/V33nano/object_performance/photon_iso.yaml new file mode 100644 index 00000000..2c34db04 --- /dev/null +++ b/configs/V33nano/object_performance/photon_iso.yaml @@ -0,0 +1,51 @@ +PhotonIsolation_Barrel: + sample: Hgg + version: V33nano + iso_vs_efficiency: True + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "abs({eta}) < 1.479" + object: + - "abs({eta}) < 1.479" + test_objects: + L1tkPhoton:NoIso:barrel: "relIso" + xlabel: "Isolation" + ylabel: "Efficiency (Barrel)" + binning: + min: 0 + max: 0.5 + step: 0.005 + +PhotonIsolation_Endcap: + sample: Hgg + version: V33nano + iso_vs_efficiency: True + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "abs({eta}) > 1.479" + - "abs({eta}) < 2.4" + object: + - "abs({eta}) > 1.479" + test_objects: + L1tkPhoton:NoIso:endcap: "relIso" + xlabel: "Isolation" + ylabel: "Efficiency (Endcap)" + binning: + min: 0 + max: 0.5 + step: 0.005 + diff --git a/configs/V33nano/object_performance/photons_matching.yaml b/configs/V33nano/object_performance/photons_matching.yaml new file mode 100644 index 00000000..eb99814c --- /dev/null +++ b/configs/V33nano/object_performance/photons_matching.yaml @@ -0,0 +1,103 @@ +PhotonsMatching_Barrel: + sample: Hgg + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default: "pt" + L1tkPhoton:NoIso: "pt" + L1tkPhoton:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_Endcap: + sample: Hgg + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default: "pt" + L1tkPhoton:NoIso: "pt" + L1tkPhoton:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_Barrel_wPrunedGenParts: + sample: Hgg + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default: "pt" + L1tkPhoton:NoIso: "pt" + L1tkPhoton:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 100 + step: 3 + +PhotonsMatching_Endcap_wPrunedGenParts: + sample: Hgg + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default: "pt" + L1tkPhoton:NoIso: "pt" + L1tkPhoton:Iso: "pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 100 + step: 3 diff --git a/configs/V33nano/object_performance/photons_matching_eta.yaml b/configs/V33nano/object_performance/photons_matching_eta.yaml new file mode 100644 index 00000000..a716ec10 --- /dev/null +++ b/configs/V33nano/object_performance/photons_matching_eta.yaml @@ -0,0 +1,52 @@ +PhotonsMatching_Eta_Pt10to25: + sample: Hgg + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "{pt} < 25" + - "{pt} > 10" + object: + - "abs({eta}) < 3.0" + test_objects: + L1EG:default: "eta" + L1tkPhoton:NoIso: "eta" + L1tkPhoton:Iso: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($10 < p_T < 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 + +PhotonsMatching_Eta_Pt25toInf: + sample: Hgg + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "eta" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "{pt} >= 25" + object: + - "abs({eta}) < 3.0" + test_objects: + L1EG:default: "eta" + L1tkPhoton:NoIso: "eta" + L1tkPhoton:Iso: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency ($p_T > 25$ GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V33nano/object_performance/photons_trigger.yaml b/configs/V33nano/object_performance/photons_trigger.yaml new file mode 100644 index 00000000..1b757a1f --- /dev/null +++ b/configs/V33nano/object_performance/photons_trigger.yaml @@ -0,0 +1,59 @@ +PhotonsTrigger_Barrel: + sample: Hgg + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default:barrel: "pt" + L1tkPhoton:NoIso:barrel: "pt" + L1tkPhoton:Iso:barrel: "pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 + +PhotonsTrigger_Endcap: + sample: Hgg + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenPart" + x_arg: "pt" + label: "Gen Photons" + cuts: + event: + - "(({statusFlags}>>7)&1) == 1" + - "abs({pdgId}) == 22" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1EG:default:endcap: "pt" + L1tkPhoton:NoIso:endcap: "pt" + L1tkPhoton:Iso:endcap: "pt" + thresholds: [10, 20, 30, 40] + scalings: + method: "naive" + threshold: 0.95 + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + binning: + min: 0 + max: 100 + step: 1.5 diff --git a/configs/V33nano/object_performance/tau_matching.yaml b/configs/V33nano/object_performance/tau_matching.yaml new file mode 100644 index 00000000..fd0ff154 --- /dev/null +++ b/configs/V33nano/object_performance/tau_matching.yaml @@ -0,0 +1,53 @@ +TausMatchingBarrel: + sample: VBFHToTauTau + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnPuppiTau:default: "pt" + L1hpsTau:default: "pt" + L1caloTau:default: "pt" + L1nnCaloTau:default: "pt" +# L1caloTau:PtGe20: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 150 + step: 6 + +TausMatchingEndcap: + sample: VBFHToTauTau + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnPuppiTau:default: "pt" + L1hpsTau:default: "pt" + L1caloTau:default: "pt" + L1nnCaloTau:default: "pt" +# L1caloTau:PtGe20: "Pt" + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V33nano/object_performance/tau_matching_eta.yaml b/configs/V33nano/object_performance/tau_matching_eta.yaml new file mode 100644 index 00000000..cc342b62 --- /dev/null +++ b/configs/V33nano/object_performance/tau_matching_eta.yaml @@ -0,0 +1,50 @@ +TauMatching_Eta_Pt40To100: + sample: VBFHToTauTau + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "eta" + label: "Gen Taus" + cuts: + event: + - "{pt} > 40" + - "{pt} < 100" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnPuppiTau:default: "eta" + L1hpsTau:default: "eta" + L1caloTau:default: "eta" + L1nnCaloTau:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (40-100 GeV)" + binning: + min: -3.0 + max: 3.0 + step: 0.2 + +TauMatching_Eta_Pt100ToInf: + sample: VBFHToTauTau + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "eta" + label: "Gen Taus" + cuts: + event: + - "{pt} > 100" + object: + - "abs({eta}) < 5" + test_objects: + L1nnPuppiTau:default: "eta" + L1hpsTau:default: "eta" + L1caloTau:default: "eta" + L1nnCaloTau:default: "eta" + xlabel: "Gen. $\\eta$" + ylabel: "Matching Efficiency (>100 GeV)" + binning: + min: -3 + max: 3 + step: 0.2 diff --git a/configs/V33nano/object_performance/tau_trigger.yaml b/configs/V33nano/object_performance/tau_trigger.yaml new file mode 100644 index 00000000..5c988399 --- /dev/null +++ b/configs/V33nano/object_performance/tau_trigger.yaml @@ -0,0 +1,59 @@ +TauTriggerBarrel_90perc: + sample: VBFHToTauTau + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnPuppiTau:default:barrel: "pt" + L1hpsTau:default:barrel: "pt" + L1caloTau:default:barrel: "pt" + L1nnCaloTau:default:barrel: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (barrel, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 + +TauTriggerEndcap_90perc: + sample: VBFHToTauTau + version: V33nano + match_test_to_ref: True + reference_object: + object: "GenVisTau" + x_arg: "pt" + label: "Gen Taus" + cuts: + event: + # - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + L1nnPuppiTau:default:endcap: "pt" + L1hpsTau:default:endcap: "pt" + L1caloTau:default:endcap: "pt" + L1nnCaloTau:default:endcap: "pt" + xlabel: "Gen. pT (GeV)" + ylabel: "Trigger Efficiency (endcap, L1 $p_T > $ GeV)" + thresholds: [20, 30] + scalings: + method: "naive" + threshold: 0.90 + binning: + min: 0 + max: 150 + step: 6 diff --git a/configs/V33nano/objects/electrons.yaml b/configs/V33nano/objects/electrons.yaml new file mode 100644 index 00000000..0c49b554 --- /dev/null +++ b/configs/V33nano/objects/electrons.yaml @@ -0,0 +1,59 @@ +L1tkElectron: + match_dR: 0.15 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.479] + endcap: [1.479, 5] + ids: + NoIso: + label: "TkElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "({eleId} == 1) | ({pt} < 25)" + NoIsoForIso: + # This id is exclusively used for the + # isoloation wp derivation + label: "TkElectron id in barrel" + cuts: + inclusive: + - "abs({eta}) < 2.7" + barrel: + - "({eleId} == 1) | ({pt} < 25)" + Iso: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({relIso}) < 0.13" + - "({eleId} == 1) | ({pt} < 25)" + endcap: + - "abs({relIso}) < 0.28" + IsoNoIDinEE: + label: "TkIsoElectron" + cuts: + inclusive: + - "abs({eta}) < 2.4" + barrel: + - "abs({relIso}) < 0.13" + - "({eleId} == 1) | ({pt} < 25)" + endcap: + - "abs({relIso}) < 0.28" + +L1EG: + match_dR: 0.2 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.479] + endcap: [1.479, 3.0] + label: "EG" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 3.0" + barrel: + - "{eleId} == 1" + endcap: + - "{saId} == 1" diff --git a/configs/V33nano/objects/jets.yaml b/configs/V33nano/objects/jets.yaml new file mode 100644 index 00000000..087e1c87 --- /dev/null +++ b/configs/V33nano/objects/jets.yaml @@ -0,0 +1,87 @@ +L1caloJet: + match_dR: 0.3 + label: "Calo Jet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + cuts: + inclusive: + - "abs({eta}) < 7" + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +L1puppiExtJetSC4: + match_dR: 0.35 + label: "Seeded Cone Extended PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 5" + bjetnn: + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{btagScore} > 0.71" + +L1puppiJetHisto: + match_dR: 0.3 + label: "Histogrammed PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +L1puppiJetSC4: + match_dR: 0.35 + label: "Seeded Cone PuppiJet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +L1puppiJetSC8: + match_dR: 0.35 + label: "Seeded Cone PuppiJet 8" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + forward: [2.4, 5] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 7" + +L1TrackJet: + match_dR: 0.4 + label: "Tracker Jet" + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default diff --git a/configs/V33nano/objects/met_ht_mht.yaml b/configs/V33nano/objects/met_ht_mht.yaml new file mode 100644 index 00000000..bb7611bd --- /dev/null +++ b/configs/V33nano/objects/met_ht_mht.yaml @@ -0,0 +1,57 @@ +# phase1PuppiHT: +# label: "Histogrammed Puppi HT" +# ids: +# default: {} + +# phase1PuppiMHT: +# label: "Phase1 Puppi MHT" +# ids: +# default: {} + +L1puppiMET: + label: "Puppi MET" + ids: + default: {} + +L1puppiMLMET: + label: "Puppi MLMET" + ids: + default: {} + +L1puppiJetSC4sums: + ids: + HT: + label: "SeededCone HT" + cuts: + inclusive: + - "{sumType} == 0" + MHT: + label: "SeededCone MHT" + cuts: + inclusive: + - "{sumType} == 1" + +L1puppiHistoJetSums: + ids: + HT: + label: "Histogrammed Puppi HT" + cuts: + inclusive: + - "{sumType} == 0" + MHT: + label: "Histogrammed Puppi MHT" + cuts: + inclusive: + - "{sumType} == 1" + +L1TrackHT: + ids: + HT: + label: "Tracker HT" + MHT: + label: "Tracker MHT" + +L1TrackMET: + label: "Tracker MET" + ids: + default: {} \ No newline at end of file diff --git a/configs/V33nano/objects/muons.yaml b/configs/V33nano/objects/muons.yaml new file mode 100644 index 00000000..08bd371a --- /dev/null +++ b/configs/V33nano/objects/muons.yaml @@ -0,0 +1,35 @@ +GenPart: + label: "Gen Muon" + eta_ranges: + inclusive: [0, 7] + ids: + gen_electron_default: + cuts: + inclusive: + - "(({statusFlags}>>7)&1) == 1" + + +L1gmtMuon: + label: "GMT Muon" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 0.83] + overlap: [0.83, 1.24] + endcap: [1.24, 2.4] + ids: + default: {} + +L1gmtTkMuon: + label: "GMT TkMuon" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 0.83] + overlap: [0.83, 1.24] + endcap: [1.24, 2.4] + ids: + default: + cuts: + inclusive: + - "({hwQual} > 0) | ({pt} > 8)" # quality criterion only to be appied for p_T < 8 GeV diff --git a/configs/V33nano/objects/photons.yaml b/configs/V33nano/objects/photons.yaml new file mode 100644 index 00000000..12d51f0c --- /dev/null +++ b/configs/V33nano/objects/photons.yaml @@ -0,0 +1,29 @@ +L1tkPhoton: + match_dR: 0.15 + eta_ranges: + inclusive: [0, 5] + barrel: [0, 1.479] + endcap: [1.479, 2.4] + ids: + NoIso: + label: "L1tkPhoton" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{pt} > 5" + barrel: + - "{eleId} == 1" + endcap: + - "{phoId} == 1" + Iso: + label: "L1tkIsoPhoton" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{pt} > 5" + barrel: + - "abs({relIso}) < 0.25" + - "{eleId} == 1" + endcap: + - "abs({relIso}) < 0.205" + - "{phoId} == 1" diff --git a/configs/V33nano/objects/taus.yaml b/configs/V33nano/objects/taus.yaml new file mode 100644 index 00000000..11e49a74 --- /dev/null +++ b/configs/V33nano/objects/taus.yaml @@ -0,0 +1,61 @@ +L1nnPuppiTau: + label: "NN Tau" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + # - "{passLooseNN}==1" + # Current IB (22 Feb recipe) does not have updated WP, so cut on NN score rather than checking passLooseNN + - "{chargedIso} > 0.22" + +L1hpsTau: + label: "HPS Tau" + match_dR: 0.1 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + +L1caloTau: + label: "Calo Tau" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + PtGe20: + label: "Calo Tau, pt > 20" + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{pt} > 20" + +L1nnCaloTau: + label: "NN Calo Tau" + match_dR: 0.3 + eta_ranges: + inclusive: [0, 7] + barrel: [0, 1.5] + endcap: [1.5, 2.4] + ids: + default: + cuts: + inclusive: + - "abs({eta}) < 2.4" + - "{hwQual}==3" diff --git a/configs/V33nano/rate_plots/eg.yaml b/configs/V33nano/rate_plots/eg.yaml new file mode 100644 index 00000000..12f54577 --- /dev/null +++ b/configs/V33nano/rate_plots/eg.yaml @@ -0,0 +1,12 @@ +EGRates: + sample: MinBias + version: V33nano + test_objects: + - L1EG:default + - L1tkElectron:NoIso + - L1tkElectron:Iso + - L1tkPhoton:Iso + binning: + min: 10 + max: 97 + step: 3 diff --git a/configs/V33nano/rate_plots/ht.yaml b/configs/V33nano/rate_plots/ht.yaml new file mode 100644 index 00000000..ac15d4c3 --- /dev/null +++ b/configs/V33nano/rate_plots/ht.yaml @@ -0,0 +1,23 @@ +HTRates: + sample: MinBias + version: V33nano + test_objects: + - L1puppiHistoJetSums:HT + - L1puppiJetSC4sums:HT + - L1TrackHT:HT + binning: + min: 50 + max: 975 + step: 25 + +MHTRates: + sample: MinBias + version: V33nano + test_objects: + - L1puppiHistoJetSums:MHT + - L1puppiJetSC4sums:MHT + - L1TrackHT:MHT + binning: + min: 50 + max: 975 + step: 25 diff --git a/configs/V33nano/rate_plots/jets.yaml b/configs/V33nano/rate_plots/jets.yaml new file mode 100644 index 00000000..1d6880fc --- /dev/null +++ b/configs/V33nano/rate_plots/jets.yaml @@ -0,0 +1,52 @@ +JetDefaultRates: + sample: MinBias + version: V33nano + test_objects: + - L1puppiJetHisto:default + - L1puppiJetSC4:default + - L1caloJet:default + - L1TrackJet:default + binning: + min: 40 + max: 420 + step: 20 + +JetsByRegion: + sample: MinBias + version: V33nano + test_objects: + - L1puppiJetSC4:default:barrel + - L1puppiJetSC4:default:endcap + - L1caloJet:default:barrel + - L1caloJet:default:endcap + - L1TrackJet:default:barrel + - L1TrackJet:default:endcap + binning: + min: 40 + max: 420 + step: 20 + +JetSC8Rates: + sample: MinBias + version: V33nano + test_objects: + - L1puppiJetSC4:default + - L1puppiJetSC8:default + binning: + min: 40 + max: 420 + step: 20 + + +JetSC8Rates_byRegion: + sample: MinBias + version: V33nano + test_objects: + # - L1puppiJetSC4:default + - L1puppiJetSC8:default + - L1puppiJetSC8:default:barrel + - L1puppiJetSC8:default:endcap + binning: + min: 40 + max: 420 + step: 20 \ No newline at end of file diff --git a/configs/V33nano/rate_plots/met.yaml b/configs/V33nano/rate_plots/met.yaml new file mode 100644 index 00000000..c0a58061 --- /dev/null +++ b/configs/V33nano/rate_plots/met.yaml @@ -0,0 +1,11 @@ +METRates: + sample: MinBias + version: V33nano + test_objects: + - L1puppiMET:default + - L1puppiMLMET:default + - L1TrackMET:default + binning: + min: 50 + max: 500 + step: 25 diff --git a/configs/V33nano/rate_plots/muons.yaml b/configs/V33nano/rate_plots/muons.yaml new file mode 100644 index 00000000..7573ef0f --- /dev/null +++ b/configs/V33nano/rate_plots/muons.yaml @@ -0,0 +1,34 @@ +gmtMuonByRegion: + sample: MinBias + version: V33nano + test_objects: + - L1gmtMuon:default:barrel + - L1gmtMuon:default:overlap + - L1gmtMuon:default:endcap + binning: + min: 0 + max: 75 + step: 3 + +gmtTkMuonByRegion: + sample: MinBias + version: V33nano + test_objects: + - L1gmtTkMuon:default:barrel + - L1gmtTkMuon:default:overlap + - L1gmtTkMuon:default:endcap + binning: + min: 0 + max: 75 + step: 3 + +MuonRates: + sample: MinBias + version: V33nano + test_objects: + - L1gmtMuon:default + - L1gmtTkMuon:default + binning: + min: 0 + max: 75 + step: 3 diff --git a/configs/V33nano/rate_plots/taus.yaml b/configs/V33nano/rate_plots/taus.yaml new file mode 100644 index 00000000..1bb5775d --- /dev/null +++ b/configs/V33nano/rate_plots/taus.yaml @@ -0,0 +1,25 @@ +TauRates: + sample: MinBias + version: V33nano + test_objects: + - L1nnPuppiTau:default + - L1hpsTau:default + - L1caloTau:default + - L1nnCaloTau:default + binning: + min: 10 + max: 155 + step: 5 + +TauRatesByRegion: + sample: MinBias + version: V33nano + test_objects: + - L1caloTau:default:barrel + - L1caloTau:default:endcap + - L1nnPuppiTau:default:barrel + - L1nnPuppiTau:default:endcap + binning: + min: 10 + max: 155 + step: 5 diff --git a/configs/scaling_thresholds.yaml b/configs/scaling_thresholds.yaml index af0cbede..dcec63a7 100644 --- a/configs/scaling_thresholds.yaml +++ b/configs/scaling_thresholds.yaml @@ -1,4 +1,5 @@ Jet: {25, 30, 35, 40, 45, 50, 55, 60, 70, 75, 80, 85, 90, 100, 120, 125, 130, 140, 150, 175} +# Jet: {100, 120, 150, 175, 200, 250, 300} # Scalings for SC8, as min jet pt in nano is 100 GeV Muon: {7, 9, 10, 12, 14, 15, 17, 20, 26, 25, 27, 30} Tau: {27, 30, 40, 50, 60, 70} EG: {7, 9, 12, 14, 15, 17, 20, 26, 25, 27, 30, 40, 50} diff --git a/menu_tools/caching/cache_objects.py b/menu_tools/caching/cache_objects.py index 4c304755..5e286cb5 100755 --- a/menu_tools/caching/cache_objects.py +++ b/menu_tools/caching/cache_objects.py @@ -258,7 +258,13 @@ def _ak_array_in_chunk(self, arr, chunk_array, branches): def _concat_array_from_ntuples(self): fnames = glob.glob(self._ntuple_path)[:] - branches = [self._object + x for x in self._branches] + ## Nano + if self._tree == "Events": + branches = [f"{self._object}_{x}" for x in self._branches] + ## menu ntuple + else: + branches = [self._object + x for x in self._branches] + all_arrays = {x.removeprefix("part"): [] for x in branches} for fname in tqdm(fnames): @@ -282,8 +288,15 @@ def _concat_array_from_ntuples(self): if self._object.startswith("part"): all_arrays = {**all_arrays, **self._ref_part_iso} + if len(all_arrays) > 1: self._final_ak_array = ak.zip({**all_arrays}) + # sums -> add local index + if "sums" in self._object.lower(): + self._final_ak_array[f"{self._object}_sumType"] = ak.local_index( + self._final_ak_array + ) + self._branches += [f"{self._object}_sumType"] else: self._final_ak_array = ak.Array(all_arrays) diff --git a/menu_tools/caching/merge_arrays.py b/menu_tools/caching/merge_arrays.py new file mode 100644 index 00000000..7e5aea62 --- /dev/null +++ b/menu_tools/caching/merge_arrays.py @@ -0,0 +1,25 @@ +import awkward as ak + +version = "V33nano" +sample = "MinBias" +# sample = "Hgg" +pattern = f"cache/{version}/{version}_{sample}_%s.parquet" +objects = ["L1EGbarrel", "L1EGendcap"] +target_object = "L1EG" + +print(f"Reading files as {pattern} for {objects}") +arrs = [] + +for obj in objects: + arr = ak.from_parquet(pattern % obj) + arr = ak.Array({f.replace(obj, target_object): arr[f] for f in arr.fields}) + # apply 5 gev cut + arr = arr[arr[f"{target_object}_pt"] > 5] + print(obj, arr.fields) + arrs.append(arr) + +print("Merging") +merge_arr = ak.concatenate(arrs, axis=1) +print(merge_arr) +print(f"Writing merged array to: {pattern%target_object}") +ak.to_parquet(merge_arr, pattern % target_object) diff --git a/menu_tools/object_performance/turnon_collection.py b/menu_tools/object_performance/turnon_collection.py index 50e13556..f916b6a9 100644 --- a/menu_tools/object_performance/turnon_collection.py +++ b/menu_tools/object_performance/turnon_collection.py @@ -24,7 +24,13 @@ def _transform_key(self, raw_key: str, obj: str): NTuple branch names for quality and region to "quality"/"region". """ - key = raw_key.removeprefix(obj).lower() + ## nano + if ("_" in raw_key) and ("dr_0" not in raw_key): + key = raw_key.removeprefix(obj).split("_")[-1] + ## menu ntuples + else: + key = raw_key.removeprefix(obj).lower() + if "qual" in key: return "quality" else: @@ -45,7 +51,7 @@ def _load_array_from_parquet(self, obj: str): ) array = ak.from_parquet(fname) array_dict = {self._transform_key(key, obj): array[key] for key in array.fields} - if self.cfg_plot.reference_trafo: + if self.cfg_plot.reference_trafo and not obj.startswith("L1"): array = ak.Array(array_dict) else: array = ak.zip(array_dict) @@ -99,7 +105,10 @@ def test_objects(self) -> list[tuple[Object, str]]: test_objects = self.cfg_plot.test_objects for obj_key, x_arg in test_objects.items(): obj = Object(obj_key, self.cfg_plot.version) - obj_args.append((obj, x_arg.lower())) + if "L1" in obj_key: + obj_args.append((obj, x_arg)) + else: + obj_args.append((obj, x_arg.lower())) return obj_args @@ -136,7 +145,7 @@ def _match_test_to_ref(self): pass_dR = dR < test_obj.match_dR pt_max = ak.argmax(ref_test["test"]["pt"][pass_dR], axis=-1, keepdims=True) - if "iso" not in x_arg: + if "iso" not in x_arg.lower(): self.numerators["ref"][str(test_obj)] = ref_test["ref"][x_arg][pass_dR][ pt_max ][:, :, 0] @@ -257,6 +266,9 @@ def _apply_test_obj_cuts(self): for test_obj, _ in self.test_objects: if not test_obj.cuts: continue + ## add dummy eta + if "eta" not in self.ak_arrays[str(test_obj)].fields: + self.ak_arrays[str(test_obj)]["eta"] = 0 for ( range_i, range_cuts, @@ -267,7 +279,7 @@ def _apply_test_obj_cuts(self): ) eta_sel = ( abs(self.ak_arrays[str(test_obj)]["eta"]) - > test_obj.eta_ranges[range_i][0] + >= test_obj.eta_ranges[range_i][0] ) & ( abs(self.ak_arrays[str(test_obj)]["eta"]) < test_obj.eta_ranges[range_i][1] @@ -286,6 +298,8 @@ def _skim_to_hists(self) -> None: for test_obj, x_arg in self.test_objects: sel = self.ak_arrays[str(test_obj)][x_arg] > self.threshold + if (self.ak_arrays["ref"].ndim == 1) and (sel.ndim == 2): + sel = sel[:, 0] ak_array = self._flatten_array(self.ak_arrays["ref"][ref_field][sel]) self.hists[str(test_obj)] = np.histogram(ak_array, bins=self.bins) @@ -347,11 +361,12 @@ def get_efficiency(self, obj: Object): return eff, err def _apply_cuts(self): + # Apply cuts on test objects + self._apply_test_obj_cuts() + # Apply cuts on reference objects self._apply_reference_cuts() self._apply_reference_trafo() - # Apply cuts on test objects - self._apply_test_obj_cuts() def create_hists(self): self._load_arrays() diff --git a/menu_tools/rate_plots/plotter.py b/menu_tools/rate_plots/plotter.py index 106851f7..c32f1514 100644 --- a/menu_tools/rate_plots/plotter.py +++ b/menu_tools/rate_plots/plotter.py @@ -29,6 +29,11 @@ def __init__(self, cfg, data, offline_pt: bool): self.data = data self.offline_pt = offline_pt + ## Overwrite outdir + self._outdir = os.path.join( + "outputs", self.cfg.version, "object_performance", "rates" + ) + @property def _online_offline(self): if self.offline_pt: @@ -65,7 +70,7 @@ def _plot_single_version_rate_curves(self): xvals = list(rate_values.keys()) yvals = list(rate_values.values()) - label = f"{obj_instances[version].plot_label} @ {version}" + label = f"{obj_instances[version].plot_label}" plot_dict[obj_specifier] = { "x_values": xvals, @@ -89,6 +94,7 @@ def _plot_single_version_rate_curves(self): self._outdir, f"{version}_{self._online_offline}_{self.cfg.plot_name}", ) + print("Saving to ", fname) plt.savefig(fname + ".png") plt.savefig(fname + ".pdf") @@ -184,7 +190,13 @@ def _transform_key(self, raw_key: str) -> str: key: string of with the l1 object name prefix removed, qual transformed to quality """ - key = raw_key.removeprefix(self.object.nano_obj_name).lower() + ## nano + if "_" in raw_key: + key = raw_key.removeprefix(self.object.nano_obj_name).split("_")[-1] + ## menu ntuples + else: + key = raw_key.removeprefix(self.object.nano_obj_name).lower() + if "qual" in key: return "quality" return key @@ -207,7 +219,7 @@ def _load_cached_arrays(self): # Apply scalings if so configured if self.apply_offline_conversion: arr = scalings.add_offline_pt(arr, self.object) - arr["pt"] = scalings.get_pt_branch(arr) + arr["pt"] = scalings.get_pt_branch(arr, str(self.object)) return arr diff --git a/menu_tools/utils/objects.py b/menu_tools/utils/objects.py index 16d02ad6..840d76d5 100644 --- a/menu_tools/utils/objects.py +++ b/menu_tools/utils/objects.py @@ -172,12 +172,16 @@ def compute_selection_mask_for_object_cuts(obj: Object, ak_array: ak.Array) -> a if not obj.cuts: return sel + ## add fake eta + if "eta" not in ak_array["eta"].fields: + ak_array["eta"] = 0 + for range_i, range_cuts in obj.cuts.items(): # Initialize temporary mask (for rangei) with True everywhere _sel = ak.ones_like(ak_array[ak_array.fields[0]]) > 0 for cut in range_cuts: cut = re.sub(r"{([^&|]*)}", r"ak_array['\1']", cut) - eta_sel = (abs(ak_array["eta"]) > obj.eta_ranges[range_i][0]) & ( + eta_sel = (abs(ak_array["eta"]) >= obj.eta_ranges[range_i][0]) & ( abs(ak_array["eta"]) < obj.eta_ranges[range_i][1] ) _sel = _sel & (eval(cut) + ~eta_sel) diff --git a/menu_tools/utils/scalings.py b/menu_tools/utils/scalings.py index a4b5a941..4ff1a332 100644 --- a/menu_tools/utils/scalings.py +++ b/menu_tools/utils/scalings.py @@ -35,15 +35,20 @@ def load_scaling_params(obj: Object, eta_range: str) -> tuple[float, float]: return scaling_params["slope"], scaling_params["offset"] -def get_pt_branch(arr: ak.Array) -> ak.Array: +def get_pt_branch(arr: ak.Array, obj_name: str) -> ak.Array: if "pt" in arr.fields: pt_orig = arr.pt elif "et" in arr.fields: pt_orig = arr.et elif "" in arr.fields: pt_orig = arr[""] + ### HACK + elif "L1TrackHT:MHT" in obj_name: + pt_orig = arr["mht"] + elif "L1TrackHT:HT" in obj_name: + pt_orig = arr["ht"] else: - raise RuntimeError("Unknown pt branch!") + raise RuntimeError(f"Unknown pt branch for {obj_name}! in fields", arr.fields) return pt_orig @@ -51,7 +56,7 @@ def add_offline_pt(arr: ak.Array, obj: Object) -> ak.Array: """ Add offline pt to filed called `offline_pt` and return array """ - pt_orig = get_pt_branch(arr) + pt_orig = get_pt_branch(arr, str(obj)) new_pt = ak.zeros_like(pt_orig) if len(obj.eta_ranges) == 1 and list(obj.eta_ranges)[0] == "inclusive": diff --git a/menu_tools/utils/utils.py b/menu_tools/utils/utils.py index 576cf067..df53c38c 100644 --- a/menu_tools/utils/utils.py +++ b/menu_tools/utils/utils.py @@ -58,12 +58,23 @@ def get_branches(ntuple_path: str, tree: str, obj: str): ntuple = glob.glob(ntuple_path)[0] with uproot.open(ntuple) as f: all_branches = f[tree].keys() - if "GenTree" in tree: - prefix = "Generator/" - else: - prefix = "L1PhaseII/" - - obj_branches = [x.removeprefix(prefix + obj) for x in all_branches if obj in x] + if "GenTree" in tree: + prefix = "Generator/" + elif "L1PhaseII" in tree: + prefix = "L1PhaseII/" + elif "Events" in tree: + prefix = "" + + ## nano + if tree == "Events": + obj_branches = [x.split("_")[-1] for x in all_branches if x.startswith(obj)] + ## no nano + else: + obj_branches = [ + x.removeprefix(prefix + obj) + for x in all_branches + if x.startswith(prefix + obj) + ] return obj_branches