1. A method of processing an integrated circuit CAD database for use in testing the integrated circuit with an imaging optical detector comprising: identifying the location of at least one transistor in the integrated circuit CAD database; and processing the integrated circuit CAD database to define at least one photon detection location as a function of the location of the at least one transistor.