A new method of determining the compton edge in liquid scintillators