Optical detection theory for laser applications