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

HGCal - bugfix - removing energy of out-of-range hits #20479

Merged

Conversation

felicepantaleo
Copy link
Contributor

@felicepantaleo felicepantaleo commented Sep 12, 2017

This PR is a bug fix and should solve the problem in #20458
Hits which are outside the 10cm radius from the center of gravity are removed by setting their fraction to zero, but their energy was never subtracted from the energy of the cluster.
This is a problem as the final energy of the PFCluster is not computed as the sum of the energy of the hits * their fraction, but it gets assigned the energy of the realistic cluster.
Recalibration is also included
@rovere @kpedro88

@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/PR-20479/654

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @felicepantaleo (Felice Pantaleo) for master.

It involves the following packages:

RecoParticleFlow/PFClusterProducer

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@mmarionncern, @lgray, @seemasharmafnal, @bachtis, @cbernet this is something you requested to watch as well.
@davidlange6, @slava77 you are the release manager for this.

cms-bot commands are listed here

@felicepantaleo
Copy link
Contributor Author

type bugfix

@kpedro88
Copy link
Contributor

assign upgrade

@cmsbuild
Copy link
Contributor

New categories assigned: upgrade

@kpedro88 you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@felicepantaleo
Copy link
Contributor Author

It's good to go now.

@kpedro88
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20479/658

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 12, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/22914/console Started: 2017/09/12 23:09

@cmsbuild
Copy link
Contributor

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

@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-20479/22914/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 211 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2645092
  • DQMHistoTests: Total failures: 251
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2644652
  • DQMHistoTests: Total skipped: 189
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 14 edm output root files, 26 DQM output files

@slava77
Copy link
Contributor

slava77 commented Sep 13, 2017

In the PR description:

This PR requires recalibration of the PFClusters which should come later tonight

it looks like the calibration was added already.
If nothing else is missing, please update the PR description.

@felicepantaleo
Copy link
Contributor Author

@slava77 done

@kpedro88
Copy link
Contributor

+1
minor fluctuations in HGCal supercluster quantities, as expected for 10 events
also, tested w/ #20458 w/ dropUnseedable set to false, and the problematic event runs successfully

@slava77
Copy link
Contributor

slava77 commented Sep 13, 2017

@felicepantaleo @predragm
since this required recalibration, please attach/post some plots in the PR description that confirm the response with this PR is good.

@@ -2,5 +2,5 @@

minEtaCorrection = cms.double(1.4)
maxEtaCorrection = cms.double(3.0)
hadronCorrections = cms.vdouble(1.16, 1.10, 1.08, 1.08, 1.09, 1.11, 1.14, 1.26)
egammaCorrections = cms.vdouble(1.00, 1.00, 1.00, 1.00, 1.02, 1.03, 1.03, 1.03)
hadronCorrections = cms.vdouble(1.24, 1.24, 1.24, 1.23, 1.24, 1.25, 1.29, 1.29)
Copy link
Contributor

Choose a reason for hiding this comment

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

is it clear how the supposedly minor effect of the fix is affecting the hadron correction so significantly.
Some eta bins are up by 15% (compared to at most 1% for egamma corrs).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the energy of the hits outside the radius is not accounted anymore, so it's not a minor effect for hadrons.
clusters from 50GeV pions have usually a radius of 10-ish cm (in FH), and are much smaller (2-3cm) in EE.
One could probably set two radii in the future depending on the subdetector...

@slava77
Copy link
Contributor

slava77 commented Sep 13, 2017

+1

for #20479 353c6d1

  • changes are in line with the description
  • jenkins tests pass and comparisons with baseline show changes starting from PF HGCAL supercluster quantities in 2023 workflows:
    • there are fewer superclusters and the component CaloClusters;
    • the energy of the component CaloClusters is mostly unchanged in the .energy() variable (driven by hit energies dropped), while the .correctedEnergy() is perturbed more (different calibrations)

Given absence of a backport to 93X, it's unclear if this is required there or can stay in 94X.

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

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 34d4f1f into cms-sw:master Sep 13, 2017
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

5 participants