Skip to content

Commit

Permalink
Merge pull request #35669 from tvami/FixPPSAssociationCuts
Browse files Browse the repository at this point in the history
Change to the new method of using `writeOneIOV` in `PPSAssociationCuts`
  • Loading branch information
cmsbuild committed Oct 14, 2021
2 parents 446b461 + aba80dc commit 9e1f6a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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

0 comments on commit 9e1f6a5

Please sign in to comment.