We consider a Cramér-Lundberg insurance risk process with the added feature of reinsurance. If an arriving claim finds the reserve below a certain threshold ¿, or if it would bring the reserve below that level, then a reinsurer pays part of the claim. Using fluctuation theory and the theory of scale functions of spectrally negative Lévy processes, we derive expressions for the Laplace transform of the time to ruin and of the joint distribution of the deficit at ruin and the surplus before ruin. We specify these results in much more detail for the threshold set-up with proportional reinsurance