<div dir="ltr">Hi all,<div><br></div><div>I am hoping to decrease the time of my SPECT simulations by using ARF Tables, as suggested in the GATE documentation. This takes three steps: 1) generate the ARF data, 2) calculate the ARF tables, and 3) use the ARF tables. The output of each step is used in the following step from its location in the output folder. </div><div>When I run a quick test (activity set to 1MBq), step one and two seem to work ok, with the final output for step two being:</div><div><br>Total Number of Binned Photons (not necessarily detected in the energy window chosen) 139<br>[Core-0] End of macro mac/ARFTable_Calculate.mac<br> ----------------------------------------------------------------------------------------------<br> Writing ARF Table systems/SPECTheadARFTable_0 to file output/ARFSPECTBench.bin at position 17...[OK] : 8388672 bytes<br> All ARF tables have been saved to binary file<br> output/ARFSPECTBench.binGraphics systems deleted.<br>Visualization Manager deleting...<br></div><div><br></div><div>This all looks fine to me. The problem is that at the start of step three, the summary of what is in the ARF Table states:</div><div>Total Number of Binned Photons (not necessarily detected in the energy window chosen) 0<br></div><div><br></div><div>Where did the 139 photons from the end of step 2 go? I have checked, and the name of the file that is being saved at the end of step 2 is definitely the file being called in step 3. I have also tried playing with various parameters in the files but none of them change the number of binned photons being read in step 3. Does anyone have any experience with the ARF technique, and are able to shed some light on what might be the problem?</div><div><br></div><div>I have included a summary of key lines of code below, if it is of interest.</div><div>Cheers,</div><div>Miriam</div><div><br></div><div>Step 2:<br># Geometry SPECT<br>/control/execute mac/spect_head.mac<br>/gate/SPECThead/placement/setRotationAxis 0 1 0<br>/gate/SPECThead/placement/setRotationAngle 90 deg<br><br>/gate/systems/SPECThead/arf/setARFStage computeTables<br><br>/control/execute mac/spect_collimator_lehr.mac<br></div><div># ARF Digitizer<br>/gate/systems/SPECThead/ARFTables/setEnergyDepositionThreshHold 3. keV<br>/gate/systems/SPECThead/ARFTables/setEnergyDepositionUpHold 200 keV<br>/gate/systems/SPECThead/ARFTables/setEnergyResolution 0.1<br>/gate/systems/SPECThead/ARFTables/setEnergyOfReference 140. keV<br></div><div>/gate/systems/SPECThead/ARFTables/setDistanceFromSourceToDetector 47.8 cm<br><br>#<br># NOW WE ARE  READY TO COMPUTE THE ARF TABLES<br>#<br>/gate/systems/SPECThead/ARFTables/ComputeTablesFromEnergyWindows mac/ARFData.txt<br>/gate/systems/SPECThead/ARFTables/list<br> # SAVE ARF TABLES TO A BINARY FILE FOR PRODUCTION USE<br>/gate/systems/SPECThead/ARFTables/saveARFTablesToBinaryFile output/ARFSPECTBench.bin<br></div><div><br></div><div>Step 3:</div><div># Geometry SPECT<br></div><div>/control/execute mac/spect_head.mac<br>/gate/SPECThead/placement/setRotationAxis 0 1 0<br>/gate/SPECThead/placement/setRotationAngle 90 deg<br><br>/gate/systems/SPECThead/arf/setARFStage useTables<br><br>/control/execute mac/spect_collimator_lehr.mac<br>/control/execute mac/spect_digitizer_Tc99m.mac<br></div><div>/gate/systems/SPECThead/setProjectionPlane 7.8 cm<br>/gate/systems/SPECThead/attachToARFSD<br>/gate/systems/SPECThead/ARFTables/loadARFTablesFromBinaryFile output/ARFSPECTBench.bin</div><div><br></div><div>#Phantom, Physics, Initialize, Source, Random and Run follow, set up as I normally have them</div><div><br></div></div>