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

Templated SoftLeptonTagInfo + PAT support for CandSoftLeptonTagInfo #6412

Conversation

ferencek
Copy link
Contributor

SoftLeptonTagInfo has been templated to support candidate-based SoftLeptonTagInfo. This will allow the existing soft lepton taggers to fully support MiniAOD. The PAT support for CandSoftLeptonTagInfo has also been included.

The code changes implemented in this PR should be completely transparent to the standard reconstruction. The attached plots show the performance of the existing soft muon and soft electron taggers before and after the changes.

SET (soft electron tagger)
performance_set

SMT (soft muon tagger)
performance_smt

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @ferencek (Dinko Ferencek) for CMSSW_7_3_X.

Templated SoftLeptonTagInfo + PAT support for CandSoftLeptonTagInfo

It involves the following packages:

DataFormats/BTauReco
DataFormats/PatCandidates
RecoBTag/SoftLepton

@nclopezo, @monttj, @cmsbuild, @StoyanStoynev, @slava77, @vadler 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.
@nclopezo you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@StoyanStoynev
Copy link
Contributor

@cmsbuild please test

@@ -280,7 +280,7 @@ reco::SoftLeptonTagInfo SoftLepton::tag (

const GlobalVector jetAxis = refineJetAxis( jet, tracks, lepton->first );
const math::XYZVector axis( jetAxis.x(), jetAxis.y(), jetAxis.z());
if (DeltaR(lepton_momentum, axis) > m_deltaRCut)
if (ROOT::Math::VectorUtil::DeltaR(lepton_momentum, axis) > m_deltaRCut)
Copy link
Contributor

Choose a reason for hiding this comment

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

Involving ROOT here is unnecessary (CMSSW/​DataFormats/​Math/​interface/​deltaR.h, CMSSW/​CommonTools/​UtilAlgos/​interface/​DeltaR.h) and it is faster to use DeltaR2. Also, don't call this function twice (see 8 lines below).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switched to Geom::deltaR from DataFormats/GeometryVector/interface/VectorUtil.h which is really the same as reco::deltaR from DataFormats/Math/interface/deltaR.h. Also, introduced a local deltaR variable so that the function call is done only once.

@StoyanStoynev
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor

Pull request #6412 was updated. @nclopezo, @monttj, @cmsbuild, @StoyanStoynev, @slava77, @vadler can you please check and sign again.

@cmsbuild
Copy link
Contributor

@vadler
Copy link

vadler commented Nov 18, 2014

+1
Tested with CMSSW_7_3_X_2014-11-17-0200.

@cmsbuild
Copy link
Contributor

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

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Nov 19, 2014
…from-CMSSW_7_3_0_pre2

Templated SoftLeptonTagInfo + PAT support for CandSoftLeptonTagInfo
@cmsbuild cmsbuild merged commit 70b5d33 into cms-sw:CMSSW_7_3_X Nov 19, 2014
@ferencek ferencek deleted the TemplatedSoftLeptonTagInfo_from-CMSSW_7_3_0_pre2 branch November 19, 2014 17:01
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