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

Ecal regression refactor #5423

Merged
merged 18 commits into from Sep 25, 2014

Conversation

Sam-Harper
Copy link
Contributor

This code refactors the ECAL regression inputs so a new single class gets the data rather than the same (buggy) code being copy & pasted over 3 files. It also fixes a divide by zero bug. It changes the behaviour of the pat::Photons but for the better in my opinion.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Sam-Harper for CMSSW_7_2_X.

Ecal regression refactor

It involves the following packages:

PhysicsTools/PatAlgos
RecoEcal/EgammaCoreTools
RecoEgamma/EgammaElectronAlgos
RecoEgamma/EgammaTools

@nclopezo, @monttj, @cmsbuild, @StoyanStoynev, @slava77, @vadler can you please review it and eventually sign? Thanks.
@TaiSakuma, @mmarionncern, @argiro, @nhanvtran, @schoef, @lgray this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@nclopezo you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

for( auto clus = superClus.clustersBegin()+1;clus != superClus.clustersEnd(); ++clus ) {
const float dEta = (*clus)->eta() - superClus.seed()->eta();
const float dPhi = reco::deltaPhi((*clus)->phi(),superClus.seed()->phi());
const float dR = std::hypot(dEta,dPhi);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should avoid the square root (use deltaR2()).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I saw that when I was porting the code, fine I changed it to be the deltaR2 internally and updated methods as a result.

@cmsbuild
Copy link
Contributor

-1

Tested at: a074f0e
I ran the usual tests and I found errors in the following unit tests:

---> test runtestPhysicsToolsPatAlgos had ERRORS

you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5423/1023/summary.html

@StoyanStoynev
Copy link
Contributor

+1
Bug fixes with restructuring (avoiding code repetition).
Tested 0b12f19 on top of CMSSW_7_2_X_2014-09-24-1400. The review given above for a previous tag holds - low pt photons are slightly affected (plots as already given) and this reflects on Jet/MET as well. Overall only "pure low pt photons" (wf 18; 2k events) show differences in RECO among the short and extended matrix tests.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine). @nclopezo can you please take care of it?

davidlange6 added a commit that referenced this pull request Sep 25, 2014
@davidlange6 davidlange6 merged commit 29d3b0a into cms-sw:CMSSW_7_2_X Sep 25, 2014
@Sam-Harper Sam-Harper deleted the ECALRegressionRefactor branch November 9, 2014 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants