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

[RFC] Fix logical not in HLTHiggsPlotter::analyze #12880

Merged
merged 1 commit into from Jan 19, 2016

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Jan 6, 2016

logical not is applied to unsigned int, which is a mistake:

HLTriggerOffline/Higgs/src/HLTHiggsPlotter.cc:217:27: warning:
logical not is only applied to the left hand side of comparison
[-Wlogical-not-parentheses]
HLTriggerOffline/Higgs/src/HLTHiggsPlotter.cc:217:27: warning:
comparison of constant '6' with boolean expression is always false
[-Wbool-compare]
HLTriggerOffline/Higgs/src/HLTHiggsPlotter.cc:224:23: warning:
logical not is only applied to the left hand side of comparison
[-Wlogical-not-parentheses]
HLTriggerOffline/Higgs/src/HLTHiggsPlotter.cc:224:23: warning:
comparison of constant '6' with boolean expression is always false
[-Wbool-compare]

The patch attempts to resolve it.

I am not sure if logical not should be applied only to objType == EVTColContainer::PFJET or a full condition in if-statement. My current assumption is that author intended to apply this for objType == EVTColContainer::PFJET only. This is why it's marked as RFC.

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

logical not is applied to unsigned int, which is a mistake:

    HLTriggerOffline/Higgs/src/HLTHiggsPlotter.cc:217:27: warning:
    logical not is only applied to the left hand side of comparison
    [-Wlogical-not-parentheses]
    HLTriggerOffline/Higgs/src/HLTHiggsPlotter.cc:217:27: warning:
    comparison of constant '6' with boolean expression is always false
    [-Wbool-compare]
    HLTriggerOffline/Higgs/src/HLTHiggsPlotter.cc:224:23: warning:
    logical not is only applied to the left hand side of comparison
    [-Wlogical-not-parentheses]
    HLTriggerOffline/Higgs/src/HLTHiggsPlotter.cc:224:23: warning:
    comparison of constant '6' with boolean expression is always false
    [-Wbool-compare]

The patch attempts to resolve it.

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:

HLTriggerOffline/Higgs

@cmsbuild, @vanbesien, @deguio, @davidlange6 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

@davidlt
Copy link
Contributor Author

davidlt commented Jan 13, 2016

ping^1

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@deguio
Copy link
Contributor

deguio commented Jan 15, 2016

I would ask @jasperlauwers to review the logic before approving.
thanks,
F.

@jasperlauwers
Copy link
Contributor

Please continue with the PR.
And thanks for fixing it!

@deguio
Copy link
Contributor

deguio commented Jan 19, 2016

+1

@cmsbuild
Copy link
Contributor

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
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Jan 19, 2016
[RFC] Fix logical not in HLTHiggsPlotter::analyze
@cmsbuild cmsbuild merged commit 0b836f4 into cms-sw:CMSSW_8_0_X Jan 19, 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

5 participants