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

Restructured code of againstElectronDeadECAL tauID (10_6_X) #29739

Merged

Conversation

mbluj
Copy link
Contributor

@mbluj mbluj commented May 5, 2020

PR description:

Restructured code of againstElectronDeadECAL discriminator to run on either AOD or miniAOD inputs (backport of #29627):

  • add a version of the discriminant to run on top of pat::Taus to be used with miniAOD data samples;
  • use eta and phi of impact position of the leading PFChargedHadron on ECal surface instead of eta and phi of tau at the vertex (taking bending of track in the magnetic field and the zVertex into account) - feature disabled by default for backwards compatibility;
  • restructure the code in the way that both AOD and miniAOD version of the discriminant call the same algorithm to avoid code duplication;
  • move code performing the extrapolation to the ECal surface from the againstElectronMVA algorithm to an auxiliary helper class which avoids code duplication;
  • add output of the againstElectronDeadECAL discriminant produced with AOD inputs (with the extrapolation to ECal surface) to miniAOD workflows for future reMiniAOD with run2_miniAOD_devel era (features for UL re-miniAOD in 10_6_X #27889)

Expected some differences:

  • none with default workflows,
  • new tauID embedded into slimmedTaus and slimmedTausBoosted in miniAOD with run2_miniAOD_devel era.

PR validation:

runTheMatrix.py -l limited -i all passed successfully except a few failed due to problem with inputs (DAS_ERROR).

if this PR is a backport please specify the original PR and why you need to backport that PR:

It is backport of #29627

veelken and others added 5 commits April 27, 2020 17:58
…n either AOD or miniAOD inputs

- use eta and phi of impact position of leadingPFChargedHadron on ECAL surface instead of eta and phi of tau at the vertex
 (taking bending of track in the magnetic field and the zVertex into
- account; disabled by default for backwards compatiblity)
- add discriminator againstElectronDeadECAL to pat::Taus
@cmsbuild
Copy link
Contributor

cmsbuild commented May 5, 2020

A new Pull Request was created by @mbluj for CMSSW_10_6_X.

It involves the following packages:

PhysicsTools/PatAlgos
RecoTauTag/RecoTau

@perrotta, @cmsbuild, @santocch, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @gouskos, @hatakeyamak, @emilbols, @peruzzim, @seemasharmafnal, @mmarionncern, @ahinzmann, @smoortga, @jdolen, @ferencek, @jdamgov, @nhanvtran, @gkasieczka, @schoef, @andrzejnovak, @clelange, @riga, @JyothsnaKomaragiri, @mverzett, @gpetruc, @mariadalfonso this is something you requested to watch as well.
@silviodonato, @dpiparo you are the release manager for this.

cms-bot commands are listed here

@mbluj mbluj changed the title Restructured code of againstElectronDeadECAL tauID Restructured code of againstElectronDeadECAL tauID (10_6_X) May 5, 2020
@perrotta
Copy link
Contributor

perrotta commented May 6, 2020

backport of #29627

@slava77
Copy link
Contributor

slava77 commented May 7, 2020

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 7, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/6164/console Started: 2020/05/07 19:54

@cmsbuild
Copy link
Contributor

cmsbuild commented May 7, 2020

+1
Tested at: aea7414
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-da4315/6164/summary.html
CMSSW: CMSSW_10_6_X_2020-05-07-1100
SCRAM_ARCH: slc7_amd64_gcc700

@cmsbuild
Copy link
Contributor

cmsbuild commented May 7, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 7, 2020

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 33
  • DQMHistoTests: Total histograms compared: 3212324
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3211989
  • DQMHistoTests: Total skipped: 334
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 32 files compared)
  • Checked 137 log files, 14 edm output root files, 33 DQM output files

@santocch
Copy link

+1

@slava77
Copy link
Contributor

slava77 commented May 25, 2020

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 25, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/6563/console Started: 2020/05/25 14:41

@cmsbuild
Copy link
Contributor

+1
Tested at: a1006be
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-da4315/6563/summary.html
CMSSW: CMSSW_10_6_X_2020-05-25-1100
SCRAM_ARCH: slc7_amd64_gcc700

@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-da4315/6563/summary.html

Comparison Summary:

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

@slava77
Copy link
Contributor

slava77 commented May 26, 2020

+1

for #29739 a1006be

  • this backport is consistent with the master version, apart for the expected changes in PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py to accommodate the no-change rule with run2_miniAOD_devel modifier
  • jenkins tests pass and comparisons with the baseline show no (relevant) differences

@santocch
Copy link

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_10_6_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_11_2_X is complete. This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo (and backports should be raised in the release meeting by the corresponding L2)

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit aa544ff into cms-sw:CMSSW_10_6_X May 28, 2020
@mbluj mbluj deleted the CMSSW_10_6_X_tau-pog_deadECAL branch May 28, 2020 09:00
Comment on lines +386 to +389
process.hpsPFTauDiscriminationByDeadECALElectronRejectionForMiniAOD = \
process.hpsPFTauDiscriminationByDeadECALElectronRejection.clone(
extrapolateToECalEntrance = True
)
Copy link
Contributor

Choose a reason for hiding this comment

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

After debugging the discrepancy for UL re-miniAOD in 106X and master, it seems to me that this new module name is not an optimal solution.

  • here in 10_6_X it's a bit semantic (the final result is as expected)
  • in the master branch we apparently have a wrong behavior: the 94X and UL reminiAODs are silently picking up hpsPFTauDiscriminationByDeadECALElectronRejection from the input file

I think that the more appropriate solution would be to

  • in 106X:
    • remove hpsPFTauDiscriminationByDeadECALElectronRejectionForMiniAOD in 106X
    • add run2_miniAOD_devel.toModify(hpsPFTauDiscriminationByDeadECALElectronRejection, extrapolateToECalEntrance = True) in RecoTauTag/Configuration/python/HPSPFTaus_cff.py
    • keep injection of the regular hpsPFTauDiscriminationByDeadECALElectronRejection in the makePatTausTask
  • in the master
    • inject hpsPFTauDiscriminationByDeadECALElectronRejection in the makePatTausTask for run2_miniAOD_UL and run2_miniAOD_94XFall17

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I agree with this comment; this interference between modules included in different eras have been overlooked in this PR. Should be this issue for 106X resolved as part of this PR or as another one? (+ PR for master in both options).

Copy link
Contributor

Choose a reason for hiding this comment

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

Should be this issue for 106X resolved as part of this PR or as another one? (+ PR for master in both options).

the latter.
(nothing can practically be done to a PR that would affect the code after the PR is merged)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right! Overlooked/forgotten that this one is merged - too many items to address after holidays :)

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