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 DeepTauID modules so they can also process RECO input for HLT purposes #31744

Merged

Conversation

swozniewski
Copy link
Contributor

PR description:

  • Input tokens for Candidate and Tau collections now use base classes
  • taus and candidates are accessed by dynamic_cast and edm::View on the base class objects
  • A boolean "is_online" is added to specify whether the input is AOD or RECO
  • Electron and muon collections are initialized as empty arrays if is_online is True
  • A structure "tauFunc" containing a range of functions was added to calculate both tau ID quantities as well as other quantities that needed recalculation for RECO input.
  • A namespace "candFunc" was introduced containing functions to calculate quantities that need recalculation for RECO input.
  • A structure lightLepFunc was added to initialize the electron and muon collections depending on the value of the boolean "is_online"
  • Functions that use taus or candidates have been turned into template functions where the CandidateType and/or TauType are specified

PR validation:

  • code and format checks passed
  • unit tests passed
  • limited matrix tests passed
  • RecoTauTag/RecoTau/test/runDeepTauIDsOnMiniAOD.py was run with a setup without any changes and the version of the setup in this PR over the same 1000 events of the same dataset. The output of both runs was identical.
  • A simple setup was made with hltGetConfiguration for the latest HLT menu where the isolation modules were replaced by the adapted DeepTauId module. This setup ran smoothly and the output looked as expected.

lwezenbe and others added 13 commits October 10, 2020 10:23
- input tokens for candidates and taus now use base classes
- taus and candidates accessed by dynamic_cast and edm::View
- is_online boolean in fillDescriptions
- Electron and muon collections empty if is_online
- Changed some quantities with functions that calculate quantity differently depending on the input
Removed 2 leftover comments
- Ran "scram build code-checks" and "scram build code-format"
- Implemented the new container format. For now the indices of the discriminators are given as inputs in the config file. I will look into using provenance
- Switched order of the if statements (for is_online and version checks) in the getPredictions function
- turned tau_index to const
…nc to edm::Handle instead of the vector. The way it was before worked in pre3 but switching to pre5 broke that.
- Change TauRefType to edm::RefToBase<reco::BaseTau>
- Added, removed and changed some option for the basicDiscriminators in the deepTauAtHLT.py config file to be more in line with RecoTauTag/Configuration/HPSPFTaus_cff.py
@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/cms-sw-PR-31744/18954

  • This PR adds an extra 212KB to repository

  • There are other open Pull requests which might conflict with changes you have proposed:

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @swozniewski for master.

It involves the following packages:

HLTrigger/Configuration
RecoTauTag/RecoTau

@perrotta, @Martin-Grunewald, @slava77, @cmsbuild, @fwyzard, @jpata can you please review it and eventually sign? Thanks.
@makortel, @Martin-Grunewald, @riga this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@slava77
Copy link
Contributor

slava77 commented Oct 10, 2020

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 10, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+1
Tested at: bc1db4a
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-df7355/10607/summary.html
CMSSW: CMSSW_11_2_X_2020-11-09-2300
SCRAM_ARCH: slc7_amd64_gcc820

@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-df7355/10607/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2529296
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2529273
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 148 log files, 22 edm output root files, 35 DQM output files

@slava77
Copy link
Contributor

slava77 commented Nov 10, 2020

+1

for #31744 bc1db4a

  • code changes are in line with the PR description and the follow up review
  • jenkins tests pass and comparisons with the baseline show no differences

@silviodonato
Copy link
Contributor

@cms-sw/hlt-l2 do you have any comments?

@silviodonato
Copy link
Contributor

kind reminder @cms-sw/hlt-l2

@Martin-Grunewald
Copy link
Contributor

+1

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

@qliphy
Copy link
Contributor

qliphy commented Nov 18, 2020

+1

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

10 participants