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

Egamma PhotonMVANtuplizer.cc completion #25218

Merged
merged 3 commits into from
Nov 25, 2018
Merged

Egamma PhotonMVANtuplizer.cc completion #25218

merged 3 commits into from
Nov 25, 2018

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Nov 13, 2018

Hi,

maybe you give me a free pass updating the PhotonMVANtuplizer in CMSSW, even if it is not used in production? The equivalent ElectronMVANtuplizer was well received and is now used by quite a few people for little studies. It's a quick and safe way to get a flat electron ntuple with the exact same ID variables and signal/background definition as in the MVAs used in production.

For the photons, I did not dare implementing the same functionality since I'm not so familiar with them. The PhotonMVANtuplizer was so far only able to dump final ID scores to validate them. However, I got many requests to implement the matching and dumping of ID variables also in the PhotonMVANtuplizer, and teamed up with @kmondal to implement the same "gen" matching as in the flashgg framework.

Getting this into release would keep me from maintaining one more private branch which people have to merge.

This might be interesting for @fcouderc and @mhuwiler, and of course @michelif and @swagata87 should somehow approve this first.

Here a little histogram with the pT of the different reco photon populations, as a first quick validation.

photon_ntuple

@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 @guitargeek (Jonas Rembser) for master.

It involves the following packages:

RecoEgamma/PhotonIdentification

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@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

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 13, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/31629/console Started: 2018/11/13 16:59

@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-25218/31629/summary.html

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /build/cmsbld/jenkins/workspace/compare-root-files-short-matrix/results/JR-comparison/PR-25218/27434.0_TTbar_14TeV+TTbar_14TeV_TuneCUETP8M1_2023D35_GenSimHLBeamSpotFull14+DigiFullTrigger_2023D35+RecoFullGlobal_2023D35+HARVESTFullGlobal_2023D35

Comparison Summary:

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

// See if the closest photon (if it exists) is close enough.
// If not, no match found.
if(dR < deltaR) {
if( closestPhoton->isPromptFinalState() ) return TRUE_PROMPT_PHOTON;
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 triggering a new issue in the static analyzer.
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25218/31629/llvm-analysis/report-1f898d.html#EndPath

Please fix.
A somewhat easy alternative is to move this code to /test subdirectory.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #25218 was updated. @perrotta, @cmsbuild, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Nov 22, 2018

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 22, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/31809/console Started: 2018/11/22 22:03

@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-25218/31809/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 301 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3013311
  • DQMHistoTests: Total failures: 103
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3013011
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.281 KiB( 31 files compared)
  • DQMHistoSizes: changed ( 7.3 ): -0.141 KiB MessageLogger/Warnings
  • DQMHistoSizes: changed ( 7.3 ): -0.141 KiB MessageLogger/Errors
  • Checked 134 log files, 14 edm output root files, 32 DQM output files

@slava77
Copy link
Contributor

slava77 commented Nov 23, 2018

+1

for #25218 219957e

  • code changes are in line with the PR description and the follow up review
  • jenkins tests pass: the static analyzer does not show any issues in PhotonMVANtuplizer.cc
    • differences in comparisons are not relevant to this PR: the modified code is not running in standard workflows, the differences are from other PRs more recent than CMSSW_10_4_X_2018-11-21-1100 up to the head of this PR.

@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

@cmsbuild cmsbuild merged commit be75d46 into cms-sw:master Nov 25, 2018
@guitargeek guitargeek deleted the PhotonMVANtuplizer_10_4_X branch December 12, 2018 10:42
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

6 participants