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 logical not in PFTauSelectorDefinition::select #12879

Merged
merged 1 commit into from Jan 8, 2016

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Jan 6, 2016

Logical not is applied to a float, which is wrong:

RecoTauTag/TauTagTools/plugins/PFTauSelectorDefinition.h:73:34:
warning: logical not is only applied to the left hand side of comparison
[-Wlogical-not-parentheses]

While tracking the change I went to CVS archive to figure out what the
correct condition in if-statement. To my surprise there was a change in
PFTauSelectorDefinition.h (incl. the fix to this issue) which was not in
GIT migration. GIT migration was done using CMSSW_6_2_0_pre8 and this is
post-CMSSW_6_2_0_pre8 change in CVS.

The changeset:
http://cvs.web.cern.ch/cvs/cgi-bin/viewcvs.cgi/CMSSW/RecoTauTag/TauTagTools/plugins/PFTauSelectorDefinition.h?r1=1.10&r2=1.11

Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch

Logical not is applied to a float, which is wrong:

    RecoTauTag/TauTagTools/plugins/PFTauSelectorDefinition.h:73:34:
    warning: logical not is only applied to the left hand side of comparison
    [-Wlogical-not-parentheses]

While tracking the change I went to CVS archive to figure out what the
correct condition in if-statement. To my surprise there was a change in
PFTauSelectorDefinition.h (incl. the fix to this issue) which was not in
GIT migration. GIT migration was done using CMSSW_6_2_0_pre8 and this is
post-CMSSW_6_2_0_pre8 change in CVS.

The changeset:
http://cvs.web.cern.ch/cvs/cgi-bin/viewcvs.cgi/CMSSW/RecoTauTag/TauTagTools/plugins/PFTauSelectorDefinition.h?r1=1.10&r2=1.11

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 6, 2016

A new Pull Request was created by @davidlt for CMSSW_8_0_X.

It involves the following packages:

RecoTauTag/TauTagTools

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

Following commands in first line of a comment are recognized

  • +1|approve[d]|sign[ed]: L1/L2's to approve it
  • -1|reject[ed]: L1/L2's to reject it
  • assign <category>[,<category>[,...]]: L1/L2's to request signatures from other categories
  • unassign <category>[,<category>[,...]]: L1/L2's to remove signatures from other categories
  • hold: L1/all L2's/release manager to mark it as on hold
  • unhold: L1/user who put this PR on hold
  • merge: L1/release managers to merge this request
  • [@cmsbuild,] please test: L1/L2 and selected users to start jenkins tests
  • [@cmsbuild,] please test with cms-sw/cmsdist#<PR>: L1/L2 and selected users to start jenkins tests using externals from cmsdist

@slava77
Copy link
Contributor

slava77 commented Jan 6, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 6, 2016

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 6, 2016

@slava77
Copy link
Contributor

slava77 commented Jan 7, 2016

+1

for #12879 67746fa

  • code change is correct; most (all used in standard workflows?) tau discriminants are effectively booleans (double values 0 or 1), so the code was working "correctly" before
  • jenkins tests pass and comparisons with the baseline show no differences.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 7, 2016

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

davidlange6 added a commit that referenced this pull request Jan 8, 2016
Fix logical not in PFTauSelectorDefinition::select
@davidlange6 davidlange6 merged commit 58f0ece into cms-sw:CMSSW_8_0_X Jan 8, 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

4 participants