Set the CellID encoding parameters at finalize in Lcio2EDM4hep.cpp - #478
Conversation
|
The problem is that we truly need these during the event loop. So we would probably need to front-load these. However, that would mean that we would need to discover all of them in The other approach is to follow what is currently done in #477 (but more general, along the discussion of key4hep/k4FWCore#301 (comment) This whole thing with the small conceptual differences start to look to me like something that we might be more easily able to solve outside the framework (like we do for getting the patch collections) and simply pass in the necessary information from the outside such that we can inject it where necessary up-front, rather than figuring it out along the way (and hacking core principles of the framework while doing so). |
|
Yes, I didn't see it because the metadata service is being used directly in a few places instead of going through |
In principle yes, but then again, depending on where you start from it's possible that the first event doesn't have all the collections (because that is not enforced in LCIO), so if you want to be sure you need to check a few at least (or potentially all). So having to manually set these from python seems like an acceptable trade-off (making that population automatic can then be done in python for example, or simply reading in a file like we do for patching collections). Both CLD and ILD do that already in their reconstructions. |
Since due to 4c89e08c2a29b4c4b3c82bac06a59797faf2dd82 in k4FWCore, it is not possible to set parameters in the event loop anymore.
This reverts commit cdc1109.
1c48113 to
082db26
Compare
|
I have tested the ILD reconstruction and the CLD reconstruction with the canonical 3 ttbar events, both with LCIO and EDM4hep inputs (and also EDM4hep & LCIO outputs for ILD). All of these options run without failure now at least. I did not check the contents in much detail, but I would assume they should be similar (if not the same) as before as there are no apparent failures. |
BEGINRELEASENOTES
finalizeinLcio2EDM4hep.cppENDRELEASENOTES
Since due to 4c89e08c2a29b4c4b3c82bac06a59797faf2dd82 in k4FWCore, it is not possible to set parameters in the event loop anymore. I left the
PodioDataSvcpath as it is, since it will be removed soon.