-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Rare exception in PromptReco from SoftMuonMvaRun3Estimator (muon with NaN globalTrack chi2) #48063
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
Comments
cms-bot internal usage |
A new Issue was created by @gpetruc. @Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign PhysicsTools/PatAlgos |
New categories assigned: reconstruction,xpog @ftorrresd,@hqucms,@jfernan2,@mandrenguyen you have been requested to review this Pull request/Issue and eventually sign? Thanks |
FYI @cms-sw/muon-pog-l2 |
@24LopezR @rbhattacharya04 as Muon Reco contacts, can you please have a look? |
Hi, Giovanni |
+1 |
Hello,
We've had one exception in prompt reco of the run 391884 as reported on tier0 cms talk.
The exception message is
The crash is reproducible running on just the affected event,
I believe the std::exception comes from the pat::XGBooster::predict method
https://github.com/cms-sw/cmssw/blob/CMSSW_15_0_5/PhysicsTools/XGBoost/src/XGBooster.cc#L81-L95
called by the SoftMuonMvaRun3Estimator
https://github.com/cms-sw/cmssw/blob/CMSSW_15_0_5/PhysicsTools/PatAlgos/src/SoftMuonMvaRun3Estimator.cc#L133
The exception is thrown because a muon in the event has a global track, but it's normalizedChi2 is NaN and so the XGBooster believes the variable has not been set.
The normalizedChi2 has a protection for zero d.o.f. as it does return ndof_ != 0 ? chi2_ / ndof_ : chi2_ * 1e6; but in this case it's the chi2 value that is NaN already.
Possibly this should be debugged / fixed upstream since the chi2 shouldn't be NaN to begin with, but changing SoftMuonMvaRun3Estimator tp so
is enough for the processing of that event to conclude without exceptions.
The text was updated successfully, but these errors were encountered: