How to acquire delay coincidences from GATE root output?

Hi there,

I have been recently trying to reconstruct images from my own GATE-simulated dataset based on the GATE listmode TOF tutorial for PET image reconstruction. However, while the data you provided in the tutorial do include the key delay for the gate.get_detector_ids_from_root function to read the delay coincidences, ROOT output of GATE simulation does not seem to have a flag that can enable delay recording (I am relatively new to GATE simulation as well). Sorry that this question may be a little irrelevant to PyTomography itself. Could anyone help with this problem?

Thanks

Hi,

For you to enable the delay recording on GATE you have to first define this parameter on the digitizer (3. Digitizer and readout parameters — GATE documentation). You use these type of commands:

/gate/digitizerMgr/name delay
/gate/digitizerMgr/insert CoincidenceSorter
/gate/digitizerMgr/CoincidenceSorter/delay/setInputCollection Singles_BGO
/gate/digitizerMgr/CoincidenceSorter/delay/setWindow 10. ns
/gate/digitizerMgr/CoincidenceSorter/delay/setOffset 500. ns

Then, on the output root you enable that data to be saved like this:

/gate/output/root/enable
/gate/output/root/setFileName YourFile
/gate/output/root/setRootHitFlag 0
/gate/output/root/setRootSinglesFlag 1
/gate/output/root/setRootCoincidencesFlag 1
/gate/output/root/setRootdelayFlag 1