Investigation of the sub-pixel spatial resolution and charge-sharing effect in CZT detectors for PET imaging