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

Remove inappropriate use of provenance in EcalDeadCellTriggerPrimitiveFilter #24387

Merged

Conversation

Dr15Jones
Copy link
Contributor

@Dr15Jones Dr15Jones commented Aug 24, 2018

The code was calling edm::Event::getAllStableProvenance to try to determine if some data products were available in the Event. This did not help performance since the consumes calls would already prefetch all the data. To try to keep the same functionality, I switched to using callWhenNewProductsRegistered.

The logic which changed the movule's behavior for data older than CMSSW_4_2 was also removed.

It is best to avoid holding onto information from the Event.
Removed use of getAllStableProvenance. The consumes calls were already
forcing the prefetching of the different data products. Switched to
using callWhenNewProductsRegistered and only call 'consumes' if
the alternate data product is actually available and the prefered
product has not been seen.
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

RecoMET/METFilters

@perrotta, @monttj, @cmsbuild, @slava77, @gpetruc, @arizzi can you please review it and eventually sign? Thanks.
@TaiSakuma, @gouskos, @ahinzmann, @mmarionncern, @jdamgov, @jdolen, @nhanvtran, @gkasieczka, @clelange, @schoef, @mariadalfonso, @seemasharmafnal this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 24, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/30050/console Started: 2018/08/25 01:27

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 3 differences found in the comparisons
  • DQMHistoTests: Total files compared: 31
  • DQMHistoTests: Total histograms compared: 2987459
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2987267
  • DQMHistoTests: Total skipped: 190
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 30 files compared)
  • Checked 129 log files, 14 edm output root files, 31 DQM output files

void loadEcalRecHits(edm::Event& iEvent, const edm::EventSetup& iSetup);
void loadEcalDigis(edm::Event& iEvent,
edm::Handle<EcalTrigPrimDigiCollection>& pTPDigis
);
Copy link
Contributor

Choose a reason for hiding this comment

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

please close this on the previous line to preserve indentation

@slava77
Copy link
Contributor

slava77 commented Aug 27, 2018

NOTE: This functionality to get an alternative data product appears to only be run if the data file was generated in a CMSSW version before 4_2. Perhaps this entire code path could now be removed?

@Dr15Jones
I was not able to follow this comment.
IIUC, the comment is related to the following part of the code https://github.com/cms-sw/cmssw/pull/24387/files#diff-896c2d58ecf157fdf90ebb82ce236a3eR226

   if( !hastpDigiCollection_ && !hasReducedRecHits_ ){ useTPmethod_ = false; useHITmethod_ = false;  }
   else if( hastpDigiCollection_ ){ useTPmethod_ = true; useHITmethod_ = false; }
   else if( majorV >=5 || (majorV==4 && minorV >=2) ){ useTPmethod_ = false; useHITmethod_ = true; }
   else{ useTPmethod_ = false; useHITmethod_ = false;
// kind of fail here

Was your comment to remove the last else because logically this code will never get there assuming there are no more inputs ? Or was your comment to drop the logic of the version detection because it has no effect (assuming all inputs are already after version 4_2)?

@Dr15Jones
Copy link
Contributor Author

@slava77

Was your comment to remove the last else because logically this code will never get there assuming there are no more inputs ? Or was your comment to drop the logic of the version detection because it has no effect (assuming all inputs are already after version 4_2)?

I was asking if we can drop the entire version detection because CMSSW_10_3 will never be used to run on reconstruction from before CMSSW_4_2.

@cmsbuild
Copy link
Contributor

Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped)

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 30, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/30139/console Started: 2018/08/30 07:17

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3143879
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3143681
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 133 log files, 14 edm output root files, 32 DQM output files

@slava77
Copy link
Contributor

slava77 commented Aug 30, 2018

+1

for #24387 53fbe20

  • somewhat technical change in the provenance access, in line with the PR description; drop the logic used with inputs created before CMSSW_4_2
  • jenkins tests pass

@Dr15Jones please update the PR description to clarify that the old version detection logic was removed.

@Dr15Jones
Copy link
Contributor Author

@slava77 comment updated

@kpedro88
Copy link
Contributor

+1

@kpedro88
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit edb9f98 into cms-sw:master Aug 31, 2018
@Dr15Jones Dr15Jones deleted the fixEcalDeadCellTriggerPrimitiveFilter branch August 31, 2018 16:00
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