Skip to content
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

Change to the new method of using writeOneIOV in PPSAssociationCuts #35669

Merged
merged 2 commits into from
Oct 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CondTools/CTPPS/plugins/WritePPSAssociationCuts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void WritePPSAssociationCuts::analyze(const edm::Event &iEvent, const edm::Event
// store the data in a DB object
edm::Service<cond::service::PoolDBOutputService> poolDbService;
if (poolDbService.isAvailable()) {
poolDbService->writeOne(&ppsAssociationCuts, poolDbService->currentTime(), "PPSAssociationCutsRcd");
poolDbService->writeOneIOV(&ppsAssociationCuts, poolDbService->currentTime(), "PPSAssociationCutsRcd");
} else {
throw cms::Exception("WritePPSAssociationCuts") << "PoolDBService required.";
}
Expand Down
1 change: 1 addition & 0 deletions CondTools/CTPPS/test/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<test name="test_CondToolsCTPPS" command="test_CondToolsCTPPS.sh"/>
5 changes: 5 additions & 0 deletions CondTools/CTPPS/test/test_CondToolsCTPPS.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -ex
TEST_DIR=$CMSSW_BASE/src/CondTools/CTPPS/test
echo "test dir: $TEST_DIR"

cmsRun ${TEST_DIR}/write_PPSAssociationCuts_cfg.py
tvami marked this conversation as resolved.
Show resolved Hide resolved