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 multiple comp warnings for unused variables #20841

Merged

Conversation

mrodozov
Copy link
Contributor

@mrodozov mrodozov commented Oct 9, 2017

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20841/1284

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

A new Pull Request was created by @mrodozov for master.

It involves the following packages:

Calibration/Tools
CondTools/SiStrip
DPGAnalysis/Skims
DQM/BeamMonitor
DQM/L1TMonitorClient
DQMOffline/Muon
HLTriggerOffline/JetMET
RecoTauTag/RecoTau
RecoTracker/TrackProducer
RecoVertex/KinematicFitPrimitives

@perrotta, @ghellwig, @prebello, @vazzolini, @kmaeshima, @arunhep, @cerminar, @fabozzi, @cmsbuild, @GurpreetSinghChahal, @franzoni, @slava77, @ggovi, @lpernie, @vanbesien, @dmitrijus can you please review it and eventually sign? Thanks.
@ghellwig, @felicepantaleo, @abbiendi, @thomreis, @mmusich, @kreczko, @battibass, @makortel, @jhgoh, @HuguesBrun, @ptcox, @trocino, @rociovilar, @barvic, @GiacomoSguazzoni, @rovere, @VinInn, @bellan, @tocheng, @mschrode, @ebrondol, @mtosi, @dgulhan, @calderona, @gpetruc this is something you requested to watch as well.
@davidlange6, @slava77 you are the release manager for this.

cms-bot commands are listed here

@mrodozov
Copy link
Contributor Author

mrodozov commented Oct 9, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/23587/console Started: 2017/10/09 12:15

@@ -106,7 +106,6 @@ class FilterPFCandByParticleId {
id_(particleId){};
template<typename PFCandCompatiblePtrType>
bool operator()(const PFCandCompatiblePtrType& ptr) const {
const PFCandidatePtr& pfptr(ptr);
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 (just checking): wasn't this meant to check the particleId() of a PFCandidate (i.e. the particle type) even in case of different particleId() methods implemented for a generic PFCandCompatiblePtrType (that could even be pdgId instead of particle type)?

If so, the fix shold be returning here
return pfptr->particleId() == id_;

Otherwise, removing this line is perfectly fine.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-20841/23587/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2764467
  • DQMHistoTests: Total failures: 112
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2764184
  • DQMHistoTests: Total skipped: 171
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 10 edm output root files, 26 DQM output files

@davidlange6
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit d4a66e9 into cms-sw:master Oct 9, 2017
@perrotta
Copy link
Contributor

This got merged before waiting for an answer to my question in #20841 (review)

Quite likely, it is perfectly fine doing so.

However, before we forget it, could please @roger-wolf or @mbluj check whether that unused variable in RecoTauCrossCleaning.h was really added by mistake (perhaps copy-paste from some similar code), or at the contrary it was originally intended to force using the particleId() method of PFCandidate instead of the possibly different particleId() method of the generic PFCandCompatiblePtrType (thus witnessing a possible bug in the implementation that could be fixed independently, if so)?

@@ -397,7 +397,6 @@ void HLTJetMETValidation::getHLTResults(const edm::TriggerResults& hltresults,
HLTinit_=true;

for (int itrig = 0; itrig != ntrigs; ++itrig){
Copy link
Contributor

Choose a reason for hiding this comment

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

@mrodozov , we should delete the for loop too.

@mbluj
Copy link
Contributor

mbluj commented Oct 10, 2017 via email

@perrotta
Copy link
Contributor

Thank you @mbluj for having checked!
I let you guys decide whether and when to make a PR with the proposed fix, if you think so.
Anyhow, this PR do not change the behaviour of your filters, and I think it can remain merged as it is now.

@mbluj
Copy link
Contributor

mbluj commented Oct 10, 2017 via email

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