Skip to content
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

Fix missing collections with IOSvc when using convertAll=True #225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmcarcell
Copy link
Member

@jmcarcell jmcarcell commented Feb 28, 2025

BEGINRELEASENOTES

  • Fix missing collections with IOSvc when using convertAll=True
  • Add a test that would fail without this fix
  • Rename PseudoRecoAlgorithm to PseudoRecoFunctional and create a new PseudoRecoAlgorithm that implements a Gaudi::Algorithm

ENDRELEASENOTES

The issue here was that not every check that is being done in Writer.cpp in k4FWCore is being done since the function there only looks at the names and makes the checks later, while here it is convenient to make the checks at the same time because it is expected this way in some parts of the wrapper (the if - else to check for PodioDataSvc or IOSvc are simpler this way).

Fix #219.

"--use-gaudi-algorithm",
action="store_true",
default=False,
help="Use IOSvc instead of PodioDataSvc",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
help="Use IOSvc instead of PodioDataSvc",
help="Use algorithm based on Gaudi::Algorithm instead of a functional algorithm",

Copy link
Contributor

@m-fila m-fila Feb 28, 2025

Choose a reason for hiding this comment

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

or maybe just "Use non-functional algorithm"?

if args.use_gaudi_algorithm:
mcLinkConverter.convertAll = True
else:
mcLinkConverter.convertAll = False
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this differentiation here? I think I originally put it in effectively as an optimization. Or would this still require key4hep/k4FWCore#290

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.

convertAll ignored after changes for IOSvc compatibility?
3 participants