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

add customization function to swap offlinePrimaryVertices to offlinePrimaryVerticesWithBS #34098

Merged
merged 1 commit into from Jun 18, 2021

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Jun 11, 2021

PR description:

The possibility to swap offlinePrimaryVertices with offlinePrimaryVerticesWithBS (that use the BeamSpot measurement constrain the vertex position in the x,y plane) has been discussed in the physics coordination meeting.
This would give in principle better precision as long as the Beam Spot is measured correctly.
We'd like to study the effect of such swap at all levels by producing dedicated RelVals with this feature, in order to be compared with the regular RelVal samples.
In order to do that we provide here a customization function that changes the source of vertices of offlinePrimaryVertices in order to point to unsortedOfflinePrimaryVertices:WithBS .

As a caveat this happens at level of already sorted PVs, so the unsorted collections remain the same.

PR validation:

Tested a "would be" special workflow via:

runTheMatrix.py -l 11634.0 --command='--customise RecoVertex/Configuration/replaceOfflinePrimaryVerticesWithBS.swapOfflinePrimaryVerticesToUseBeamSpot'

that runs with success.

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

Not a backport, no backport needed.
cc:
@mtosi, @vmariani

#
# mass replace OfflinePrimaryVertices with OfflinePrimaryVerticesWithBS (doesn't affect defaults in the source code)
#
def massReplaceOfflinePrimaryVerticesToUseBeamSpot(process):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is an earlier attempt to achieve the same, but apparently this doesn't affect the defaults created with fillDescriptions. Is it foreseen?

Copy link
Contributor

Choose a reason for hiding this comment

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

why not simply to have offlinePrimaryVertices.vertices="unsortedOfflinePrimaryVertices:WithBS" ?

also, this could be a processModifier

Copy link
Contributor Author

@mmusich mmusich Jun 14, 2021

Choose a reason for hiding this comment

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

why not simply to have offlinePrimaryVertices.vertices="unsortedOfflinePrimaryVertices:WithBS" ?

OK, that would work.

also, this could be a processModifier

what is the functional advantage of a processModifier? I was under the impression that such a fixture would be necessary for a "semi-"permanent modification to be made available in release, whle in my opinion this would be needed for a one-shot set of samples.

Copy link
Contributor

Choose a reason for hiding this comment

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

I was under the impression that such a fixture would be necessary for a "semi-"permanent modification to be made available in release, whle in my opinion this would be needed for a one-shot set of samples.

OK then

Copy link
Contributor

Choose a reason for hiding this comment

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

do we still need this massReplaceOfflinePrimaryVerticesToUseBeamSpot method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not for producing relval samples, though it might be nice to have for private studies on top of it.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34098/23280

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mmusich (Marco Musich) for master.

It involves the following packages:

RecoVertex/Configuration

@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@makortel, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @mtosi, @dgulhan 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

@mmusich
Copy link
Contributor Author

mmusich commented Jun 15, 2021

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34098/23320

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

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

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-dd54aa/15956/summary.html
COMMIT: 50245e5
CMSSW: CMSSW_12_0_X_2021-06-14-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/34098/15956/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
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 38
  • DQMHistoTests: Total histograms compared: 2862520
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2862491
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 37 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 160 log files, 37 edm output root files, 38 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Jun 17, 2021

+reconstruction

for #34098 50245e5

  • code changes are in line with the PR description and the follow up review: swapOfflinePrimaryVerticesToUseBeamSpot is expected to be used in relval tests, while the other method remains in place for private tests; the customization functions are expected to be temporary.
  • jenkins tests pass and comparisons with the baseline show no (relevant) differences

@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 Jun 18, 2021

+1

@cmsbuild cmsbuild merged commit 9fccdcd into cms-sw:master Jun 18, 2021
@mmusich mmusich deleted the swapOfflinePrimaryVerticesWithBS branch June 18, 2021 04:47
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

4 participants