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
self-subtractions : possible bugs #26913
Comments
A new Issue was created by @slava77 Slava Krutelyov. @davidlange6, @Dr15Jones, @smuzaffar, @fabiocos, @kpedro88 can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
On a quick look this class is a good candidate for dead code (not used anywhere in CMSSW, last non-technical-migration change was in 2010 (in 2008 for this specific fragment). |
Hi @slava77, indeed, this looks like a bug and a comma is missing there. The ghost track feature is not really in active use which probably explains why this went unnoticed all this time. |
What would be the right fix? cmssw/RecoBTag/SecondaryVertex/src/GhostTrackComputer.cc Lines 78 to 85 in ba500c0
Would this be a more correct value than what will be from a simple addition of a comma |
|
Currently, only the issue in RecoLocalMuon/GEMSegment/plugins/ME0SegAlgoRU.cc is remaining. @nickmccoll perhaps you know what would be a correct fix here cmssw/RecoLocalMuon/GEMSegment/plugins/ME0SegAlgoRU.cc Lines 325 to 327 in ba500c0
|
Well, the correct fix is obvious, that is replace one of the |
yes it should be the diff of h1 and h2, we will look into the effects on segment reco. |
@slava77 wow, that is a bad bug on my part! This is a part of the seeding, and is effectively a vertex constraint that was supposed to be, but apparently not, implemented. I would think that fixing it should just reduce the background rate (e.g. wide angle punch throughs), but it should be double checked. |
@nickmccoll @jshlee please update on the status of checking/applying the fix in ME0SegAlgoRU.cc. |
assign reconstruction |
@slava77 - will update now |
+1
|
This issue is fully signed and ready to be closed. |
as a follow up to #26868 (comment)
I made some egrep of the CMSSW code base for repeated patterns [1].
This is not exhaustive (e.g. function calls with arguments like
x(y) - x(y)
are not covered) and perhaps a better tool/parsing should be added.@fabiocos @smuzaffar perhaps we even have something automated? Clang static analyzer report does not pick up these as issues.
The results are as follows:
cmssw/RecoLocalMuon/GEMSegment/plugins/ME0SegAlgoRU.cc
Lines 325 to 327 in ba500c0
cmssw/RecoPixelVertexing/PixelLowPtUtilities/src/ValidHitPairFilter.cc
Lines 220 to 224 in ba500c0
cmssw/RecoBTag/ImpactParameter/plugins/IPProducer.h
Lines 393 to 398 in ba500c0
cmssw/Fireworks/Calo/src/FWTauProxyBuilderBase.cc
Lines 95 to 99 in ba500c0
[1]
egrep -R "(\b[a-zA-Z0-9\.]+\b)()[^A-Za-z=0-9,/:-]*-[^A-Za-z0-9>=%($]*\1[^_A-Za-z0-9]|(\b[a-zA-Z0-9\.]+\b)[^A-Za-z=0-9,/:)]*-[^A-Za-z0-9>=%($]*\1[^_A-Za-z0-9]"
The text was updated successfully, but these errors were encountered: