Skip to content

Make sure to not double convert link collections #237

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

Merged
merged 2 commits into from
May 22, 2025

Conversation

tmadlener
Copy link
Contributor

@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
Contributor 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
Contributor 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