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

[RecoTauTag] allow complete relax of tau isolation at high pt #14529

Merged
merged 3 commits into from May 18, 2016

Conversation

rmanzoni
Copy link
Contributor

Add configurable option to completely relax the isolation when tau pt is above a given threshold, i.e. the discriminator always returns true.

The configuration parameter is optional and therefore backwards compatible.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @rmanzoni (Riccardo Manzoni) for CMSSW_8_1_X.

It involves the following packages:

RecoTauTag/RecoTau

@cmsbuild, @cvuosalo, @slava77, @davidlange6 can you please review it and eventually sign? Thanks.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@@ -39,6 +39,10 @@ class PFRecoTauDiscriminationByIsolation : public PFTauDiscriminationProducerBas
calculateWeights_ = pset.exists("ApplyDiscriminationByWeightedECALIsolation") ?
pset.getParameter<bool>("ApplyDiscriminationByWeightedECALIsolation") : false;

// RIC: allow to relax the isolation completely beyond a given tau pt
minPtForNoIso_ = pset.exists("minTauPtForNoIso") ?
Copy link
Contributor

Choose a reason for hiding this comment

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

@roger-wolf @veelken @isobelojalvo @mbluj
remind me please of the status of ::fillDescriptions (the configuration validation system https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideConfigurationValidationAndHelp )
for tau reco code.

If it's not on the tau POG list already, please add it.
Use of pset.exists is discouraged.

Copy link
Contributor

Choose a reason for hiding this comment

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

Seconded. Please add fillDescription() method, and remove the exists(...) checks.

Copy link
Contributor

Choose a reason for hiding this comment

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

@veelken @mbluj @isobelojalvo @slava77 @rmanzoni

Hi Slava,

we will open a ticket to fix both issues here and in other places in a general clean-up task within the next days. What are our chances to get this specific PR integrated with this caveat? I just learned from Riccardo that it will be difficult for him to do it before for this specific case due to limited internet access this week. On the other hand if I understand him correctly he needs to meet a deadline with this PR basically tomorrow.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that it should be OK to leave the fillDescription migration for the next PR.
Tau code has O(10) producers inheriting from PFTauDiscriminationProducerBase.
A full PSet will need to be defined with that fillDescription, both in the base class and in this (and likely other as well) derived classes.
So, it's not a matter of a small set of lines of code change.

Don't expect to easily include more parameters like this in the future.

@slava77
Copy link
Contributor

slava77 commented May 17, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@Martin-Grunewald
Copy link
Contributor

Also need a 80X PR.

@mbluj
Copy link
Contributor

mbluj commented May 17, 2016

To make the change visible by ConfDB the newly added argument should appear either in the cfi python file of the module or be filled by the fillDescription() method which is not implemented for the module. Although the latter is preferred, it is beyond of this relatively small PR and we (Tau) propose to handle it separately.

@cmsbuild
Copy link
Contributor

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

@@ -26,6 +26,8 @@
relativeSumPtCut = cms.double(0.0),
relativeSumPtOffset = cms.double(0.0),

minTauPtForNoIso = cms.bool(-99.), # minimum tau pt at which the isolation is completely relaxed. If negative, this is disabled
Copy link
Contributor

Choose a reason for hiding this comment

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

this is clearly wrong, as a boolean cannot have the value -99.

Copy link
Contributor

Choose a reason for hiding this comment

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

please test the changes before committing them.

@cmsbuild
Copy link
Contributor

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

@slava77
Copy link
Contributor

slava77 commented May 17, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 17, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/13017/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented May 18, 2016

+1

for #14529 f895f1f

  • code change is as described; the default behavior does not change
  • jenkins tests pass and comparisons with baseline show no differences

@cmsbuild
Copy link
Contributor

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

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 6a90de7 into cms-sw:CMSSW_8_1_X May 18, 2016
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

8 participants