-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Update Muon MVA ID model and working points in MiniAOD and NanoAOD #41903
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -991,18 +991,16 @@ void PATMuonProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) | |
| float mvaID = 0.0; | ||
| constexpr int MVAsentinelValue = -99; | ||
| constexpr float mvaIDmediumCut = 0.08; | ||
| constexpr float mvaIDtightCut = 0.12; | ||
| constexpr float mvaIDtightCut = 0.20; | ||
|
||
| if (computeMuonIDMVA_) { | ||
| const double dz = std::abs(muon.muonBestTrack()->dz(primaryVertex.position())); | ||
| const double dxy = std::abs(muon.muonBestTrack()->dxy(primaryVertex.position())); | ||
| if (muon.isLooseMuon()) { | ||
| mvaID = globalCache()->muonMvaIDEstimator().computeMVAID(muon)[1]; | ||
| } else { | ||
| mvaID = MVAsentinelValue; | ||
| } | ||
| muon.setMvaIDValue(mvaID); | ||
| muon.setSelector(reco::Muon::MvaIDwpMedium, muon.mvaIDValue() > mvaIDmediumCut); | ||
| muon.setSelector(reco::Muon::MvaIDwpTight, muon.mvaIDValue() > mvaIDtightCut and dz < 0.5 and dxy < 0.2); | ||
| muon.setSelector(reco::Muon::MvaIDwpTight, muon.mvaIDValue() > mvaIDtightCut); | ||
| } | ||
|
|
||
| //SOFT MVA | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we preserve the old formula for Run2 reprocessing by adding it back through the
run2_nanoAOD_ANYmodifier?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the new formula should be used also for Run 2 reprocessing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok cool