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

Adding offlineVerticesWithBS to miniAOD #33778

Merged
merged 6 commits into from
May 28, 2021

Conversation

AdrianoDee
Copy link
Contributor

@AdrianoDee AdrianoDee commented May 19, 2021

PR description:

This PR adds a new collection of offlineSlimmedPrimaryVerticesWithBS to miniAOD format. This collection comes from AOD offlinePrimaryVerticesWithBS with the same slimming and association used for offlineSlimmedPrimaryVertices.

The relative size increase is checked on a a set of Run3 ttbar samples with multiple :

relative

The size per event:

sizes_ttbar

The v3 shown here is the version with minPtForLowQualityTrackProperties=0.0 with #33777

Further checks in the references below.

PR Validation and Further references

BPH Jamboree December 2020 here

xPOG Meeting February 2021 here

Further reference here

For a complete documentation, trk4bph meetings: 1, 2, 3 , 4, 5, 6

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33778/22745

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

PhysicsTools/PatAlgos

@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @gouskos, @jdolen, @JyothsnaKomaragiri, @ahinzmann, @schoef, @emilbols, @swozniewski, @jdamgov, @mbluj, @nhanvtran, @gkasieczka, @clelange, @hatakeyamak, @ferencek, @gpetruc, @andrzejnovak, @mariadalfonso, @seemasharmafnal, @mmarionncern 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

Copy link
Contributor

@slava77 slava77 left a comment

Choose a reason for hiding this comment

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

it looks like use cases for most of the introduced producers are missing.
shouldn't there be at least a keep statement for the output event format?

Comment on lines +18 to +20

run2_miniAOD_pp_on_AA_103X.toModify(primaryVertexWithBSAssociation,particles = "cleanedParticleFlow")
primaryVertexWithBSAssociationCleaned = primaryVertexWithBSAssociation.clone(particles = "cleanedParticleFlow:removed")
Copy link
Contributor

Choose a reason for hiding this comment

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

is this really needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sincerely I placed it for consistency, for me we may erase it.

Copy link
Contributor

Choose a reason for hiding this comment

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

@mandrenguyen @abaty could you please give your advice about the possible need of these offlineVerticesWithBS for HI?

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to have offlinePrimaryVerticesWithBS in HI miniAOD as well. I checked the increase in size on 100 events of wf 140.5611 and it looks negligible, around 0.1%. PU is so low in PbPb that multiple vertices are more likely to come from vertex splitting. So perhaps this is not unexpected.

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to have offlinePrimaryVerticesWithBS in HI miniAOD as well. I checked the increase in size on 100 events of wf 140.5611 and it looks negligible, around 0.1%. PU is so low in PbPb that multiple vertices are more likely to come from vertex splitting. So perhaps this is not unexpected.

Great, thank you Matt,
Therefore, this part can remain as it is,

@AdrianoDee
Copy link
Contributor Author

it looks like use cases for most of the introduced producers are missing.
shouldn't there be at least a keep statement for the output event format?

Indeed you are right, I added a keep to the MicroEventContent (for miniAOD)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33778/22755

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

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

@@ -4,10 +4,17 @@
primaryVertexAssociation = sortedPFPrimaryVertices.clone(
qualityForPrimary = cms.int32(2),
produceSortedVertices = cms.bool(False),
producePileUpCollection = cms.bool(False),
producePileUpCollection = cms.bool(False),
Copy link
Contributor

Choose a reason for hiding this comment

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

Please drop type specifications for all parameters which already exist.
This is a safer way to protect from parameter name mistakes and will also help in possible parameter migrations.

primaryVertexAssociation = sortedPFPrimaryVertices.clone(
  qualityForPrimary = 2,
  produceSortedVertices = False,
  producePileUpCollection  = False,
  produceNoPileUpCollection = False
)

produceNoPileUpCollection = cms.bool(False)
)

primaryVertexWithBSAssociation = primaryVertexAssociation.clone(
vertices = cms.InputTag("offlinePrimaryVerticesWithBS")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
vertices = cms.InputTag("offlinePrimaryVerticesWithBS")
vertices = "offlinePrimaryVerticesWithBS"

Comment on lines +18 to +20

run2_miniAOD_pp_on_AA_103X.toModify(primaryVertexWithBSAssociation,particles = "cleanedParticleFlow")
primaryVertexWithBSAssociationCleaned = primaryVertexWithBSAssociation.clone(particles = "cleanedParticleFlow:removed")
Copy link
Contributor

Choose a reason for hiding this comment

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

@mandrenguyen @abaty could you please give your advice about the possible need of these offlineVerticesWithBS for HI?

cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters))
from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy()))
run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexWithBSAssociationCleaned,slimmingTask.copy()))
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here: insertion to be agreed with @mandrenguyen @abaty

@perrotta
Copy link
Contributor

assign xpog
(in order to evaluate about the miniAOD file size increase reported in the PR description)

@cmsbuild
Copy link
Contributor

New categories assigned: xpog

@fgolf,@mariadalfonso,@gouskos you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33778/22796

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33778/22915

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

Pull request #33778 was updated. @perrotta, @gouskos, @cmsbuild, @fgolf, @slava77, @jpata, @mariadalfonso can you please check and sign again.

@perrotta
Copy link
Contributor

please test

@perrotta
Copy link
Contributor

+1

  • (Since the last update only consists in removing some unneeded comment lines I can sign it now, even though the tests are still running)
  • offlineVerticesWithBS added to miniAOD, as planned
  • The same addition propagates to HI miniAOD, and this has been approved by the HI reco contact
  • Increase in the miniAOD size seems manageable (but I'll let @cms-sw/xpog-l2 to better evaluate about it)
  • Jenkins tests pass, with no differences in the reco outputs besides the addition of the new collection

@AdrianoDee
Copy link
Contributor Author

@perrotta thanks

@mariadalfonso
Copy link
Contributor

+xpog

miniAOD size increase in the description inline with the discussion of the budget in the xPOG

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. 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)

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3bd2dd/15387/summary.html
COMMIT: 6689203
CMSSW: CMSSW_12_0_X_2021-05-28-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33778/15387/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2650486
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2650457
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 36 files compared)
  • Checked 155 log files, 37 edm output root files, 37 DQM output files
  • TriggerResults: no differences found

@silviodonato
Copy link
Contributor

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

7 participants