Skip to content

Commit

Permalink
Adapt to new optional return values from collID table
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 21, 2023
1 parent 04fe026 commit b70b4c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k4FWCore/components/PodioLegacyInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ StatusCode PodioLegacyInput::initialize() {
error() << "Requested product " << name << " not found." << endmsg;
return StatusCode::FAILURE;
}
m_collectionIDs.push_back(idTable->collectionID(name));
m_collectionIDs.push_back(idTable->collectionID(name).value());
}
return StatusCode::SUCCESS;
}
Expand Down
2 changes: 1 addition & 1 deletion k4FWCore/components/PodioLegacyOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void PodioLegacyOutput::createBranches(const std::vector<std::pair<std::string,
}
}

const auto collID = m_podioLegacyDataSvc->getCollectionIDs()->collectionID(collName);
const auto collID = m_podioLegacyDataSvc->getCollectionIDs()->collectionID(collName).value();
// No check necessary, only registered collections possible
auto coll = collNamePair.second;
const auto collType = std::string(coll->getValueTypeName()) + "Collection";
Expand Down

0 comments on commit b70b4c3

Please sign in to comment.