diff --git a/Alignment/TrackerAlignment/plugins/CreateTrackerAlignmentRcds.cc b/Alignment/TrackerAlignment/plugins/CreateTrackerAlignmentRcds.cc index e0c1d6fd127cb..62375d44c1ac2 100644 --- a/Alignment/TrackerAlignment/plugins/CreateTrackerAlignmentRcds.cc +++ b/Alignment/TrackerAlignment/plugins/CreateTrackerAlignmentRcds.cc @@ -386,9 +386,9 @@ void CreateIdealTkAlRecords::writeToDB() { } edm::LogInfo("Alignment") << "Writing ideal tracker-alignment records."; - poolDb->writeOne(&alignments_, since, "TrackerAlignmentRcd"); - poolDb->writeOne(&alignmentErrors_, since, "TrackerAlignmentErrorExtendedRcd"); - poolDb->writeOne(&alignmentSurfaceDeformations_, since, "TrackerSurfaceDeformationRcd"); + poolDb->writeOneIOV(alignments_, since, "TrackerAlignmentRcd"); + poolDb->writeOneIOV(alignmentErrors_, since, "TrackerAlignmentErrorExtendedRcd"); + poolDb->writeOneIOV(alignmentSurfaceDeformations_, since, "TrackerSurfaceDeformationRcd"); } // ------------ method fills 'descriptions' with the allowed parameters for the module ------------ diff --git a/Alignment/TrackerAlignment/plugins/MCMisalignmentScaler.cc b/Alignment/TrackerAlignment/plugins/MCMisalignmentScaler.cc index f83072cf70c84..d5565b8366cd2 100644 --- a/Alignment/TrackerAlignment/plugins/MCMisalignmentScaler.cc +++ b/Alignment/TrackerAlignment/plugins/MCMisalignmentScaler.cc @@ -226,7 +226,7 @@ void MCMisalignmentScaler::analyze(const edm::Event&, const edm::EventSetup& iSe } edm::LogInfo("Alignment") << "Writing rescaled tracker-alignment record."; const auto& since = cond::timeTypeSpecs[cond::runnumber].beginValue; - poolDb->writeOne(&rescaledAlignments, since, "TrackerAlignmentRcd"); + poolDb->writeOneIOV(rescaledAlignments, since, "TrackerAlignmentRcd"); } MCMisalignmentScaler::ScalerMap MCMisalignmentScaler::decodeSubDetectors(const edm::VParameterSet& psets) { diff --git a/CondCore/DBOutputService/test/stubs/IOVPayloadEndOfJob.cc b/CondCore/DBOutputService/test/stubs/IOVPayloadEndOfJob.cc index f03c51722c888..449df4e354bdc 100644 --- a/CondCore/DBOutputService/test/stubs/IOVPayloadEndOfJob.cc +++ b/CondCore/DBOutputService/test/stubs/IOVPayloadEndOfJob.cc @@ -37,7 +37,7 @@ void IOVPayloadEndOfJob::endJob() { //create cond::Time_t firstSinceTime = mydbservice->beginOfTime(); std::cout << "firstSinceTime is begin of time " << firstSinceTime << std::endl; - mydbservice->writeOne(&myped, firstSinceTime, m_record); + mydbservice->writeOneIOV(myped, firstSinceTime, m_record); } else { //append cond::Time_t current = mydbservice->currentTime(); @@ -52,7 +52,7 @@ void IOVPayloadEndOfJob::endJob() { } cond::Time_t thisPayload_valid_since = current; std::cout << "appeding since time " << thisPayload_valid_since << std::endl; - mydbservice->writeOne(&myped, thisPayload_valid_since, m_record); + mydbservice->writeOneIOV(myped, thisPayload_valid_since, m_record); std::cout << "done" << std::endl; //std::cout<m_pedestals[1].m_mean<currentTime() << std::endl; if (mydbservice->currentTime() % 5 == 0) { - mydbservice->writeOne(&myped, mydbservice->currentTime(), m_record); + mydbservice->writeOneIOV(myped, mydbservice->currentTime(), m_record); } } void Timestamp::endJob() {}