A novel high dynamic range X-ray detector for synchrotron radiation studies