Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to store run information #386

Open
tmadlener opened this issue Dec 2, 2024 · 0 comments
Open

How to store run information #386

tmadlener opened this issue Dec 2, 2024 · 0 comments
Labels
discussion Discussion item enhancement New feature or request

Comments

@tmadlener
Copy link
Contributor

This came up in the context of converting LEP data and was discussed during the EDM4hep meeting on Nov 19. This should serve as a discussion thread / issue to collect relevant data and information.

From the meeting notes:

  • E.g. Conversion from LEP data (run energy)
    • Run frame parameters? Dedicated datatype (RunHeader)?
  • Want to access run data for each event
    • Write them separately from the events
  • Lookup runs via the runNumber from the EventHeader
    • Cache Run
  • Gaudi has EventContext for storing run number, lumi block, etc.
    • Has to be filled by some service at beginning of event loop, algorithms only get const EventContext&
    • Created by EventSelector in Gaudi
  • Use LEP data as starting point and define contents from there

A dedicated edm4hep::RunHeader datatype seems to make sense. Since the edm4hep::EventHeader already stores a runNumber it should be possible to retrieve the appropriate RunHeader via that (plus some caching).

EDM4hep/edm4hep.yaml

Lines 242 to 247 in fe5a540

edm4hep::EventHeader:
Description: "Event Header. Additional parameters are assumed to go into the metadata tree."
Author: "EDM4hep authors"
Members:
- int32_t eventNumber // event number
- int32_t runNumber // run number

The details need to be sorted out and most likely will also require some work in k4FWCore.

@tmadlener tmadlener added enhancement New feature or request discussion Discussion item labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion item enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant