analysis — Analysis tools#

Warning

Need to review the module and update the documentation. Most of this is probably disappearing as we move away from log files to binary files.

Module documentation#

Analysis tools the astropix chip.

class astropix_analysis.analysis.Run(file_path: str)[source]#

Small conveinence class to read one input cvs file.

dec_ord, id, payload, row, col, ts1, tsfine1, ts2, tsfine2, tsneg1, tsneg2, tstdc1, tstdc2, ts_dec1, ts_dec2, tot_us

_NUM_ROWS = 13#
_NUM_COLS = 16#
static _parse_line(log_file, split_by_colon: bool = True)[source]#

Parse one single line from a log file.

filter_last_tot(maxtot=10000)[source]#

Check for multiple trigger of the same pixel in the same buffer and return last ToT Assuming events are ordered and check that dec_ord of the following line is 0 Adding a flag to remove too-large TOT: probably a deconding issue

inject_pixels()[source]#

Return whether the charge injection was enabled.

trigger_threshold() float[source]#

Return the trigger threshold.

running_time() float[source]#

Running time in seconds

injection_voltage() float[source]#

Return the injection voltage.

tot_hist(binning: ndarray = None)[source]#

Make a histogram of the TOT.

hit_map()[source]#

Make a hit map.