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

Adapting MVAVariableHelper to new E/gamma UL format and removal of MultiToken #26814

Merged
merged 11 commits into from Jun 16, 2019
Merged

Adapting MVAVariableHelper to new E/gamma UL format and removal of MultiToken #26814

merged 11 commits into from Jun 16, 2019

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented May 16, 2019

PR description:

As the Egamma MVA infrastructure does not need to compute object specific variables anymore that are not stored in the objects themselves (thanks to #26486), the MVAVariableHelper is now an overly complicated piece of code which should be adapted.

I also suggest to remove the MultiToken class I introduced last year, as it's not really used much anymore after all the changes in the last months. It was also used in the ElectronIDValueMapProducer, which can now be removed that all the variables are in the object. I also think I made a mistake introducing the MultiToken to begin with. The consumes should be better configured with Python... That makes the MVAValueMapProducer also a bit simpler to use as it's not ambiguous anymore how it can be configured.

Other changes:

  • adapted Electron MVA FWLite python code and test (thanks to the appropriate relvals being available now)
  • merge header and source of some plugins in Electron-PhotonIdentification
  • put all the plugin template definitions in Electron-PhotonIdentification into plugins.cc file

PR validation:

CMSSW compiles and local matrix tests pass.

if this PR is a backport please specify the original PR:

Maybe the FWLite part should get backported to 10_6_X.

@guitargeek guitargeek changed the title Adapting MVAVariableHelper to 26486 and removal of MultiToken Adapting MVAVariableHelper to new E/gamma UL format and removal of MultiToken May 16, 2019
@cmsbuild cmsbuild added this to the CMSSW_11_0_X milestone May 16, 2019
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26814/9829

  • This PR adds an extra 40KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @guitargeek (Jonas Rembser) for master.

It involves the following packages:

PhysicsTools/NanoAOD
RecoEgamma/EgammaTools
RecoEgamma/ElectronIdentification
RecoEgamma/PhotonIdentification

@perrotta, @cmsbuild, @fgolf, @slava77, @santocch, @peruzzim can you please review it and eventually sign? Thanks.
@gpetruc, @jainshilpi, @Sam-Harper, @varuns23, @lgray 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

@slava77
Copy link
Contributor

slava77 commented May 16, 2019

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 16, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/285/console Started: 2019/05/17 00:32

@cmsbuild
Copy link
Contributor

-1

Tested at: 7dc69da

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

I found follow errors while testing this PR

Failed tests: Build

  • Build:

I found compilation error when building:

>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/src/RecoEgamma/PhotonIdentification/plugins/VersionedPhotonIdProducer.cc 
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/src/RecoEgamma/PhotonIdentification/plugins/PhotonIDSimpleAnalyzer.cc 
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/src/RecoEgamma/PhotonIdentification/plugins/PhotonMVANtuplizer.cc 
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/src/RecoEgamma/PhotonIdentification/plugins/PhotonIDValueMapProducer.cc 
In file included from /build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/src/RecoEgamma/PhotonIdentification/plugins/PhotonIDValueMapProducer.cc:16:0:
/build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/poison/RecoEgamma/EgammaTools/interface/MultiToken.h:1:2: error: #error THIS FILE HAS BEEN REMOVED FROM THE PACKAGE.
 #error THIS FILE HAS BEEN REMOVED FROM THE PACKAGE.
  ^~~~~
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/src/RecoEgamma/PhotonIdentification/plugins/PhotonMVAEstimator.cc 
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/src/RecoEgamma/PhotonIdentification/plugins/SealModules.cc 
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_0_X_2019-05-16-1100/src/RecoEgamma/PhotonIdentification/plugins/PhotonMVAValueMapProducer.cc 


@cmsbuild
Copy link
Contributor

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

@guitargeek
Copy link
Contributor Author

Oh, sorry, I must have messed up my build environment somehow and I didn't notice that actually nothing works now... I'll come back to that later.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 5, 2019

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

Comparison Summary:

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

@perrotta
Copy link
Contributor

perrotta commented Jun 6, 2019

+1

  • Cleaning and simplification of the MVA infrastructure implemented as anticipated in the PR description
  • Jenkins tests pass, with no changes in output, as expected

@santocch
Copy link

santocch commented Jun 7, 2019

+1

@slava77
Copy link
Contributor

slava77 commented Jun 14, 2019

@peruzzim @fgolf
xpog signature is needed here (now waiting for 7 days).
Please check and sign or comment.

@peruzzim
Copy link
Contributor

+xpog
changes in NanoAOD are just to adapt to new calling interface of EGM modules

@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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

+1

@guitargeek I understand that this development is not primarily meant for backport for UL, but it is more oriented to the future

@cmsbuild cmsbuild merged commit b3864ae into cms-sw:master Jun 16, 2019
@guitargeek
Copy link
Contributor Author

guitargeek commented Jun 16, 2019

Yes, except for the tiny part of this PR which fixes the electron ID in FWLike after it was broken in 10_6_X with #26486 this is all for the future. Also for the tiny FWLite part that might be worth to backport: I guess if nobody complains we are good here.

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

7 participants