Skip to content

Commit

Permalink
Add tau purity
Browse files Browse the repository at this point in the history
  • Loading branch information
artlbv committed Oct 17, 2024
1 parent 56bed9d commit d857d53
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 1 deletion.
26 changes: 26 additions & 0 deletions configs/V38nano/object_performance/electron_purity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Purity_ElectronsBarrel:
sample: DYLL_M50
version: V38nano
match_test_to_ref: True
reference_object:
object: "L1tkElectron"
x_arg: "pt"
label: "L1tkElectron"
cuts:
event:
- "{eleId} == 1"
- "abs({eta}) < 1.5"
object:
- "abs({eta}) < 2.4"
test_objects:
GenPart:Electron: "pt"
# L1EG:default: "pt"
# L1tkElectron:NoIso: "pt"
# L1tkElectron:NoIsoNoLowPtID: "pt"
# L1tkElectron:Iso: "pt"
xlabel: "L1 TkEle. $p_T$ (GeV)"
ylabel: "Matching Efficiency (Barrel)"
binning:
min: 0
max: 100
step: 3
96 changes: 96 additions & 0 deletions configs/V44nano/object_performance/tau_purity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
Purity_Tau_Barrel:
sample: VBFHToTauTau
version: V44nano
match_test_to_ref: True
reference_object:
object: "L1nnPuppiTau"
x_arg: "pt"
label: "L1nnPuppiTau"
cuts:
event:
- "{passLooseNN} == 1"
- "abs({eta}) < 1.5"
object:
- "abs({eta}) < 2.4"
test_objects:
GenVisTau:default: "pt"
L1caloTau:default: "pt"
xlabel: "L1 nnPuppiTau $p_T$ (GeV)"
ylabel: "Purity (Barrel)"
binning:
min: 0
max: 100
step: 3

Purity_Tau_Endcap:
sample: VBFHToTauTau
version: V44nano
match_test_to_ref: True
reference_object:
object: "L1nnPuppiTau"
x_arg: "pt"
label: "L1nnPuppiTau"
cuts:
event:
- "{passLooseNN} == 1"
- "abs({eta}) > 1.5"
object:
- "abs({eta}) < 2.4"
test_objects:
GenVisTau:default: "pt"
L1caloTau:default: "pt"
xlabel: "L1 nnPuppiTau $p_T$ (GeV)"
ylabel: "Purity (Barrel)"
binning:
min: 0
max: 100
step: 3

Purity_Tau_Eta_Pt40:
sample: VBFHToTauTau
version: V44nano
match_test_to_ref: True
reference_object:
object: "L1nnPuppiTau"
x_arg: "eta"
label: "L1nnPuppiTau"
cuts:
event:
- "{passLooseNN} == 1"
- "{pt} > 40"
object:
- "abs({eta}) < 2.4"
test_objects:
GenVisTau:default: "eta"
L1caloTau:default: "eta"
xlabel: "L1 nnPuppiTau $\\eta$"
ylabel: "Purity (L1 $p_T$ > 40 GeV)"
binning:
min: -2.5
max: 2.5
step: 0.1

Purity_Tau_Eta_Pt100:
sample: VBFHToTauTau
version: V44nano
match_test_to_ref: True
reference_object:
object: "L1nnPuppiTau"
x_arg: "eta"
label: "L1nnPuppiTau"
cuts:
event:
- "{passLooseNN} == 1"
- "{pt} > 100"
object:
- "abs({eta}) < 2.4"
test_objects:
GenVisTau:default: "eta"
L1caloTau:default: "eta"
xlabel: "L1 nnPuppiTau $\\eta$"
ylabel: "Purity (L1 $p_T$ > 100 GeV)"
binning:
min: -2.5
max: 2.5
step: 0.1

15 changes: 14 additions & 1 deletion configs/V44nano/objects/GenPart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@ GenPart:
inclusive:
- "abs({eta}) < 3"
- "(({statusFlags}>>7)&1) == 1"
- "abs({pdgId}) == 13"
- "abs({pdgId}) == 13"

GenVisTau:
match_dR: 0.3
eta_ranges:
inclusive: [0, 7]
barrel: [0, 1.5]
endcap: [1.5, 5]
label: "GenVisTau"
ids:
default:
cuts:
inclusive:
- "abs({eta}) < 2.4"

0 comments on commit d857d53

Please sign in to comment.