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

Change the isolation in the reco::Photon to the value computed by CITK #16759

Merged

Conversation

ishvetso
Copy link
Contributor

This PR changes the isolation in the reco::Photon object to the value computed by CITK as presented here:
https://indico.cern.ch/event/589257/contributions/2376119/attachments/1376717/2090803/Shvetsov_23November2016.pdf

Following changes are done the particleFlowEGammaFinal sequence:

  • creation particleBasedIsolationTmp object
  • add pfNoPileUpCandidates to the
  • CITK module to compute isolation

Additional minor changes in CITK:

  • isolation cone definitions is move to a standalone file RecoEgamma/EgammaIsolationAlgos/python/egmIsoConeDefinitions_cfi.py
  • fillDescriptions() function is added to PhysicsTools/IsolationAlgos/plugins/CITKPFIsolationSumProducer.cc

include @gzevi , @ikrav, @fcouderc

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @ishvetso (Ivan Shvetsov) for CMSSW_9_0_X.

It involves the following packages:

PhysicsTools/IsolationAlgos
RecoEgamma/EgammaIsolationAlgos
RecoEgamma/EgammaPhotonProducers
RecoParticleFlow/PFProducer

@cmsbuild, @cvuosalo, @slava77, @monttj, @davidlange6 can you please review it and eventually sign? Thanks.
@mmarionncern, @Sam-Harper, @rafaellopesdesa, @lgray, @cbernet, @bachtis this is something you requested to watch as well.
@slava77, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@cvuosalo
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 25, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/16600/console

@ishvetso ishvetso changed the title Change this isolation in the reco::Photon to the value computed by CITK Change the isolation in the reco::Photon to the value computed by CITK Nov 25, 2016
@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Nov 28, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 28, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/16628/console

@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-16759/16628/summary.html

The workflows 1003.0, 1001.0, 1000.0, 140.53, 136.731, 4.22 have different files in step1_dasquery.log than the ones found in the baseline. You may want to check and retrigger the tests if necessary. You can check it in the "files" directory in the results of the comparisons

@cvuosalo
Copy link
Contributor

@ishvetso: The "All Conversions" plot I included here (#16759 (comment)) is a standard DQM plot that is checked by Jenkins for every pull request. I don't know the details of the selection in the plot.

@ishvetso
Copy link
Contributor Author

ishvetso commented Nov 28, 2016

this seems to be caused by relinking in ReducedEGProducer here:

relinkPhotons = cms.string("(r9()>0.8 || chargedHadronIso()<20 || chargedHadronIso()<0.3*pt())"), #keep all associated clusters/rechits/conversions

That should explain the first picture but I'm not sure about conversions.

@cvuosalo
Copy link
Contributor

@gzevi: Could you please comment on how changes to isolation in this PR could change photon conversion plots like the one shown here:

#16759 (comment)

Is isolation used by the gedPhotonAnalyzer?

@gzevi
Copy link
Contributor

gzevi commented Nov 29, 2016 via email

@cvuosalo
Copy link
Contributor

cvuosalo commented Nov 29, 2016

@gzevi: The plots 1 come from a test of workflow 1332.0_H125GGgluonfusion_13 with 1000 events against baseline CMSSW_9_0_X_2016-11-22-2300. I used the standard Jenkins code to compare the PR with baseline and make the plots.
It looks like we still have a mystery. Why are many Reco quantities from AOD/RECO being slightly changed by this PR, which should only be changing isolation? We have an answer for Mini-AOD quantities like those shown in the reducedEGamma plot, but not the others.
@rafaellopesdesa: Could you please contact EGM experts to get some information about the downstream effects of changing photon isolation?

@gzevi
Copy link
Contributor

gzevi commented Nov 29, 2016

Just to make sure I understand: Reco quantities in miniAOD are expected to change, as shown above, because the photons are treated differently depending on their isolation. The issue is Reco quantities in Reco (for example the conversion plot you show, which I understand is made from AOD). Please correct if I misunderstood.

@cvuosalo
Copy link
Contributor

@gzevi: Yes, your statement of the issue is correct. (I edited my previous comment to be more clear.)

@lgray
Copy link
Contributor

lgray commented Nov 29, 2016

I'm taking a look...

@cvuosalo
Copy link
Contributor

Looking more carefully, I see that the differences are limited to DQM photon conversion plots produced by the gedPhotonAnalyzer (except for the Mini-AOD changes that are expected).

@lgray
Copy link
Contributor

lgray commented Nov 29, 2016

OK - I also made sure that the photon analyzer wasn't being run with the same settings for the MiniAOD DQM.

@lgray
Copy link
Contributor

lgray commented Nov 29, 2016

Hi, I found the issue.
The isolation in "photonAnalyzer" for the DQM uses the charged hadron isolation to select photons.

See here: https://github.com/cms-sw/cmssw/blob/CMSSW_9_0_X/DQMOffline/EGamma/plugins/PhotonAnalyzer.cc#L1181-L1207

No mystery, just very convoluted code. Changes expected, in that case.

@lgray
Copy link
Contributor

lgray commented Nov 29, 2016

Also the plot labelling is misleading, "AllPhotons" actually means "non isolated photons" according to the DQM code.

@lgray
Copy link
Contributor

lgray commented Nov 29, 2016

This last point explains all other differences.

i.e. #16759 (comment)

@gzevi
Copy link
Contributor

gzevi commented Nov 29, 2016

Thanks Lindsey!
For the record, the feature that fooled some of us was that the "All" category of plots only contains photons that fail the "GoodCandidate" selection. Should be easy to confirm by looking at the whole set of plots.

@cvuosalo
Copy link
Contributor

+1

For #16759 9068b11

Changing to use CITK for computing photon isolation.

The code changes are satisfactory. Jenkins tests against baseline CMSSW_9_0_X_2016-11-27-2300 show many small differences expected from the change in isolation, as discussed extensively above. Additional tests results discussed above also show only expected changes, no increase in CPU time, and only a slight increase in memory usage.

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