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

Backport fixes for gen weights in NanoAOD (#31680, #31982, #31946, #31939, #32071) #32105

Merged
merged 12 commits into from
Nov 13, 2020

Conversation

kdlong
Copy link
Contributor

@kdlong kdlong commented Nov 11, 2020

PR description:

Backport of #31680, #31982, #31946, #31939, #32071. Fixes to Gen weight storage in NanoAOD

PR validation:

Tests in progress

if this PR is a backport please specify the original PR and why you need to backport that PR:

#31680, #31982, #31946, #31939, #32071

Needed for Nano v8 production in 106X

kdlong and others added 11 commits November 11, 2020 13:45
Fix a few places where missing_weightgroup wasn't set

Debug back off

Formatting
Switch loops in nanoaod producer so that PDF sets are prioritized
by the order in the file, not the order in the config. Now chooses the
first PDF set in the file which is part of the list of "approved" sets
in the config. Also adds additional sets to this list
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @kdlong (Kenneth Long) for CMSSW_10_6_X.

It involves the following packages:

PhysicsTools/NanoAOD

@cmsbuild, @santocch, @mariadalfonso, @gouskos, @fgolf can you please review it and eventually sign? Thanks.
@gpetruc, @peruzzim, @swertz this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@mariadalfonso
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 11, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-1

Tested at: a036b3c

CMSSW: CMSSW_10_6_X_2020-11-11-1100
SCRAM_ARCH: slc7_amd64_gcc700
You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-26eabf/10649/summary.html

I found follow errors while testing this PR

Failed tests: Build ClangBuild

  • Build:

I found compilation error when building:

>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/GenWeightsTableProducer.cc 
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/BTagSFProducer.cc 
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/VertexTableProducer.cc 
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/NanoAODOutputModule.cc 
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/GenWeightsTableProducer.cc: In member function 'void GenWeightsTableProducer::fillLHEPdfWeightTablesFromGenInfo({anonymous}::Counter*, const {anonymous}::DynamicWeightChoiceGenInfo*, double, const GenEventInfoProduct&, std::unique_ptr&, std::unique_ptr&, std::unique_ptr&, std::unique_ptr&) const':
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/GenWeightsTableProducer.cc:483:46: error: 'psWeightDocStr' was not declared in this scope
                             wPS.size() > 1 ? psWeightDocStr : "dummy PS weight (1.0) ",
                                              ^~~~~~~~~~~~~~
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/GenWeightsTableProducer.cc:483:46: note: suggested alternative: 'psWeightsDocStr'
                             wPS.size() > 1 ? psWeightDocStr : "dummy PS weight (1.0) ",
                                              ^~~~~~~~~~~~~~

  • Clang:

I found compilation error while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/LeptonJetVarProducer.cc 
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/GenJetTauTaggerProducer.cc 
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/PileupJetIDVarProducer.cc 
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/EGMEnergyVarProducer.cc 
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/VIDNestedWPBitmapProducer.cc 
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/GenWeightsTableProducer.cc:483:46: error: use of undeclared identifier 'psWeightDocStr'; did you mean 'psWeightsDocStr'?
                            wPS.size() > 1 ? psWeightDocStr : "dummy PS weight (1.0) ",
                                             ^~~~~~~~~~~~~~
                                             psWeightsDocStr
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_10_6_X_2020-11-11-1100/src/PhysicsTools/NanoAOD/plugins/GenWeightsTableProducer.cc:469:17: note: 'psWeightsDocStr' declared here
    std::string psWeightsDocStr;


@cmsbuild
Copy link
Contributor

Comparison job queued.

@mariadalfonso
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #32105 was updated. @cmsbuild, @santocch, @mariadalfonso, @gouskos, @fgolf can you please check and sign again.

@mariadalfonso
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 11, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+1
Tested at: ca24fd0
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-26eabf/10668/summary.html
CMSSW: CMSSW_10_6_X_2020-11-11-1100
SCRAM_ARCH: slc7_amd64_gcc700

@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-26eabf/10668/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 3214708
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3214372
  • DQMHistoTests: Total skipped: 334
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 140 log files, 14 edm output root files, 34 DQM output files

@mariadalfonso
Copy link
Contributor

+xpog

changes inline with master.
(Size increase of about 2.5% in MC due to the PDF change (33-->103 weights))

@santocch
Copy link

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_10_6_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_11_2_X is complete. 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 Nov 13, 2020

+1

@cmsbuild cmsbuild merged commit 53e7a7d into cms-sw:CMSSW_10_6_X Nov 13, 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.

5 participants