spaulaus / paass-lc

Acquire and Analyze data from XIA Pixie16 modules
GNU General Public License v3.0
2 stars 7 forks source link

Histogram writing should be asynchronous to analysis #135

Closed spaulaus closed 6 years ago

spaulaus commented 6 years ago

Expected Behavior

Writing histograms to disk shouldn't impact analyzing data. This process should happen independently to prevent the analysis from lagging behind during online scanning.

Current Behavior

Writing histograms to disk halts the analysis of data. This leads to data loss during online acquisition. We're unable to scan data in a "live" format since the time between writes is so long.

Context

@jjvz mentioned this issue while scanning an online background spectrum. The file flushed every 1 M events, which took more than 15 minutes to accumulate. During a low rate experiment this would be an unacceptable delay.

Possible Solution (optional)

Flush the histograms in their own thread.

Acceptance Criteria

spaulaus commented 6 years ago

This issue was moved to spaulaus/paass#135