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

EventContext in k4FWCore and functional algorithms #225

Open
m-fila opened this issue Aug 20, 2024 · 0 comments
Open

EventContext in k4FWCore and functional algorithms #225

m-fila opened this issue Aug 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@m-fila
Copy link
Contributor

m-fila commented Aug 20, 2024

In Gaudi functional the algorithms' operator() can accept an EventContext that will be provided by the scheduler. In k4FWCore functional algorithms it's not allowed. Both Gaudi and k4FWCore non-functional algorithms accept EventContext in their execute

The EventContext holds information about:

  • a concurrent slot used by the event,
  • event number (ordinal number given by scheduler)
  • id consisting of event id and run id (to be set from event data).
    In the k4FWCore the standard way of supplying event id and run id is with an EventHeaderCollection data object so this is not used currently

The EventContext information could be still useful for less-standard algorithms like EventHeaderCreator #224. The EventContext run id and event id is used in some logging statements but is never set in k4FWCore so a dummy (uninitialized?) value is used

This is not a big problem and rather invisible during "standard" usage. I create this item mostly to keep track of differences between standard Gaudi facilities and k4FWCore

@m-fila m-fila added the enhancement New feature or request label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant