-
Notifications
You must be signed in to change notification settings - Fork 45
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
Save the beam conditions to a metadata tree #433
Comments
I don't see how one can pass divergence settings from afterburner to DD4hep. The beam energies can be fished out from the MCParticles collection right now. |
Maybe, we should upstream functionality of afterburner into DD4hep. Then the configuration options can be saved uniformly. |
Do you know how to go about saving to the podio metadata trees from DD4hep? It seems quite wasteful to infer a constant from the MCParticles tree every event. The afterburner already adds a bunch of comment lines to the output hepmc file, if we can add these (and maybe a few more) into the epic edm4hep file metadata. Whatever implementation narrows down the legitimate workflows currently available to collaborators. Either everyone will have to pass their events through the afterburner, or if the afterburner is added, presumably into npsim, this moves away from having a simple ddsim interface. |
I see in HepMC3 there is a support for storing arbitrary attributes in GenRunInfo: https://gitlab.cern.ch/hepmc/HepMC3/-/blob/master/include/HepMC3/GenRunInfo.h
It shouldn't be too hard, since HepMC and EDM4hep logic are both part of DDG4 module. It's pretty much the same as AIDASoft/DD4hep#1059
If the values are not present we could just assume some sensible defaults or completely disable some functionality. |
Will this be something to address in DDG4 rather than epic then? |
The beam energies and divergence settings used in the simulation should be stored so they can be read back by EICrecon. This is essential for correct reconstruction of the FF/FB particles.
Currently there are metadata trees written by podio to the edm4hep file but it's not clear to me if DD4hep has an interface to those or whether this needs to be implemented there before we can add it into the epic workflow.
The text was updated successfully, but these errors were encountered: