You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The simulation generates empty waveform for padding in order to produce light readout for all channels. Previously the padding waveforms look like this, because noise was not added.
Adding noise in such way produces empty waveforms with noise. However, you can notice the noise in the pre-trigger window is different, although they are not always different by eye in a single channel.
The way how light simulation in develop (71a493c) handles the signal and the noise is to join the pre-trigger, the "signal" and the post-signal and their noises (disjoint randomness). Especially the "signal" for thresholding and beam trigger are different. The pre-trigger part should always exist in the current scope, but the post-signal part may not be.
Here, I prepose to add noise only after padded signal is in shape. I think this should be an improvement in general.
I agree that generating noise three separate times for one waveform is unnecessarily complicated, and it would make perfect sense to just add the noise overlay to the completed waveform once at the end!
The noise generating function is a reversed fast fourier transform. The noise files I've created are intended to be applied to a waveform with a very specific length and sample frequency. I think (I need to run a few trials to be sure) that the noise issues we've seen in terms of amplitude, at least, come from applying this function to a shorter sample, and potential issues with the code intended to allow that action. Thus, just generating noise for the final, fully-realized waveform would completely remove the potential for errors of this type.
The simulation generates empty waveform for padding in order to produce light readout for all channels. Previously the padding waveforms look like this, because noise was not added.
Adding noise in such way produces empty waveforms with noise. However, you can notice the noise in the pre-trigger window is different, although they are not always different by eye in a single channel.
The way how light simulation in develop (71a493c) handles the signal and the noise is to join the pre-trigger, the "signal" and the post-signal and their noises (disjoint randomness). Especially the "signal" for thresholding and beam trigger are different. The pre-trigger part should always exist in the current scope, but the post-signal part may not be.
Here, I prepose to add noise only after padded signal is in shape. I think this should be an improvement in general.
Tag @mjkramer @krwood @liviocali @AWh1t3 for comments.
The text was updated successfully, but these errors were encountered: