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
Removed asserts preventing fast re-recoes a la ECALELF #6625
Conversation
A new Pull Request was created by @cmsbuild for CMSSW_7_4_X. Removed asserts preventing fast re-recoes a la ECALELF It involves the following packages: DataFormats/EgammaCandidates @cmsbuild, @nclopezo, @StoyanStoynev, @slava77 can you please review it and eventually sign? Thanks. |
+1 |
This PR is being hold due to the discussion (or lack thereof) in #6556 |
being held |
@@ -42,8 +42,8 @@ GsfElectron::GsfElectron | |||
setVertex(math::XYZPoint(te.positionAtVtx.x(),te.positionAtVtx.y(),te.positionAtVtx.z())) ; | |||
setPdgId(-11*charge) ; | |||
/*if (ecalDrivenSeed())*/ corrections_.correctedEcalEnergy = superCluster()->energy() ; | |||
assert(ctfInfo.ctfTrack==(GsfElectron::core()->ctfTrack())) ; |
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.
better remove ctfInfo from the arguments list completely, these lines will then naturally go away.
This appears to be a fake variable preserved at some point to avoid the interface changes.
-1 The asserts are in place to enforce consistency of the ctf part between the GsfElectron constructor arguments, at least on the parts where GsfElectron and GsfElectronCore are the arguments. @shervin86 which of the asserts are your actual problem? |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes (tests are also fine). This pull request will be automatically merged. |
Removed asserts preventing fast re-recoes a la ECALELF
The removal of asserts should not hurt, but prevents fast re-recoes
@lgray and cms-phys-conveners-EGM should probably double check ad approve
Automatically ported from CMSSW_7_3_X #6556