-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 BTV pacakges to new PoolDBOutputService #36231
Conversation
…ory; correcting createOneIOV function
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36231/26854
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-36231/26855
|
A new Pull Request was created by @panwarlsweet (Lata Panwar) 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 |
assign db |
New categories assigned: db @ggovi,@francescobrivio,@malbouis,@tvami you have been requested to review this Pull request/Issue and eventually sign? Thanks |
calibration2d.data.push_back(entry); | ||
} | ||
|
||
mydbservice->createOneIOV(calibration, "BTagTrackProbability3DRcd"); |
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.
mydbservice->createOneIOV(calibration, "BTagTrackProbability3DRcd"); | |
mydbservice->createOneIOV(calibration, mydbservice->endOfTime(), "BTagTrackProbability3DRcd"); |
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.
corrected
|
||
mydbservice->createOneIOV(calibration, "BTagTrackProbability3DRcd"); | ||
|
||
mydbservice->createOneIOV(calibration2d, "BTagTrackProbability2DRcd"); |
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.
mydbservice->createOneIOV(calibration2d, "BTagTrackProbability2DRcd"); | |
mydbservice->createOneIOV(calibration2d, mydbservice->endOfTime(), "BTagTrackProbability2DRcd"); |
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.
corrected
else data2d[i].second = CalibratedHistogram(); | ||
} | ||
|
||
calibrationNew = |
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 dont see where calibrationNew
is deleted. But this file is under \test so fine...
edm::ESHandle<TransientTrackBuilder> builder; | ||
iSetup.get<TransientTrackRecord>().get("TransientTrackBuilder",builder); | ||
iSetup.get<TransientTrackRecord>().get("TransientTrackBuilder", builder); | ||
m_transientTrackBuilder_producer = builder.product(); |
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.
edm::ESHandle<TransientTrackBuilder> builder; | |
iSetup.get<TransientTrackRecord>().get("TransientTrackBuilder",builder); | |
iSetup.get<TransientTrackRecord>().get("TransientTrackBuilder", builder); | |
m_transientTrackBuilder_producer = builder.product(); | |
auto const m_transientTrackBuilder_producer = &iSetup.getData(transientTrackBuilderToken_) |
and you'll need to define transientTrackBuilderToken_
in the header as
const edm::ESGetToken<TransientTrackBuilder, TransientTrackRecord> transientTrackBuilderToken_;
and then consume it in the constructor of this module
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.
implemented as suggested above
@@ -78,82 +74,70 @@ using namespace reco; | |||
// | |||
|
|||
class TrackProbabilityXMLtoDB : public edm::EDAnalyzer { |
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.
class TrackProbabilityXMLtoDB : public edm::EDAnalyzer { | |
class TrackProbabilityXMLtoDB : public edm::one::EDAnalyzer<> { |
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.
corrected
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36231/27270
|
@cmsbuild , please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4a38a1/21135/summary.html CMS StaticAnalyzer warnings: There are 1 EventSetupRecord::get warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4a38a1/21135/llvm-analysis/esrget-sa.txt for details. 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) |
+1 |
PR description:
As introduced in issue cms-AlCaDB/AlCaTools#28, migrating to the new methods replacing writeOne --> writeOneIOV, createNewIOV --> createOneIOV, and appendSinceTime --> appendOneIOV.
The files containing PoolDBOutputService in BTV packages that were addressed are:
RecoBTag/PerformanceDB/plugins/PhysicsPerformanceDBWriterFromFile_WPandPayload.cc
RecoBTag/PerformanceDB/plugins/PhysicsPerformanceDBWriterFromFile_WPandPayload_IOV.cc
RecoBTag/PerformanceDB/plugins/PhysicsPerformanceDBWriterTFormula_fromfile_WPandPL.cc
RecoBTag/TrackProbability/test/CalibrationSkeleton.cc
RecoBTag/TrackProbability/test/TrackProbabilityXMLtoDB.cc
PR validation:
scram b runtests
works fineif this PR is a backport please specify the original PR and why you need to backport that PR:
N/A
@soureek @johnalison