Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cms-l1-dpg/Phase2-L1MenuTools into …
Browse files Browse the repository at this point in the history
…v28_devel
  • Loading branch information
artlbv committed Apr 25, 2023
2 parents f9fff04 + a1bf9b7 commit a83c675
Show file tree
Hide file tree
Showing 21 changed files with 1,379 additions and 162 deletions.
10 changes: 10 additions & 0 deletions objectPerformance/cfg_caching/V27_bTagNN.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
V27:
TT:
ntuple_path: /afs/cern.ch/work/e/ejclemen/TJM/BJetNN/Phase2-L1MenuTools/ntuples_dr4.root
trees_branches:
genTree/L1GenTree:
genMetTrue: "all"
jet: "all"
l1PhaseIITree/L1PhaseIITree:
seededConeExtendedPuppiJet: [Pt, Et, Eta, Phi, BJetNN]
seededConePuppiJet: [Pt, Et, Eta, Phi]
30 changes: 30 additions & 0 deletions objectPerformance/cfg_plots/V29/bJetEff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
BJetEff_Pt:
files:
JetMatching_Pt_Pt30ToInf_genBJets_-999_V29:
object: seededConeExtendedPuppiJet
dir: outputs/V29/turnons/
label: "Signal: Matched b-jets"
JetMatching_Pt_Pt30ToInf_genNotBJets_-999_V29:
object: seededConeExtendedPuppiJet
dir: outputs/V29/turnons/
label: "Background: Unmatched b-jets"
xlabel: "Gen. $p_T$ (GeV)"
ylabel: "Matching Efficiency"
watermark: "BJet_Pt"
save_dir: "outputs/BJet/turnons"


BJetEff_Eta:
files:
JetMatching_Eta_Pt30ToInf_genBJets_-999_V29:
object: seededConeExtendedPuppiJet
dir: outputs/V29/turnons/
label: "Signal: Matched b-jets"
JetMatching_Eta_Pt30ToInf_genNotBJets_-999_V29:
object: seededConeExtendedPuppiJet
dir: outputs/V29/turnons/
label: "Background: Unmatched b-jets"
xlabel: "Gen. $\\eta$"
ylabel: "Matching Efficiency"
watermark: "BJet_Eta"
save_dir: "outputs/BJet/turnons"
4 changes: 2 additions & 2 deletions objectPerformance/cfg_plots/V29/electron_matching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ElectronsMatchingBarrel:
ylabel: "Matching Efficiency (Barrel)"
binning:
min: 0
max: 150
max: 100
step: 3

ElectronsMatchingEndcap:
Expand Down Expand Up @@ -87,5 +87,5 @@ ElectronsMatchingEndcap:
ylabel: "Matching Efficiency (Endcap)"
binning:
min: 0
max: 150
max: 100
step: 3
4 changes: 2 additions & 2 deletions objectPerformance/cfg_plots/V29/electron_trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ElectronsTriggerBarrel:
ylabel: "Trigger Efficiency (barrel, L1 $p_T > <threshold>$ GeV)"
binning:
min: 0
max: 150
max: 100
step: 1.5

ElectronsTriggerEndcap:
Expand Down Expand Up @@ -95,5 +95,5 @@ ElectronsTriggerEndcap:
ylabel: "Trigger Efficiency (endcap, L1 $p_T > <threshold>$ GeV)"
binning:
min: 0
max: 150
max: 100
step: 1.5
44 changes: 22 additions & 22 deletions objectPerformance/cfg_plots/V29/jets_matching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ JetMatchingBarrel:
object:
- "abs({eta}) < 2.4"
test_objects:
caloJet:
match_dR: 0.3
suffix: "Pt"
label: "Calo Jet"
cuts:
- "abs({eta}) < 2.5"
# caloJet:
# match_dR: 0.3
# suffix: "Pt"
# label: "Calo Jet"
# cuts:
# - "abs({eta}) < 2.5"
phase1PuppiJet:
match_dR: 0.3
suffix: "Pt"
Expand All @@ -77,7 +77,7 @@ JetMatchingBarrel:
ylabel: "Trigger Efficiency (<threshold> GeV, barrel)"
binning:
min: 0
max: 700
max: 500
step: 10

JetMatchingEndcap:
Expand All @@ -93,12 +93,12 @@ JetMatchingEndcap:
object:
- "abs({eta}) < 2.4"
test_objects:
caloJet:
match_dR: 0.3
suffix: "Pt"
label: "Calo Jet"
cuts:
- "abs({eta}) < 5"
# caloJet:
# match_dR: 0.3
# suffix: "Pt"
# label: "Calo Jet"
# cuts:
# - "abs({eta}) < 5"
phase1PuppiJet:
match_dR: 0.3
suffix: "Pt"
Expand All @@ -121,8 +121,8 @@ JetMatchingEndcap:
ylabel: "Trigger Efficiency (<threshold> GeV, endcap)"
binning:
min: 0
max: 900
step: 20
max: 500
step: 10

JetMatchingForward:
sample: TT
Expand All @@ -137,12 +137,12 @@ JetMatchingForward:
object:
- "abs({eta}) < 5"
test_objects:
caloJet:
match_dR: 0.3
suffix: "Pt"
label: "Calo Jet"
cuts:
- "abs({eta}) < 5"
# caloJet:
# match_dR: 0.3
# suffix: "Pt"
# label: "Calo Jet"
# cuts:
# - "abs({eta}) < 5"
phase1PuppiJet:
match_dR: 0.3
suffix: "Pt"
Expand All @@ -159,6 +159,6 @@ JetMatchingForward:
ylabel: "Trigger Efficiency (<threshold> GeV, forward)"
binning:
min: 0
max: 700
max: 500
step: 10

