Skip to content

Discussion: Should collection IDs be assigned for collections in the TES? #311

@tmadlener

Description

@tmadlener

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions