def convert_tdc_to_channel(channel):
def f(value):<EOL><INDENT>filter_func = logical_and(is_tdc_word, is_tdc_from_channel(channel))<EOL>select = filter_func(value)<EOL>value[select] = np.bitwise_and(value[select], <NUM_LIT>)<EOL>value[select] = np.bitwise_or(value[select], <NUM_LIT>)<EOL>f.__name__ = "<STR_LIT>" + str(channel)<EOL>return value<EOL><DEDENT>return f<EOL>
Converts TDC words at a given channel to common TDC header (0x4).