Old limit setting code for diphoton analysis