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

[EventFilter] Move private headers in plugins dir; merge plugins cc/h files #34898

Merged
merged 2 commits into from
Sep 1, 2021
Merged

[EventFilter] Move private headers in plugins dir; merge plugins cc/h files #34898

merged 2 commits into from
Sep 1, 2021

Conversation

smuzaffar
Copy link
Contributor

@smuzaffar smuzaffar commented Aug 16, 2021

To avoid private header files exposed via package interface directory, this PR proposed to move the private headers in to plugins directory.
It also merges the .cc and .h files of plugins

This is part of cleanup discussed #34718

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34898/24706

  • This PR adds an extra 28KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master.

It involves the following packages:

  • EventFilter/CSCTFRawToDigi (l1)
  • EventFilter/EcalRawToDigi (reconstruction)

@perrotta, @cmsbuild, @rekovic, @slava77, @jpata, @cecilecaillol can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @rchatter, @argiro, @thomreis, @simonepigazzini this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@smuzaffar
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ce8dbd/17814/summary.html
COMMIT: 7967ada
CMSSW: CMSSW_12_1_X_2021-08-16-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34898/17814/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 5 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000352
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000329
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@@ -18,7 +18,7 @@
#include "DataFormats/EcalDigi/interface/EcalMatacqDigi.h"
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/FEDRawData/interface/FEDRawData.h"
#include "EventFilter/EcalRawToDigi/interface/MatacqProducer.h"
#include "EventFilter/EcalRawToDigi/src/MatacqProducer.h"
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 a header file for class MatacqProducer : public edm::EDProducer {
We usually move them to /plugins and include without a path.
Yet a better option is to merge .h in .cc and drop it from SealModules.cc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, I have merged the .cc and .h files for plugin and dropped SealModules.cc

@smuzaffar smuzaffar changed the title [EventFilter] Move private headers in to src dir [EventFilter] Move private headers in plugins dir; merge plugins cc/h files Aug 18, 2021
@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34898/24739

  • This PR adds an extra 48KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

Pull request #34898 was updated. @perrotta, @cmsbuild, @rekovic, @slava77, @jpata, @cecilecaillol can you please check and sign again.

@smuzaffar
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ce8dbd/17855/summary.html
COMMIT: ddde684
CMSSW: CMSSW_12_1_X_2021-08-17-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34898/17855/install.sh to create a dev area with all the needed externals and cmssw changes.

CMS StaticAnalyzer warnings: There are 2 inherits from legacy modules warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ce8dbd/17855/llvm-analysis/legacy-mod-sa.txt for details.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000352
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000330
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Aug 19, 2021

+reconstruction

for #34898 ddde684

  • code changes are technical, in line with the PR description and the follow up review
  • jenkins tests pass and comparisons with the baseline show no relevant differences

@smuzaffar
Copy link
Contributor Author

@rekovic, @cecilecaillol can you please review this?

1 similar comment
@smuzaffar
Copy link
Contributor Author

@rekovic, @cecilecaillol can you please review this?

@smuzaffar
Copy link
Contributor Author

@cms-sw/l1-l2 , this is blocking the integration of build rules to enforce the private header usage check. Can you please review this?

@rekovic
Copy link
Contributor

rekovic commented Aug 31, 2021

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

Copy link
Contributor

@perrotta perrotta left a comment

Choose a reason for hiding this comment

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

A couple of duplicate includes. They could be better avoided if all includes are grouped together at the top of the file.
(Trivial fix that can also get postponed to a follow up PR)

#include "EventFilter/EcalRawToDigi/interface/MatacqRawEvent.h"
#include "EventFilter/EcalRawToDigi/src/MatacqDataFormatter.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/InputTag.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate

*/
uint32_t runNumber_;
};

#include <csignal>
#include <cstdio>
#include <fstream>
Copy link
Contributor

Choose a reason for hiding this comment

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

duplicate

@perrotta
Copy link
Contributor

perrotta commented Sep 1, 2021

+1

  • The duplicate includes were there even before merging the files...

@cmsbuild cmsbuild merged commit e5403de into cms-sw:master Sep 1, 2021
@smuzaffar
Copy link
Contributor Author

thanks @perrotta , I will open a PR to remove the duplicates

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.

5 participants