openPMD/openPMD-viewer

Diagnostic (energy spectrum)

Closed this issue · 1 comments

Dear All,
I have problem in making energy spectrum of the electron beam. I can make electron beam energy spectrum as Energy on X-axis and spectrum (arbitrary unit) on Y-axis. But I want to know how to make energy spectrum as done in many articles.
I mean I want to plot energy spectrum as charge per MeV (pC/MeV) and also energy spectrum as charge per MeV per micron (pC/MeV/μm). I am using FBPIC code.

Thanks in advance.
DM

I am closing this issue but if someone gets to my query it will be a big thank.