XENONnT / straxen

Streaming analysis for XENON
BSD 3-Clause "New" or "Revised" License
20 stars 32 forks source link

Peak center time out of peak bounds. #1284

Closed WenzDaniel closed 11 months ago

WenzDaniel commented 1 year ago

Describe the bug As observed by @jjakob03 there is a bug in straxen which leads to peak center times out of peak bounds. See also the chat.

JYangQi00 commented 11 months ago

I have plotted the raw records per channel for this S1 peak from the conversation on Slack and I see something interesting. It seems to me that the start of the raw records does not start from a value near baseline. I checked to see if there were any raw records before this problematic S1 peak, but it doesn't really seem so (see plots attached, the second plot is just a zoomed out version of the first with some other records in there). image image

Given that these raw records don't have a baseline, then such a baseline is calculated when processing from raw records to records. However, the baseline calculation is just the average of the first 40 samples. If the first 40 samples start far from the true baseline, then the inversion of the records will have a huge negative component. This event is removed by the DAQ veto cut anyway, so I will close this issue.

dachengx commented 11 months ago

Thanks @JYangQi00 . Will all similar events be removed by DAQ veto?