Skip to content

Conversation

@tmadlener
Copy link
Member

@tmadlener tmadlener commented Oct 7, 2025

BEGINRELEASENOTES

  • Allow for missing EventHeader collection when converting from EDM4hep to LCIO.

ENDRELEASENOTES

This has been converted unconditionally up until now. This also means that the whole run fails if the collection is missing. Now we check (for the first event), whether we have an EventHeader collection and only then add it to the conversion by default even if it's unspecified by the user.

@tmadlener tmadlener force-pushed the fix-required-eventheader branch 2 times, most recently from 5c57c2f to 48a87c9 Compare October 9, 2025 12:54
To verify that without fix we get an error here
@tmadlener tmadlener force-pushed the fix-required-eventheader branch from 48a87c9 to e3ddcc9 Compare October 10, 2025 11:07
debug() << edm4hep::labels::EventHeader << " collection available. Converting it." << endmsg;
m_collsToConvert.emplace_back(edm4hep::labels::EventHeader, "<directly into LCEvent>");
} else {
warning() << "The " << edm4hep::labels::EventHeader << " collection is not available. Not converting it."
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is worth a warning, or whether we should make this info instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant