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

Fix for ECAL saturation in the tail of the pulse #20059

Conversation

emanueledimarco
Copy link
Contributor

This PR fixes the handling of cases where the saturation was happening in the tail of the pulse shape, instead of the neighbours of the max sample.
In these cases, due to a wrong behavior of EcalDataFrame.lastUnsaturatedSample(), if the saturation happened in the last samples of the tail:

  • the rechit was not flagged as "kSaturated" (so propagated to clusters)
  • the multifit reconstruction was used
  • the multifit had internally a protection against this, throwing a warning and setting the amplitude of the sample to the maximum value, but still attempting to fit
    With this PR the multifit is not called if any of the sample is saturated, and the last saturated sample is set to the one before the first happening of the saturation.

This fixes the occurrences of the warnings seen by @gennai at HLT.
In the meanwhile we investigate within ECAL about the implementation of EcalDataFrame.lastUnsaturatedSample() and eventually will fix it (or remove, since it is not used elsewhere in CMSSW).

@bendavid @amassiro @crovelli @paramatti

…ing multifit or not. This do not consider cases with saturation on the tail
@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 4, 2017

A new Pull Request was created by @emanueledimarco (Emanuele Di Marco) for CMSSW_9_2_X.

It involves the following packages:

RecoLocalCalo/EcalRecProducers

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

cms-bot commands are listed here

@perrotta
Copy link
Contributor

perrotta commented Aug 4, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 4, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/22096/console Started: 2017/08/04 17:46

@slava77
Copy link
Contributor

slava77 commented Aug 4, 2017

@emanueledimarco
please make a PR to the master branch, 93X.
This 92X PR will not proceed until that one is merged and validated.

Does this effect show up only in data, or is it present in MC as well?

Do these saturated hits propagate at a large fraction to the egamma and PF objects to affect MET and rate of high-ET egamma events in a noticeable way?
If so, this PR may have to wait until we move to the release which will also be used to rereco all data taken so far (93X).
The policy is to keep the physics performance consistent in a production release.

@emanueledimarco
Copy link
Contributor Author

@slava77

please make a PR to the master branch, 93X.
This 92X PR will not proceed until that one is merged and validated.

sure.

Does this effect show up only in data, or is it present in MC as well?

large majority of these cases (which is a very small fraction of data themselves) should come from spikes, which are not present in MC.

Do these saturated hits propagate at a large fraction to the egamma and PF objects to affect MET and rate of high-ET egamma events in a noticeable way?
If so, this PR may have to wait until we move to the release which will also be used to rereco all data taken so far (93X).
The policy is to keep the physics performance consistent in a production release.

No, this should cure only rare cases happening in data.

@slava77
Copy link
Contributor

slava77 commented Aug 4, 2017 via email

@emanueledimarco
Copy link
Contributor Author

No, this should cure only rare cases happening in data.
Does this "no" mean that in events with such hits the hits typically do not propagate to egamma and PF objects ?

the rechit was not properly flagged as kSaturated, so that rechit was propagated to the clusters as a normal one (with a wrong amplitude)

Perhaps if there is a skim of events with the hits affected by this
change can be shared for inspection of the impact of this PR on
downstream reco objects.

I have not a proper skim, but 3 picked events from @gennai in this file that contain a problematic rechit:
/eos/cms/store/group/dpg_ecal/comm_ecal/localreco/debug/pickevents.root

If this PR is for rare cases that do not affect physics behaviour of reconstructed objects, then we just better stay with 93X version.

Yes, it addresses rare cases happening almost only in data. So OK for 93X-only.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 4, 2017

1 similar comment
@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 4, 2017

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 4, 2017

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 4, 2017

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 22
  • DQMHistoTests: Total histograms compared: 1791740
  • DQMHistoTests: Total failures: 29512
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 1762062
  • DQMHistoTests: Total skipped: 166
  • DQMHistoTests: Total Missing objects: 0
  • Checked 90 log files, 14 edm output root files, 22 DQM output files

@slava77
Copy link
Contributor

slava77 commented Aug 7, 2017

-1

@emanueledimarco
as agreed in #20059 (comment)
this can go to just 93X.
Please close this PR if this is OK.

@emanueledimarco
Copy link
Contributor Author

Yes, it is OK to apply this fix only in 93X.

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.

4 participants