PPS fixes in using DBOutputService followup#36180
Conversation
|
@tvami here is the draft RP |
Thanks! |
|
+code-checks
|
|
A new Pull Request was created by @fabferro (Fabrizio Ferro) for master. It involves the following packages:
@cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
| edm::Service<cond::service::PoolDBOutputService> poolDbService; | ||
| if (poolDbService.isAvailable()) { | ||
| poolDbService->writeOneIOV(*pCTPPSPixelAnalysisMask, analysismaskiov_, /*m_record*/ record_); | ||
| poolDbService->writeOneIOV(analysisMask, analysismaskiov_, /*m_record*/ record_); |
There was a problem hiding this comment.
| poolDbService->writeOneIOV(analysisMask, analysismaskiov_, /*m_record*/ record_); | |
| poolDbService->writeOneIOV(analysisMask, analysismaskiov_, record_); |
There was a problem hiding this comment.
@tvami here I get from @wpcarvalho (who is testing the package) the following comment:
""It is saving a CTPPSPixelDAQMapping const* object instead of a CTPPSPixelDAQMapping
Removing "&" in
const auto mapping = &es.getData(tokenMapping_);
would fix the issue.""
I'm a bit puzzled now...
| edm::Service<cond::service::PoolDBOutputService> poolDbService; | ||
| if (poolDbService.isAvailable()) { | ||
| poolDbService->writeOneIOV(*pCTPPSPixelDAQMapping, daqmappingiov_, /*m_record*/ record_); | ||
| poolDbService->writeOneIOV(mapping, daqmappingiov_, /*m_record*/ record_); |
There was a problem hiding this comment.
| poolDbService->writeOneIOV(mapping, daqmappingiov_, /*m_record*/ record_); | |
| poolDbService->writeOneIOV(mapping, daqmappingiov_, record_); |
| &tAR = tokenAlignmentReal_, | ||
| &tAM = tokenAlignmentMisaligned_]() -> const CTPPSRPAlignmentCorrectionsData* { | ||
| if (r == "CTPPSRPAlignmentCorrectionsDataRcd") { | ||
| return &eS.getData(tAI); |
There was a problem hiding this comment.
I dont really understand why this couldnt just be
| return &eS.getData(tAI); | |
| return &eS.getData(tokenAlignmentIdeal_); |
There was a problem hiding this comment.
Because, in my understanding, tAI is the captured variable. In fact, if I do your change I get compilation errors.
|
+code-checks
|
|
@cmsbuild , please test |
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12ba06/20681/summary.html Comparison SummarySummary:
|
|
+code-checks
|
|
@fabferro looks good to me, can you please convert it to a full PR? |
|
@cmsbuild , please test |
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12ba06/20793/summary.html Comparison SummarySummary:
|
|
Hi @tvami, do you think this PR is ok for merging? Thanks. |
|
It's fine for me, I wanted @ggovi to have the final word on it tho, let me ask him! |
|
+db
|
|
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:
Fixes in use of DBOutputService for PPS code.
Followup of PR#36008.
PR validation:
Validated by PPS DB experts. The payloads are produced correctly.