Skip to content

Commit

Permalink
Replace "EventHeader" by edm4hep::EventHeaderName
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel committed Nov 15, 2023
1 parent a18701f commit 540602e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion k4MarlinWrapper/src/components/EDM4hep2Lcio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ StatusCode EDM4hep2LcioTool::convertCollections(lcio::LCEventImpl* lcio_event) {
// Start off with the pre-defined collection name mappings
auto collsToConvert{m_collNames.value()};
// We *always* want to convert the EventHeader
collsToConvert.emplace("EventHeader", "EventHeader");
collsToConvert.emplace(edm4hep::EventHeaderName, "");
if (m_convertAll) {
info() << "Converting all collections from EDM4hep to LCIO" << endmsg;
// And simply add the rest, exploiting the fact that emplace will not
Expand Down
4 changes: 2 additions & 2 deletions k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ namespace {

StatusCode Lcio2EDM4hepTool::convertCollections(lcio::LCEventImpl* the_event) {
// Convert Event Header outside the collections loop
if (!collectionExist("EventHeader")) {
registerCollection("EventHeader", LCIO2EDM4hepConv::createEventHeader(the_event));
if (!collectionExist(edm4hep::EventHeaderName)) {
registerCollection(edm4hep::EventHeaderName, LCIO2EDM4hepConv::createEventHeader(the_event));
}

// Start off with the pre-defined collection name mappings
Expand Down

0 comments on commit 540602e

Please sign in to comment.