EDM4hep Discussion
Zoom
EDM4hep Live Notes
==================
Date: June 10, 2025
Indico: https://indico.cern.ch/event/1557435/
Connected: Andre, Juan, Tao, Thomas, Mateusz, Leonhard, Juraj, Brieuc, Frank
Apologies:
### Upcoming workshops / conferences
https://github.com/orgs/key4hep/projects/4/views/1
## Progress and discussion
### Brief hackathon report
* Porting Pandora ongoing
* E.g. need to port part of the tracking since that is used
* Almost running, but needs validation and checking
* Doxygen documentation for LCContent
* [ ] link
* APRIL and SDHCAL content built as part of the Key4hep stack
* Need CI for APRIL and SDHCAL
* Only older commit part of the nightlies
## Podio
* https://github.com/AIDASoft/podio/pulls
* https://github.com/AIDASoft/podio/issues
* https://github.com/orgs/AIDASoft/projects/2/views/1
### Merged PRs
* Use size_t for the argument of operator[] for link collections [#783](https://github.com/AIDASoft/podio/pull/783)
### Make it possible to get the collection for an object
* https://github.com/AIDASoft/podio/pull/782
* Sparked by the discusssion at last Key4hep meeting
* Main idea: Hide the ObjectID, but offer the actually desired functionality
### Add missing override to the destructor of UserDataCollection and LinkCollectionImpl
* https://github.com/AIDASoft/podio/pull/785
* [ ] Homogenization of `.clang-tidy` config and what we actually want to enforce
* Update our clang-tidy config
### Change the default setting of the generic writer to RNTuple when `PODIO_DEFAULT_WRITE_RNTUPLE` is set
* https://github.com/AIDASoft/podio/pull/784
* Document readers and writers as well
* Do we want to check the value it is set to, or only whether it is set?
* No precedent in other cases, so this decision might influence others
* [ ] What is the bash recommendation for these cases?
* Could "standardize" the values to `0` and `1`
## EDM4hep
* https://github.com/key4hep/EDM4hep/pulls
* https://github.com/key4hep/EDM4hep/issues
* https://github.com/orgs/key4hep/projects/5
### Merged PRs
### Step length missing from CaloHitContribution
* https://github.com/key4hep/EDM4hep/issues/432
* Should be straight forward to add
* Check unit and type in LCIO and copy over
### [WiP] Replace the spin by a helicity property for the MCParticle
* https://github.com/key4hep/EDM4hep/pull/404
* Debugging special schema evolution that ideally stores `spin.z` into `helicty`
* [x] Do we want / need this? -> Yes, at least would be worthwile to see if schema evolution can deal with this
* Quite a few existing LCIO files with `spin`, but could be absorved in the LCIO to EDM4hep converter
* [ ] Are there existing EDM4hep files with this?
* [ ] Need to check where this breaks downstream
* `9` as default value for "unset", why?
* Historically what some generators have been using
## Converter & MarlinWrapper
### New nuances in keeping LCIO and EDM4hep event cotent consistent
* https://github.com/key4hep/k4MarlinWrapper/issues/235
* https://github.com/key4hep/k4MarlinWrapper/pull/236
* Attaching ParticleID objects to ReconstructedParticles (EDM4hep to LCIO) uses ObjectID (mainly collection ID) for looking up names
* Collections that are created in function algorithms do not have a collection ID assigned
* See: https://github.com/key4hep/k4FWCore/issues/311
* Workaround using the wrapper internal name mapping not as straight forward as initially thought
* Does assigning collection id outside of a Frame break a contract?
* Can no longer check whether a collection belongs to a Frame.
* ObjectIDs main purpose is persistency. Should probably considered an implementation detail
* Insertion into the TES or the Frame is an implementation detail as well (ownership hand-off is the defining feature)
* Algorithm behavior might depend on whether it's called standalone or within Gaudi
* Should collection / object id be non-public?
* Definitely need to document what are the things that can be depended on and which ones don't
* Expose it only for infrastructure / "expert" code that actually needs it
* What about maps going from object to collection, e.g. for filtering on range of objects from different collections. (Actual use case?)
* [x] Check if MarlinWrapper issues can be solved differently
* **No, not really**
* But we can hide the ObjectID
* New proposal: https://github.com/key4hep/k4FWCore/pull/312
## AoB
## Next meeting:
* July 8, 09:00 CEST