diff --git a/src/particles/elements/diagnostics/openPMD.cpp b/src/particles/elements/diagnostics/openPMD.cpp index 3fc28a794..a7b8e4e3c 100644 --- a/src/particles/elements/diagnostics/openPMD.cpp +++ b/src/particles/elements/diagnostics/openPMD.cpp @@ -257,6 +257,11 @@ namespace detail } } + // beam mass + beam.setAttribute( "mass", ref_part.mass ); + beam.setAttribute( "beta_ref", ref_part.beta() ); + beam.setAttribute( "gamma_ref", ref_part.gamma() ); + // openPMD coarse position { beam["positionOffset"]["x"].resetDataset(d_fl);