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

DB output migration of RPCReadOutMapBuilder #36367

Merged
merged 1 commit into from Dec 7, 2021
Merged
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
11 changes: 5 additions & 6 deletions CondFormats/RPCObjects/test/RPCReadOutMapBuilder.cc
Expand Up @@ -32,7 +32,7 @@ class RPCReadOutMapBuilder : public edm::one::EDAnalyzer<> {
void endJob() override;

private:
RPCReadOutMapping* cabling;
RPCReadOutMapping cabling;
string m_record;
};

Expand All @@ -56,10 +56,9 @@ void RPCReadOutMapBuilder::endJob() {

try {
if (mydbservice->isNewTagRequest(m_record)) {
mydbservice->createNewIOV<RPCReadOutMapping>(
cabling, mydbservice->beginOfTime(), mydbservice->endOfTime(), m_record);
mydbservice->createOneIOV(cabling, mydbservice->beginOfTime(), m_record);
} else {
mydbservice->appendSinceTime<RPCReadOutMapping>(cabling, mydbservice->currentTime(), m_record);
mydbservice->appendOneIOV(cabling, mydbservice->currentTime(), m_record);
}
} catch (std::exception& e) {
cout << "std::exception: " << e.what();
Expand All @@ -73,7 +72,7 @@ void RPCReadOutMapBuilder::endJob() {
void RPCReadOutMapBuilder::beginJob() {
cout << "BeginJob method " << endl;
cout << "Building RPC Cabling" << endl;
cabling = new RPCReadOutMapping("My map V-TEST");
RPCReadOutMapping cabling;
tvami marked this conversation as resolved.
Show resolved Hide resolved
{
DccSpec dcc(790);
for (int idtb = 1; idtb <= 68; idtb++) {
Expand Down Expand Up @@ -103,7 +102,7 @@ void RPCReadOutMapBuilder::beginJob() {
}
dcc.add(tb);
}
cabling->add(dcc);
cabling.add(dcc);
}
}

Expand Down