-
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
Migrate JetMET and PF codes to new PoolDBOutputService methods #36214
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36214/26823
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36214/26824
|
A new Pull Request was created by @laurenhay (Lauren Hay) for master. It involves the following packages:
@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
5f70209
to
11bd492
Compare
@cmsbuild please test |
@@ -46,7 +46,7 @@ void JetResolutionDBWriter::beginJob() { | |||
if (s.isAvailable()) { | |||
std::cout << "Setting up payload record " << m_record << std::endl; | |||
cond::Time_t sinceTime = s->isNewTagRequest(m_record) ? s->beginOfTime() : s->currentTime(); | |||
s->writeOne<JME::JetResolutionObject>(jerObject, sinceTime, m_record); | |||
s->writeOneIOV<JME::JetResolutionObject>(jerObject, sinceTime, m_record); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s->writeOneIOV<JME::JetResolutionObject>(jerObject, sinceTime, m_record); | |
s->writeOneIOV(jerObject, sinceTime, m_record); |
This would also work
assign db |
New categories assigned: db @ggovi,@francescobrivio,@malbouis,@tvami you have been requested to review this Pull request/Issue and eventually sign? Thanks |
else | ||
s->appendSinceTime<JetCorrectorParametersCollection>(payload, 111, payloadTag); | ||
s->appendOneIOV<JetCorrectorParametersCollection>(payload, 111, payloadTag); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I ask what is the point of using a since 111
? Is it just a placeholder instead of using beginOfTime
or currentTime
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this was a placeholder for currentTime(), but after reading the slides again I realize I can work around this by replacing this section with s->writeOneIOV so I'm doing this now.
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a370d9/20708/summary.html Comparison SummarySummary:
|
+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) |
@smuzaffar |
ah right, looks like bot ignore the deleted file category ( though it properly mentioned it in #36214 (comment) ) . I will fix this @slava77 |
@slava77 should we put this PR to hold? |
@slava77 , bot is fixed now and it should consider also the renamed files. |
I have the impression from the commits that only ALCA-related code was moved (DBReader, DBWriter) from the reco package, which sounds perfectly reasonable. It was just the fact that reco sig was not formally required to move code (reco-related or not) out of reco packages that needed to be addressed, and I think this was already quickly fixed by Shahzad. So when I look what's remaining under https://github.com/cms-sw/cmssw/tree/2fee4242c25ca83143f2db99a4504ec749a37d13/JetMETCorrections/Modules/plugins, it's now more clearly reco code. I don't think this PR needs to be held up by reco, but let me know if I missed something. |
@jpata thanks, in that case, can you please sign the PR? (since now the signature is required from your side) |
+reconstruction
|
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:
As introduced in issue #28, we need to migrate to the new methods replacing writeOne --> writeOneIOV, createNewIOV --> createOneIOV, and appendSinceTime --> appendOneIOV.
The codes containing PoolDBOutputService in JetMET that were addressed are:
JetMETCorrections/Modules/plugins/JetCorrectorDBWriter.cc
JetMETCorrections/Modules/plugins/JetResolutionDBWriter.cc
JetMETCorrections/Modules/plugins/METCorrectorDBWriter.cc
JetMETCorrections/Modules/plugins/QGLikelihoodDBWriter.cc
JetMETCorrections/Modules/plugins/QGLikelihoodSystematicsDBWriter.cc
JetMETCorrections/FFTJetModules/plugins/FFTJetCorrectorDBWriter.cc was addressed already in #35781
Planned to also address RecoParticleFlow/PFClusterTools/test/ProducePFCalibrationObject.cc but this was addressed in #36196
PR validation:
CMSSW compiles
scram b runtests
cmsRun JetCorrectionDBWriter_cfg.py
runs without issueBackport:
NA
@kirschen @panwarlsweet @juska