; returns the pulse height given the electron energy function electron_pulse_response,energy,parameter=p if not keyword_set(p) then begin p={func:'electron_pulse_response', $ sensor:0,chan:0, $ E0:10.235d,gain:8.87d/45.*1.5} endif if n_params() eq 0 then return,p x = energy ph = p.gain*(energy-p.e0) return,ph > 0 end