A modeling tool for detector resolution and incomplete charge collection