24 changes: 12 additions & 12 deletions objectPerformance/cfg_plots/V29/jets_matching_eta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ JetMatching_Eta_Pt40To100:
object:
- "abs({eta}) < 5"
test_objects:
caloJet:
match_dR: 0.3
suffix: "Eta"
label: "Calo Jet"
cuts:
- "abs({eta}) < 5"
# caloJet:
# match_dR: 0.3
# suffix: "Eta"
# label: "Calo Jet"
# cuts:
# - "abs({eta}) < 5"
phase1PuppiJet:
match_dR: 0.3
suffix: "Eta"
Expand Down Expand Up @@ -56,12 +56,12 @@ JetMatching_Eta_Pt100ToInf:
object:
- "abs({eta}) < 5"
test_objects:
caloJet:
match_dR: 0.3
suffix: "Eta"
label: "Calo Jet"
cuts:
- "abs({eta}) < 5"
# caloJet:
# match_dR: 0.3
# suffix: "Eta"
# label: "Calo Jet"
# cuts:
# - "abs({eta}) < 5"
phase1PuppiJet:
match_dR: 0.3
suffix: "Eta"
Expand Down
179 changes: 179 additions & 0 deletions objectPerformance/cfg_plots/V29/jets_matching_wBTag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
JetMatching_Eta_Pt40To100_ExtendedVsRegular:
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"
seededConeExtendedPuppiJet:
match_dR: 0.35
suffix: "Eta"
label: "Seeded Cone Extended PuppiJet"
cuts:
- "abs({eta}) < 5"
xlabel: "Gen. $\\eta$"
ylabel: "Matching Efficiency (40-100 GeV)"
binning:
min: -5
max: 5
step: 0.25

JetMatching_Eta_Pt100ToInf_ExtendedVsRegular:
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"
seededConeExtendedPuppiJet:
match_dR: 0.35
suffix: "Eta"
label: "Seeded Cone Extended PuppiJet"
cuts:
- "abs({eta}) < 5"
xlabel: "Gen. $\\eta$"
ylabel: "Matching Efficiency (>100 GeV)"
binning:
min: -5
max: 5
step: 0.25

JetMatching_Eta_Pt30ToInf_genBJets:
sample: TT
default_version: V29
reference_object:
object: "jet"
suffix: "Eta"
label: "Gen Jets"
cuts:
event:
- "{pt} > 30"
- "abs({partonflavour}) == 5"
object:
- "abs({eta}) < 2.4"
test_objects:
seededConeExtendedPuppiJet:
match_dR: 0.35
suffix: "Eta"
label: "Seeded Cone Extended PuppiJet"
cuts:
- "abs({eta}) < 5"
- "{bjetnn}>0.71"
xlabel: "Gen. $\\eta$"
ylabel: "Matching Efficiency (>30 GeV)"
# thresholds: [0.0,0.5,0.7,0.71,0.72]
binning:
min: -2.4
max: 2.4
step: 0.25

JetMatching_Eta_Pt30ToInf_genNotBJets:
sample: TT
default_version: V29
reference_object:
object: "jet"
suffix: "Eta"
label: "Gen Jets"
cuts:
event:
- "{pt} > 30"
- "abs({partonflavour}) != 5"
object:
- "abs({eta}) < 2.4"
test_objects:
seededConeExtendedPuppiJet:
match_dR: 0.35
suffix: "Eta"
label: "Seeded Cone Extended PuppiJet"
cuts:
- "abs({eta}) < 5"
- "{bjetnn}>0.71"
xlabel: "Gen. $\\eta$"
ylabel: "Matching Efficiency (>30 GeV)"
# thresholds: [0.0,0.5,0.7,0.71,0.72]
binning:
min: -2.4
max: 2.4
step: 0.25

JetMatching_Pt_Pt30ToInf_genBJets:
sample: TT
default_version: V29
reference_object:
object: "jet"
suffix: "Pt"
label: "Gen Jets"
cuts:
event:
- "abs({partonflavour}) == 5"
object:
- "abs({eta}) < 2.4"
test_objects:
seededConeExtendedPuppiJet:
match_dR: 0.4
suffix: "Pt"
label: "Seeded Cone Extended PuppiJet"
cuts:
- "abs({eta}) < 5"
- "{bjetnn}>0.71"
xlabel: "Gen. $p_T$ (GeV)"
ylabel: "Matching Efficiency"
# thresholds: [-999,0,0.5,0.68,0.71,0.74,0.9]
# thresholds: [0.0,0.5,0.7,0.71,0.72]
binning:
min: 30
max: 200
step: 10

JetMatching_Pt_Pt30ToInf_genNotBJets:
sample: TT
default_version: V29
reference_object:
object: "jet"
suffix: "Pt"
label: "Gen Jets"
cuts:
event:
- "abs({partonflavour}) != 5"
object:
- "abs({eta}) < 2.4"
test_objects:
seededConeExtendedPuppiJet:
match_dR: 0.35
suffix: "Pt"
label: "Seeded Cone Extended PuppiJet"
cuts:
- "abs({eta}) < 5"
- "{bjetnn}>0.71"
xlabel: "Gen. $p_T$ (GeV)"
ylabel: "Matching Efficiency"
# thresholds: [0.0,0.5,0.7,0.71,0.72]
binning:
min: 30
max: 200
step: 10
Loading

0 comments on commit a83c675

Please sign in to comment.