From 25e07c81af2579c0103e6b2739135ca2b8fe4085 Mon Sep 17 00:00:00 2001 From: Artur Lobanov Date: Tue, 25 Apr 2023 11:20:35 +0200 Subject: [PATCH 1/4] Update V29 cache paths and fix HH tautau path --- objectPerformance/cfg_caching/V29.yaml | 38 ++++++++++++++------------ 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/objectPerformance/cfg_caching/V29.yaml b/objectPerformance/cfg_caching/V29.yaml index 62ed85e9..ab927ad5 100644 --- a/objectPerformance/cfg_caching/V29.yaml +++ b/objectPerformance/cfg_caching/V29.yaml @@ -1,6 +1,6 @@ V29: DYLL_M50: - ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v28/DYToLL_M-50_TuneCP5_14TeV-pythia8/DY_M50_1252_crab_v28_Snap3/*/0000/*.root + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v29/DY_M50_1252_crab_v29_Snap3/230413_214444/0000/*.root trees_branches: genTree/L1GenTree: part_mu: [Id, Stat, Pt, Eta, Phi] @@ -11,8 +11,7 @@ V29: 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/CMSSW_12_5_2p1/v28/TT_TuneCP5_14TeV-powheg-pythia8/TT_1252_crab_v28_Snap3/*/0000/*.root - ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v29/TT_1252_200PU/*.root + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v29/TT_1252_crab_v29_Snap3/230413_214422/0000/*.root trees_branches: genTree/L1GenTree: genMetTrue: "all" @@ -32,33 +31,35 @@ V29: 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] VBFHToTauTau: - ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v28/VBFHToTauTau_M-125_TuneCP5_14TeV-powheg-pythia8/VBFHToTauTau_1252_crab_v28_Snap3/230413_214647/0000/*.root + ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v29/VBFHToTauTau_1252_crab_v29_Snap3/230413_214647/*/*.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/GluGluToHHTo2B2Tau_node_SM_TuneCP5_14TeV-madgraph-pythia8/HHToTauTau_1252_200PU_crab_v27_PU200_fixHwQual/230320_095340/0000/L1NtuplePhaseII_Step1_1.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] + 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/v28/GluGluHToGG_M-125_TuneCP5_14TeV-powheg-pythia8/GluGluHToGG_1252_crab_v28_Snap3/*/0000/*.root + 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] + 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/v28/MinBias_TuneCP5_14TeV-pythia8/MinBias_1252_crb_v28_Snap3/*/*/*.root - ntuple_path: /eos/cms/store/group/dpg_trigger/comm_trigger/L1Trigger/alobanov/phase2/menu/ntuples/CMSSW_12_5_2p1/v29/MinBias/*.root + 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" @@ -66,12 +67,15 @@ V29: phase1PuppiMHT: "all" phase1PuppiHT: "all" seededConePuppiJet: [Pt, Et, Eta, Phi] + seededConeExtendedPuppiJet: [Pt, Et, Eta, Phi, BJetNN] + seededConeExtendedPuppiHT: "all" 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] + tkPhoton: [Pt, Et, Eta, Phi, Bx, TrkIso, HwQual, HGC, PassesEleID, PassesPhoID, TrkIsoPV] z0L1TkPV: "all" + caloTau: [Et, Eta, Pt, Phi, Iso, HwQual, Bx] From 85054e8985f7a003ff1f07b9fca1bb7f234fa4b9 Mon Sep 17 00:00:00 2001 From: Artur Lobanov Date: Tue, 25 Apr 2023 11:20:57 +0200 Subject: [PATCH 2/4] Add puppi HT to MHT30 plot --- objectPerformance/cfg_plots/V29/met_ht_mht.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/objectPerformance/cfg_plots/V29/met_ht_mht.yaml b/objectPerformance/cfg_plots/V29/met_ht_mht.yaml index c5090d22..da194675 100644 --- a/objectPerformance/cfg_plots/V29/met_ht_mht.yaml +++ b/objectPerformance/cfg_plots/V29/met_ht_mht.yaml @@ -44,6 +44,12 @@ MHT30: - "{pt} > 30" trafo: "MHT" test_objects: + phase1PuppiMHT: + suffix: "et" + label: "Phase1 Puppi MHT" + seededConePuppiMHT: + suffix: "et" + label: "SeededCone MHT" trackerMHT: suffix: "" label: "Tracker MHT" From f9fff043acaeb2dc476a0f50be76cc12a836a8dc Mon Sep 17 00:00:00 2001 From: Artur Lobanov Date: Tue, 25 Apr 2023 11:34:51 +0200 Subject: [PATCH 3/4] Add configs for HHtau in 27 and MHT only in 22,27,29 --- objectPerformance/cfg_plots/V22/mht.yaml | 32 +++++++++ objectPerformance/cfg_plots/V27/mht.yaml | 32 +++++++++ .../cfg_plots/V27/tau_matching_wHH.yaml | 67 +++++++++++++++++++ objectPerformance/cfg_plots/V29/mht.yaml | 32 +++++++++ 4 files changed, 163 insertions(+) create mode 100644 objectPerformance/cfg_plots/V22/mht.yaml create mode 100644 objectPerformance/cfg_plots/V27/mht.yaml create mode 100644 objectPerformance/cfg_plots/V27/tau_matching_wHH.yaml create mode 100644 objectPerformance/cfg_plots/V29/mht.yaml diff --git a/objectPerformance/cfg_plots/V22/mht.yaml b/objectPerformance/cfg_plots/V22/mht.yaml new file mode 100644 index 00000000..b687971f --- /dev/null +++ b/objectPerformance/cfg_plots/V22/mht.yaml @@ -0,0 +1,32 @@ +MHT30: + sample: TT + default_version: V22 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + phase1PuppiMHT: + suffix: "et" + label: "Phase1 Puppi MHT" + seededConePuppiMHT: + suffix: "et" + label: "SeededCone MHT" + trackerMHT: + suffix: "" + label: "Tracker MHT" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 diff --git a/objectPerformance/cfg_plots/V27/mht.yaml b/objectPerformance/cfg_plots/V27/mht.yaml new file mode 100644 index 00000000..534750df --- /dev/null +++ b/objectPerformance/cfg_plots/V27/mht.yaml @@ -0,0 +1,32 @@ +MHT30: + sample: TT + default_version: V27 + reference_object: + object: "jet" + suffix: "Pt" + label: "Gen MHT" + cuts: + object: + - "abs({eta}) < 2.4" + - "{pt} > 30" + trafo: "MHT" + test_objects: + phase1PuppiMHT: + suffix: "et" + label: "Phase1 Puppi MHT" + seededConePuppiMHT: + suffix: "et" + label: "SeededCone MHT" + trackerMHT: + suffix: "" + label: "Tracker MHT" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 diff --git a/objectPerformance/cfg_plots/V27/tau_matching_wHH.yaml b/objectPerformance/cfg_plots/V27/tau_matching_wHH.yaml new file mode 100644 index 00000000..3868ee93 --- /dev/null +++ b/objectPerformance/cfg_plots/V27/tau_matching_wHH.yaml @@ -0,0 +1,67 @@ +HHTausMatchingBarrel: + sample: HHToTauTau + default_version: V27 + reference_object: + object: "part_tau" + suffix: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) < 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau: + suffix: "Pt" + label: "NN Tau" + cuts: + - "abs({eta}) < 2.4" + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Pt" + label: "Calo Tau" + cuts: + - "abs({eta}) < 2.4" + match_dR: 0.3 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Barrel)" + binning: + min: 0 + max: 150 + step: 6 + +HHTausMatchingEndcap: + sample: HHToTauTau + default_version: V27 + reference_object: + object: "part_tau" + suffix: "Pt" + label: "Gen Taus" + cuts: + event: + - "{dr_0.3} < 0.15" + - "abs({eta}) > 1.5" + object: + - "abs({eta}) < 2.4" + test_objects: + nnTau: + suffix: "Pt" + label: "NN Tau" + cuts: + - "abs({eta}) < 2.4" + - "{passloosenn}==1" + match_dR: 0.1 + caloTau: + suffix: "Pt" + label: "Calo Tau" + cuts: + - "abs({eta}) < 2.4" + match_dR: 0.3 + xlabel: "Gen. $p_T$ (GeV)" + ylabel: "Matching Efficiency (Endcap)" + binning: + min: 0 + max: 150 + step: 6 diff --git a/objectPerformance/cfg_plots/V29/mht.yaml b/objectPerformance/cfg_plots/V29/mht.yaml new file mode 100644 index 00000000..f1a5a5f7 --- /dev/null +++ b/objectPerformance/cfg_plots/V29/mht.yaml @@ -0,0 +1,32 @@ +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: + phase1PuppiMHT: + suffix: "et" + label: "Phase1 Puppi MHT" + seededConePuppiMHT: + suffix: "et" + label: "SeededCone MHT" + trackerMHT: + suffix: "" + label: "Tracker MHT" + thresholds: [70, 150] + scalings: + method: "naive" + threshold: 0.90 + xlabel: "Gen. MHT30 (GeV)" + ylabel: "Trigger Efficiency ( GeV)" + binning: + min: 0 + max: 500 + step: 20 From bdeda6cd6b47358dfb638f8f488ac38a0565326a Mon Sep 17 00:00:00 2001 From: Artur Lobanov Date: Tue, 25 Apr 2023 11:40:50 +0200 Subject: [PATCH 4/4] Fix ID for EG in photons eta match plot --- objectPerformance/cfg_plots/V29/photons_matching_eta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/objectPerformance/cfg_plots/V29/photons_matching_eta.yaml b/objectPerformance/cfg_plots/V29/photons_matching_eta.yaml index 6b520295..aa067474 100644 --- a/objectPerformance/cfg_plots/V29/photons_matching_eta.yaml +++ b/objectPerformance/cfg_plots/V29/photons_matching_eta.yaml @@ -49,7 +49,7 @@ PhotonsMatching_Eta_Pt10to25: max: 3 step: 0.2 -PhotonsMatching_Eta_Pt25: +PhotonsMatching_Eta_Pt25toInf: sample: Hgg default_version: V29 reference_object: @@ -65,12 +65,12 @@ PhotonsMatching_Eta_Pt25: test_objects: EG: suffix: "Eta" - label: "EG EleID" + label: "EG" match_dR: 0.2 quality_id: "QUAL_125x_EGID" cuts: - "abs({eta}) < 3" - - "{passeseleid} == 1" + #- "{passeseleid} == 1" tkPhoton: match_dR: 0.15 suffix: "Eta"