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

Fix inconsistency in soft lepton taginfos naming #11247

Merged

Conversation

ghost
Copy link

@ghost ghost commented Sep 14, 2015

Fixing an inconsistency in the soft lepton taginfos naming, dating back to 2007:

cms-cvs-history/DataFormats-BTauReco@1a96735#diff-e1aaed9bb312dbfd1dee141f852b4e78

Due to this inconsistency, the quantities:

sip2d, sip3d

are used as IP significances, while they are meant to be the signed IP values. These quantities are filled now with the IP values and two new taginfo variables are added for the significances themselves:

sip2dsig, sip3dsig

This fix solves an error-prone naming ambiguity.

This PR fixes also a bug in the use of brackets in SoftPFElectronTagInfoProducer.cc, where the original:

if(std::abs(properties.sip3d>MaxSip3D)) continue

was actually meant to be:

if(std::abs(properties.sip3d)>MaxSip3D) continue

This fix produces small differences with respect to the original version of the code, though not significantly affecting the performance.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @imarches for CMSSW_7_6_X.

Fix inconsistency in soft lepton taginfos naming

It involves the following packages:

DataFormats/BTauReco
RecoBTag/SoftLepton

@cmsbuild, @cvuosalo, @slava77 can you please review it and eventually sign? Thanks.
@ferencek, @acaudron, @pvmulder, @imarches 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.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@ferencek
Copy link
Contributor

@imarches, can you also update DQMOffline/RecoB/interface/SoftLeptonTagPlotter.h and DQMOffline/RecoB/src/SoftLeptonTagPlotter.cc. Thanks

@@ -109,7 +113,7 @@ void SoftPFElectronTagInfoProducer::produce(edm::Event& iEvent, const edm::Event
properties.ratioRel = recoelectron->p4().Dot(jetRef->p4()) / pjet.Mag2();
properties.p0Par = boostedPPar(recoelectron->momentum(), jetRef->momentum());
properties.elec_mva = recoelectron->mva_e_pi();
if(std::abs(properties.sip3d>MaxSip3D)) continue;
if(std::abs(properties.sip3dsig>MaxSip3Dsig)) continue;
Copy link
Contributor

Choose a reason for hiding this comment

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

does this make sense?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch! I guess the original intention was to have std::abs(properties.sip3dsig)>MaxSip3Dsig. In practice I suspect the impact of this bug is negligible but still it should be fixed. Thanks again for catching it.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I'll add a commit to fix it. Yes, the impact should be negligible, as the cut is set by default at 200, that's why it passed unnoticed until now.

@ghost
Copy link
Author

ghost commented Sep 15, 2015

Hallo @ferencek yes I can also add the changes to the DQM to this same PR. I'll work at it this afternoon.

@cmsbuild
Copy link
Contributor

Pull request #11247 was updated. @cmsbuild, @cvuosalo, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Sep 15, 2015

should we expect #11247 (comment) to be addressed as well?

@ghost
Copy link
Author

ghost commented Sep 15, 2015

Hello @slava77 yes, please, wait a moment for the DQM things, I will address them right away here, as I'm about it anyway. Thanks! I will make the commit in a while.

@ghost
Copy link
Author

ghost commented Sep 15, 2015

Dear @slava77 now it should be it. @acaudron already had a look at the DQM part. Thanks.

@cmsbuild
Copy link
Contributor

Pull request #11247 was updated. @cmsbuild, @cvuosalo, @danduggan, @deguio, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Sep 15, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@deguio
Copy link
Contributor

deguio commented Sep 16, 2015

+1

@cvuosalo
Copy link
Contributor

@imarches:
Please add to the PR description that you fixed the "abs(a > b) to abs(a) > b" bug. This fix produces differences from the baseline, unlike the rest of the PR, so it is important to note.

@cvuosalo
Copy link
Contributor

+1

For #11247 12d57fe

Fixing a bug in SoftPFElectronTagInfoProducer.cc and renaming of signed IP significance variables used for soft lepton tag infos.

The code changes are satisfactory, and Jenkins tests against baseline CMSSW_7_6_X_2015-09-13-1100 show no significant differences. The bug fix makes tiny changes in a few quantities related to the combined MVA and soft PF electron b taggers.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar

@ghost
Copy link
Author

ghost commented Sep 16, 2015

@cvuosalo I have added this explanation to the description. Thanks

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Sep 18, 2015
…or76X

Fix inconsistency in soft lepton taginfos naming
@cmsbuild cmsbuild merged commit 00fdfc2 into cms-sw:CMSSW_7_6_X Sep 18, 2015
@ferencek ferencek deleted the cms-btv-pog/softleptonfixfor76X branch September 21, 2015 23:24
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.

6 participants