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

Bad PF candidate filter for 2018 PbPb data #31668

Merged
merged 16 commits into from
Oct 21, 2020

Conversation

mandrenguyen
Copy link
Contributor

PR description:

Removes badly reconstructed PF charged hadrons and muons from list of PF candidates stored in the 2018 PbPb AOD. The filtered list is fed into the jet reconstruction (akCs4PFJets), as well as the packed PF candidate collection. The filtered out particles are stored in the following collection, which is stored in miniAOD
patPackedCandidates_packedPFCandidatesCleaned__PAT
The slimmedMuons use both the kept and discarded packed candidates, as input.
Discarded charged hadrons will end up in both packedPFCandidatesCleaned and lostTracks, but the cost of this double storage is small, as bad particles are rare.

Details of the studies used to tune the selection cuts for bad particles may be found here:
https://twiki.cern.ch/twiki/pub/CMS/HiHighPt2019/JetReco_MAN_291710.pdf
https://twiki.cern.ch/twiki/pub/CMS/HiJetReco2019/JetReco_MAN_191010.pdf

PR validation:

Tested with 140.5611

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

Before submitting your pull requests, make sure you followed this checklist:

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31668/18790

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2020

A new Pull Request was created by @mandrenguyen (Matthew Nguyen) for master.

It involves the following packages:

PhysicsTools/PatAlgos
RecoHI/HiJetAlgos

@perrotta, @jpata, @cmsbuild, @santocch, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @gouskos, @yslai, @schoef, @emilbols, @peruzzim, @seemasharmafnal, @mmarionncern, @ahinzmann, @smoortga, @dgulhan, @jdolen, @ferencek, @yetkinyilmaz, @jdamgov, @nhanvtran, @gkasieczka, @hatakeyamak, @mariadalfonso, @clelange, @riga, @jazzitup, @JyothsnaKomaragiri, @yenjie, @kurtejung, @gpetruc, @andrzejnovak 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

@perrotta
Copy link
Contributor

perrotta commented Oct 5, 2020

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2020

-1

Tested at: 03d87db

CMSSW: CMSSW_11_2_X_2020-10-05-1200
SCRAM_ARCH: slc7_amd64_gcc820
You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5e7d33/9732/summary.html

I found follow errors while testing this PR

Failed tests: ClangBuild

  • Clang:

I found compilation warning while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

See details on the summary page.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2020

Comparison not run due to Build errors/Fireworks only changes/No short matrix requested (RelVals and Igprof tests were also skipped)

@cmsbuild
Copy link
Contributor

+1
Tested at: 307021a
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5e7d33/10142/summary.html
CMSSW: CMSSW_11_2_X_2020-10-19-2300
SCRAM_ARCH: slc7_amd64_gcc820

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5e7d33/10142/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5e7d33/10142/git-merge-result

@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-5e7d33/10142/summary.html

The workflows 158.01 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

Comparison Summary:

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

},hiDefaults2018_ppReco,step3Up2015Defaults])
steps['REMINIAODHI2018PPRECOMB']=merge([{'-s':'PAT,VALIDATION:@miniAODValidation,DQM:@miniAODDQM',
'--datatier':'MINIAODSIM,DQMIO',
'--eventcontent':'MINIAODSIM,DQM',
'-n':100,
'--era':'Run2_2018_pp_on_AA',
'--procModifiers':'genJetSubEvent',
'--procModifiers':'genJetSubEvent,run2_miniAOD_pp_on_AA_103X',
Copy link
Contributor

@perrotta perrotta Oct 21, 2020

Choose a reason for hiding this comment

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

@mandrenguyen , please check: is this additional procModifier ("run2_miniAOD_pp_on_AA_103X") really intended for REMINIAODHI2018PPRECOMB?
(I noticed it because, if I am not wrong, this showed up after the rebase, but it was not there before)

Copy link
Contributor Author

@mandrenguyen mandrenguyen Oct 21, 2020

Choose a reason for hiding this comment

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

Yes, this procModifier is the one that enables the cleaning of bad PF candidates (the point of this PR). It should be enabled for the (re)miniAOD workflows, but not for the overall pp_on_AA eras. The "MB" version of the reMiniAOD relval workflow was introduced in #31698, the PR that conflicted with this one, and which caused a rebase to be needed. I'm not 100% sure of the sequence of events that led to this being introduced in the rebase, but I confirm that it is the intended behavior.

@perrotta
Copy link
Contributor

+1

  • Rebased coherently with the original intentions of this PR.
  • Since no relevant changes appeared since then for reco, I repeat here what written in the first reco signature:
    • The filter on badly reconstructed PF charged hadrons acts on re-miniaod of Run2, not on other eras, where the selection is expected to happen at the source
    • Jenkins tests pass and show no differences for "regular" workflows (PS: differences that popped up here for the Phase2 workflows are originated by the additional PRs tested together with this one by bot)
    • Large stat comparisons show events with filtered out hadrons, and how it propagates on the reconstructed jets and so
    • Event size slightly reduced overall: packedPFCandidates shrink of the same size as the now saved separately packedPFCandidatesRemoved; on the other hand, given the smaller number of Candidates available for PFJets, the size of slimmedJets also tinily gets reduced

@kpedro88
Copy link
Contributor

+upgrade

@silviodonato
Copy link
Contributor

merge

@silviodonato
Copy link
Contributor

@mandrenguyen this PR seems to generate some problems. See #31894

@santocch
Copy link

+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.

8 participants