-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Currently collections only have a valid (i.e. != -1 or ffffffff) collection ID if they are read from file, as it gets assigned only when we put collections into the Frame for writing. This can lead to issues when trying to use the collectionIDs as unique identifiers for collections (e.g. key4hep/k4MarlinWrapper#235).
It should be fairly straight forward to assign collection IDs when collections are put into the TES, since the name for persisting to file is also the name we use for identifying it in the TES. IT might be necessary to expose some API call to provide the hash from the name.
The question is: Do we want / need to assign valid collection IDs when adding collections to the TES? Currently, we do not document whether this is defined or not, so at the least we should document expectations around this.