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

HDF5 interface for LHE-HDF5 event files #30312

Merged
merged 13 commits into from
Sep 1, 2020

Conversation

smrenna
Copy link
Contributor

@smrenna smrenna commented Jun 19, 2020

PR description:

This is a copy of LHESource to handle event generator files in the HDF5 format.
This uses the header-only HighFive library for handling the HDF5 files and information.

PR validation:

I have used the two tests in the LHEInterface tests directory: testReader_cfg.py, which reads the hdf5 file and makes a root edm file and dumpLHE_cfg.py that prints out the stored information.

I can put some hdf5 files on lxplus for testing.

Before submitting your pull requests, make sure you followed this checklist:

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@smrenna
Copy link
Contributor Author

smrenna commented Jun 19, 2020

@bendavid might be interested in this

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30312/16282

  • This PR adds an extra 60KB to repository

  • Found files with invalid states:

    • GeneratorInterface/LHEInterface/src/HighFive/.gitmodules:
    • GeneratorInterface/LHEInterface/src/HighFive/.travis.yml:
    • GeneratorInterface/LHEInterface/src/HighFive/.gitignore:
    • GeneratorInterface/LHEInterface/src/HighFive/.clang-format:

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

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

1 similar comment
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

ERROR: Build errors found during clang-tidy run.

GeneratorInterface/LHEInterface/plugins/LH5Source.cc:38:39: error: too few arguments to function call, single argument 'iCatalog' was not specified [clang-diagnostic-error]
      reader_(new LH5Reader(fileNames(),
                                      ^
/cvmfs/cms-ib.cern.ch/nweek-02633/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_X_2020-06-19-1100/src/FWCore/Sources/interface/FromFiles.h:22:5: note: 'fileNames' declared here
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@smrenna
Copy link
Contributor Author

smrenna commented Jun 19, 2020

I need some help here. This is a direct copy of the structure of LHEReader, so why does one trigger a problem, but not the other?

Couldn't find the definition of iCatalog in CMSSW lxr.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

ERROR: Build errors found during clang-tidy run.

GeneratorInterface/LHEInterface/plugins/LH5Source.cc:38:39: error: too few arguments to function call, single argument 'iCatalog' was not specified [clang-diagnostic-error]
      reader_(new LH5Reader(fileNames(),params.getUntrackedParameter<unsigned int>("skipEvents", 0))),
                                      ^
/cvmfs/cms-ib.cern.ch/nweek-02633/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_X_2020-06-19-1100/src/FWCore/Sources/interface/FromFiles.h:22:5: note: 'fileNames' declared here
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

ERROR: Build errors found during clang-tidy run.

GeneratorInterface/LHEInterface/plugins/LHESource.cc:35:39: error: too few arguments to function call, single argument 'iCatalog' was not specified [clang-diagnostic-error]
      reader_(new LHEReader(fileNames(), params.getUntrackedParameter<unsigned int>("skipEvents", 0))),
                                      ^
/cvmfs/cms-ib.cern.ch/nweek-02633/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_X_2020-06-19-1100/src/FWCore/Sources/interface/FromFiles.h:22:5: note: 'fileNames' declared here
--
GeneratorInterface/LHEInterface/plugins/LH5Source.cc:38:39: error: too few arguments to function call, single argument 'iCatalog' was not specified [clang-diagnostic-error]
      reader_(new LH5Reader(fileNames(),params.getUntrackedParameter<unsigned int>("skipEvents", 0))),
                                      ^
/cvmfs/cms-ib.cern.ch/nweek-02633/slc7_amd64_gcc820/cms/cmssw/CMSSW_11_2_X_2020-06-19-1100/src/FWCore/Sources/interface/FromFiles.h:22:5: note: 'fileNames' declared here
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2020

-1

Tested at: 00b5cc6

  • Build:

I found compilation error when building:

ERROR: /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc820/external/tensorflow-sources/2.1.0-e4ba21/tensorflow-2.1.0/tensorflow/tools/pip_package/BUILD:223:1 Executing genrule //tensorflow/python/keras/api:keras_python_api_gen_compat_v1 failed (Exit 1)
INFO: Elapsed time: 3080.834s, Critical Path: 206.47s
INFO: 9091 processes: 9091 local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
error: Bad exit status from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.6HZwWJ (%build)


RPM build errors:
Bad exit status from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.6HZwWJ (%build)



You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e4ba21/8644/summary.html

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2020

The tests are being triggered in jenkins.
Tested with other pull request(s) cms-sw/cmsdist#6160

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2020

+1
Tested at: 00b5cc6
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3c5417/8659/summary.html
CMSSW: CMSSW_11_2_X_2020-08-07-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2020

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2612401
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2612352
  • DQMHistoTests: Total skipped: 48
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@silviodonato
Copy link
Contributor

After having merged cms-sw/cmsdist#6160 the tests are ok. Do you have further comments @smrenna @cms-sw/generators-l2 ?

@SiewYan
Copy link
Contributor

SiewYan commented Aug 25, 2020

Hello, its looks all good to me. Unless @smrenna has other comments on this.

@silviodonato
Copy link
Contributor

Kind reminder @cms-sw/generators-l2

@agrohsje
Copy link

agrohsje commented Sep 1, 2020

Thanks @smrenna for the PR. As there was no additional feedback I am ok with the PR being merged.

@agrohsje
Copy link

agrohsje commented Sep 1, 2020

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2020

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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Sep 1, 2020

+1

@cmsbuild cmsbuild merged commit 0f1252a into cms-sw:master Sep 1, 2020
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.