key4hep / k4FWCore

Core Components for the Gaudi-based Key4hep Framework
Apache License 2.0
10 stars 26 forks source link

`EventContext` in k4FWCore and functional algorithms #225

Open m-fila opened 3 weeks ago

m-fila commented 3 weeks ago

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:

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