A 64-channel wide dynamic range charge measurement ASIC for strip and pixel