TRestSignalEvent::DrawEvent changed label and scale

REST version : v2.2.18
REST commit : 78471da2

Hi all,
I’ve observed that TRestSignalEvent::DrawEvent draw signal pulses from 0 to maximum in Y axis, that means lower fluctuations don’t appear in the canvas, something like this:
image

I’m not sure if this was intended but I changed it in order to plot the whole pulses, along with the Y label, previously it was “Energy [keV]” now “Amplitude [a.u.]” which I think it’s more accurate.
Both changes can be found in commit 17cd3079 from development branch.

Now same event looks like:
image

David

Hi David, thanks for fixing this, on the commit you sent to the repository I believe I identified a bug. Not sure how it is possible that you get a good result using GetMinTime() on the y-low value. Since I deduce GetMinTime should return zero.

Here it is my commit:

I replaced GetMinTime() by GetMinValue(), it is the result still ok for you? I have some difficulties drawing now on remote, and check it myself.

Sorry, I’ve uploaded the wrong version of the file. You fix it and now it works perfectly again.

1 Like