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

Prevent disabing of HGCal electron cluster preselection #20588

Merged
merged 2 commits into from
Sep 26, 2017

Conversation

nsmith-
Copy link
Contributor

@nsmith- nsmith- commented Sep 19, 2017

Due to aliasing of enums EcalEndcap=HcalEndcap=2. I didn't add det_group == DetId::Ecal since I was worried the alias might have been permitted for pre-PhaseII detectors in case hitsAndFractions()[0] happens to be an HCal hit. Not sure if that actually happens or not...

Found when looking at hadron fraction of electrons in 930 Zee RelVals, where the cluster cut appears to not work
ecaldrivenelectronshadfrac

Here are the unique subdet IDs observed in the PF superclusters:

In [23]: ids=set()

In [26]: for e in events:
    ...:     cl = handles.recoSuperClusters_particleFlowSuperClusterHGCalFromMultiCl__RECO
    ...:     ids=ids.union( set([(c.seed().hitsAndFractions()[0].first.det(), c.seed().hitsAndFractions()[0].first.subdetId()) for c in cl]))
    ...:

In [27]: ids
Out[27]: {(4L, 2), (6L, 3), (6L, 4)}

i.e. DetId::Hcal, HcalEndcap, DetId::Forward, HGCEE, and DetId::Forward, HGCHEF.
I am not sure why HcalEndcap is used as a subdetId rather than HGCHEB, perhaps someone knows?

Due to aliasing of EcalEndcap=HcalEndcap=2
@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 19, 2017

A new Pull Request was created by @nsmith- (Nicholas Smith) for CMSSW_9_3_X.

It involves the following packages:

RecoEgamma/EgammaElectronProducers

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

cms-bot commands are listed here

@kpedro88
Copy link
Contributor

@nsmith please make a corresponding PR to master (for 94X)

@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

@rovere
Copy link
Contributor

rovere commented Sep 19, 2017

@nsmith- HcalEndcap is used as a SubDet (of Hcal) not as a det, so it seems to be correct.
Could you please comment a bit further what the bug is, what your patch is doing and show some plots of the effect of the patch?

@nsmith-
Copy link
Contributor Author

nsmith- commented Sep 19, 2017

If the first hit in an HGC seed cluster happens to be from BH part of HGC, then its subdetId is 2, the same as EcalEndcap, so the if statement exits early and the cluster H/E cut is effectively disabled in this seed producer.
I checked with a cmsDriver that at least the patch does what it should, but waiting now on running the reco step again to see if there are any efficiency effects. Even if there are, it is kind of obvious we shouldn't be seeding GSF tracks with hadron clusters, no? Consider that if the first hit in the seed cluster hitsAndFractions() is not in BH, then the cut works as advertised.

@nsmith-
Copy link
Contributor Author

nsmith- commented Sep 19, 2017

@kpedro88, done, #20591

@rovere
Copy link
Contributor

rovere commented Sep 19, 2017

Ok, got it. It could make some clean-up, for sure, in high-PU events.

@kpedro88
Copy link
Contributor

backport of #20591

@cmsbuild
Copy link
Contributor

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

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 21, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/23137/console Started: 2017/09/21 09:22

@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-20588/23137/summary.html

Comparison Summary:

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

@perrotta
Copy link
Contributor

+1

@kpedro88
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_9_3_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_9_4_X is complete. 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

merge

@cmsbuild cmsbuild merged commit bead066 into cms-sw:CMSSW_9_3_X Sep 26, 2017
@nsmith- nsmith- deleted the fixHGCalElectronSeedsHoE930 branch April 10, 2018 13:16
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