NoiseSim is a part of DMCPreBats/DAQSim. It can read in a PSD (Power Spectrum Density) function—which is essentially just a Fourier transform of noise from real data— and use it to add noise to simulated pulses. Using a PSD allows us to generate as much noise as we need without worrying about reusing noise snippets or getting events mixed in.