def print_raw_data(raw_data, start_index=<NUM_LIT:0>, limit=<NUM_LIT:200>, flavor='<STR_LIT>', index_offset=<NUM_LIT:0>, select=None, tdc_trig_dist=False, trigger_data_mode=<NUM_LIT:0>):
if not select:<EOL><INDENT>select = ['<STR_LIT>', '<STR_LIT>', "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL><DEDENT>total_words = <NUM_LIT:0><EOL>for index in range(start_index, raw_data.shape[<NUM_LIT:0>]):<EOL><INDENT>dw = FEI4Record(raw_data[index], chip_flavor=flavor, tdc_trig_dist=tdc_trig_dist, trigger_data_mode=trigger_data_mode)<EOL>if dw in select:<EOL><INDENT>print(index + index_offset, '<STR_LIT>'.format(raw_data[index], (raw_data[index] & <NUM_LIT>) >> <NUM_LIT>, (raw_data[index] & <NUM_LIT>) >> <NUM_LIT:16>, (raw_data[index] & <NUM_LIT>) >> <NUM_LIT:8>, (raw_data[index] & <NUM_LIT>) >> <NUM_LIT:0>), dw)<EOL>total_words += <NUM_LIT:1><EOL>if limit and total_words >= limit:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>return total_words<EOL>
Printing FEI4 raw data array for debugging.