Definition in file generate_diode.c.
#include <bpm/bpm_messages.h>
#include <bpm/bpm_simulation.h>
#include <bpm/bpm_rf.h>
#include <bpm/bpm_alloc.h>
Include dependency graph for generate_diode.c:
Go to the source code of this file.
Functions | |
int | generate_diode (bpmconf_t *bpm, beamconf_t *beam, bpmsignal_t *sig) |
int generate_diode | ( | bpmconf_t * | bpm, | |
beamconf_t * | beam, | |||
bpmsignal_t * | sig | |||
) |
Generate a diode waveform using the given bpm parameters. Essentially, a reference waveform is generated and then rectified to produce the trigger pulse.
bpm | Structure containing the BPM info | |
beam | Structure containing the beam hit info | |
sig | Structure for where to place the digitised waveform |
Definition at line 21 of file generate_diode.c.
References alloc_complex_wave_double(), alloc_simple_wave_int(), beamconf::arrival_time, bpm_error(), bpmconf::cav_chargesens, bpmconf::cav_decaytime, bpmconf::cav_freq, beamconf::charge, bpmconf::digi_ampnoise, bpmconf::digi_nbits, bpmconf::digi_nsamples, bpmconf::digi_trigtimeoffset, free_complex_wave_double(), bpmsignal::ns, rf_nsamples, rf_rectify(), and bpmsignal::wf.