Skip to content

Conversation

@tmadlener
Copy link
Member

@tmadlener tmadlener commented May 21, 2025

BEGINRELEASENOTES

  • Make sure that Link collections are properly skipped from conversion if they already exist in the LCIO event

ENDRELEASENOTES

  • Test case covering this

Copy link
Collaborator

@andresailer andresailer left a comment

Choose a reason for hiding this comment

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

Looks good to me. Is there some open issue or known case that was affected by this?

@tmadlener
Copy link
Member Author

No issue that I am aware of, just stumbled over this in #236. I need to check how much work it would be to put this into a test.

@tmadlener tmadlener force-pushed the no-double-convert-links branch from b814c3f to da3e318 Compare May 22, 2025 12:59
@tmadlener
Copy link
Member Author

I have adjusted the existing link conversion checks to include a double conversion and it indeed fails before this fix:

23: ToolSvc.Another...  DEBUG Adding LCRelation collection TrivialMCRecoLinks of type LCRelation
23: AnotherLinkChecker  FATAL Standard std::exception is caught in sysExecute
23: AnotherLinkChecker  ERROR lcio::EventException: LCEventImpl::addCollection() name already exists: TrivialMCRecoLinks
23: EventLoopMgr        FATAL .executeEvent(): Standard std::exception thrown by AnotherLinkChecker
23: EventLoopMgr        ERROR lcio::EventException: LCEventImpl::addCollection() name already exists: TrivialMCRecoLinks
23: EventLoopMgr      WARNING Execution of algorithm AnotherLinkChecker failed

@tmadlener tmadlener merged commit 7400a30 into key4hep:main May 22, 2025
6 of 7 checks passed
@tmadlener tmadlener deleted the no-double-convert-links branch May 22, 2025 14:59
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.

2 participants