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 logic in OnlineBeamSpotESProducer #35333
Add logic in OnlineBeamSpotESProducer #35333
Conversation
@cmsbuild please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35333/25380
|
A new Pull Request was created by @francescobrivio for master. It involves the following packages:
@malbouis, @yuanchao, @slava77, @jpata, @francescobrivio, @tvami can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b27811/18737/summary.html Comparison SummarySummary:
|
@francescobrivio can you maybe post the results of this validation in the description? |
This is meant to be run online (i.e. during data taking), I did the test "offline" changing by hand some of the cuts and conditions (e.g. the timeThreshold and the selection choice) and adding some couts to see that the correct BeamSpot was chosen, nothing more. |
+alca |
urgent
|
@tvami |
RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc
Outdated
Show resolved
Hide resolved
RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc
Outdated
Show resolved
Hide resolved
RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc
Outdated
Show resolved
Hide resolved
|
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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
There's a conflict now with #35373. |
hold
|
Pull request has been put on hold by @francescobrivio |
ok I can remove the AlCa signature |
@francescobrivio @tvami #35373 needs more work. In particular an update of the Run3 MC Global Tags might be in order. I propose to unhold and merge this that is already signed and I'll rebase the other one once we figure out what to do. |
unhold
|
+alca |
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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR adds a real logic in
OnlineBeamSpotESProducer
to discriminate between the two different BeamSpot workflows.The logic is based on two parameters
timeThreshold
(hours) andsigmaZThreshold
(cm) which are both configurable.The logic is the following:
timeThreshold
(by default48 hours
) retuns a fake BeamSpottimeThreshold
returns it only if it the fit converged(has
BeamType == 2
) and sigmaZ is larger than the threshold (by default2 cm
)timeThreshold
returns the one that converges and has larger sigmaZThe checks on sigmaZ, on the creation time and on the convergence of the fit are also applied to the cases where the ESProducer was able to fetch from the DB only one of the two BeamSpot payloads.
The test
RecoVertex/BeamSpotProducer/test/test_scalars.py
was also updated to use a file available on eos and to comply with the changes made in #34348 (inclusion of the BS online tags in the GTs).PR validation:
Tested locally using
RecoVertex/BeamSpotProducer/test/test_scalars.py
.Backport
A backport to 12_0_X is provided in #35334
FYI @gennai @dzuolo