-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[13.1.X] Produce a fake BeamSpot
object in BeamSpotOnlineProducer
when using transient record logic and OnlineBeamSpotESProducer
returned a fake
#41673
Conversation
…by letting the BeamSpotOnlineProducer deal automatically with the arbitrated one
…FromOfflineConverter
…accept the online beamspot objects stored in DB even if they are older than 48h
A new Pull Request was created by @mmusich (Marco Musich) for CMSSW_13_1_X. It involves the following packages:
@Martin-Grunewald, @clacaputo, @cmsbuild, @missirol, @saumyaphor4252, @tvami, @mandrenguyen, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-679b29/32631/summary.html Comparison SummarySummary:
|
+1
|
+hlt |
+reconstruction |
This pull request is fully signed and it will be integrated in one of the next CMSSW_13_1_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_13_2_X is complete. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
backport of #41597
PR description:
While working on #41193, I have noticed that despite
OnlineBeamSpotESProducer
has a refined logic in order to put into the event setup a fake BeamSpot when certain conditions are not met:cmssw/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc
Lines 168 to 174 in a52f2d1
the current
BeamSpotOnlineProducer
logic, ifuseTransientRecord_
is true and theOnlineBeamSpotESProducer
returned a fake beamspot, just falls back to DB (reading the content ofBeamSpotObjectsRcd
, populated by the PCL in realtime workflows) - which I have understood from the Beam Spot experts is not the right / expected behaviour.cmssw/RecoVertex/BeamSpotProducer/plugins/BeamSpotOnlineProducer.cc
Lines 104 to 111 in a52f2d1
In this PR (in commit cc1512b) I change the current behaviour, such that instead now it will indeed produce a fake BS for consumption online (as it was originally devised).
This has a consequence, that in the case in which we want indeed to fall-back to DB (e.g. for the Phase-2 HLT testing case, after #41193), the change will alter physics in an undesired way. For this reason, it has been necessary to supply to the
auto:phase2_realistic
GlobalTag key the rightBeamSpotOnline*ObjectsRcd
payloads in order for theOnlineBeamSpotESProducer
to not pick up a fake BeamSpot. This is done in commit 579d59f , while commit d36e056 sets the the time threshold to1e6
seconds (as it's done for the Run-3 menus, see https://github.com/cms-sw/cmssw/pull/41193/files#r1152358315) to the same effect.The difference in Global Tags is:
To supply such payloads, I have found convenient to create a new plugin
BeamSpotOnlineFromOfflineConverter
that taking aBeamSpotObject
in input creates an sqlite file in output containing a payload of the typeBeamSpotOnlineObjects
. This has been added in commit 9aeabd1, while commits f933305 and 84271d4 add a utility accessor to theBeamSpotOnlineObjects
condtion format to be able to readily copy from aBeamSpotObjects
payload (friend class) all the common parameters. Finally commit 8848ad8 adds this converter to the battery of unit tests of theCondTools/BeamSpot
package.PR validation:
cmssw
complies. Passes back unit tests.If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
This is a verbatim backport of #41597, to be backported down to 13.0.X for 2023 data-taking purposes