Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track isolation cut update #57

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions StandardAnalysis/python/Cuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,9 @@
)
if not UseCandidateTracks:
if os.environ["CMSSW_VERSION"].startswith ("CMSSW_9_4_") or os.environ["CMSSW_VERSION"].startswith ("CMSSW_10_2_") or os.environ["CMSSW_VERSION"].startswith ("CMSSW_12_4_") or os.environ["CMSSW_VERSION"].startswith ("CMSSW_13_0_"):
cutTrkIso.cutString = cms.string (" ((pfIsolationDR03_.chargedHadronIso + pfIsolationDR03_.puChargedHadronIso) / pt) < 0.05")

# This cut does something very similar to the old trackIsoNoPUDRp3. pfIsolationDR03_.chargedHadronIso sums the pT of all PF charged pions that are compatible to the PV in a DR 0.3 cone around an IsolatedTrack. The 0.05 requirement is the same as the one in the HLT_MET105_IsoTrk50 path. In this way, the track isolation is still PU independent, which makes the efficiency of the cut higher.
cutTrkIso.cutString = cms.string (" (pfIsolationDR03_.chargedHadronIso / pt) < 0.05")

cutTrkGsfTrkVeto = cms.PSet(
inputCollection = cms.vstring("tracks"),
cutString = cms.string("dRToMatchedGsfTrack > 0.15"),
Expand Down
6 changes: 6 additions & 0 deletions StandardAnalysis/python/HistogramDefinitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@
binsX = cms.untracked.vdouble(100, 0, 2),
inputVariables = cms.vstring("caloNewNoPUDRp5CentralCalo / p"),
),
cms.PSet (
name = cms.string("trackCaloJetEnergy"),
title = cms.string("Isolation energy calculated using matchedCaloJetEmEnergy+matchedCaloJetHadEnergy"),
binsX = cms.untracked.vdouble(100, 0, 100),
inputVariables = cms.vstring("matchedCaloJetEmEnergy + matchedCaloJetHadEnergy"),
),
cms.PSet (
name = cms.string("trackPtError"),
title = cms.string("ptError;#sigma(p_{T}) [GeV]"),
Expand Down