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

[GCC11] fix warnings: Change to new method writeOneIOV #35616

Merged
merged 1 commit into from
Oct 13, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------------
Expand Down
2 changes: 1 addition & 1 deletion Alignment/TrackerAlignment/plugins/MCMisalignmentScaler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions CondCore/DBOutputService/test/stubs/IOVPayloadEndOfJob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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<<myped->m_pedestals[1].m_mean<<std::endl;
}
Expand Down
2 changes: 1 addition & 1 deletion CondCore/DBOutputService/test/stubs/Timestamp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void Timestamp::analyze(const edm::Event& evt, const edm::EventSetup& evtSetup)
std::cout << myped.m_pedestals[1].m_mean << std::endl;
std::cout << "currentTime " << mydbservice->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() {}
Expand Down