tomtag.get_threefold_tags
tomtag.get_threefold_tags(tagsA, tagsB, tagsC, sizeA, sizeB, sizeC, tcc)
Count the number of entries of three arrays that fall within the coincidence window of eachother.
- Parameters
- tagsA: ndarray(dtype=int)
- timetags of the first channel.
- tagsB: ndarray(dtype=int)
- timetags of the second channel.
- tagsC: ndarray(dtype=int)
- timetags of the third channel.
- sizeA: int
- number of timetags in the first channel.
- sizeB: int
- number of timetags in the second channel.
- sizeC: int
- number of timetags in the third channel.
- tcc: int
- size of coincidence window, as multiple of tag precision.
- tagsA: ndarray(dtype=int)
- Returns
- coincidences: tuple
- The coinciding tags for each channel, in order.
- coincidences: tuple
Examples
>>> import tomtag as tt
>>> import numpy as np
>>> tagsA = np.array([12,679,1289,1487])
>>> tagsB = np.array([20,409,1279,1887])
>>> tagsC = np.array([2,379,1282,1427])
>>> tcc = 15
>>>
>>> cc_tagsA, cc_tagsB, cc_tagsC= tt.get_threefold_tags(tagsA, tagsB, tagsC, len(tagsA), len(tagsB), len(tagsC), tcc)