Per NFPA 13, the standard for installation of automatic fire sprinkler systems, in unobstructed construction, the minimum deflector distance from the ceiling is 1" and the maximum is 12". With obstructed construction, you can be 1-6" below the bottom of the beams to a maximum of 22".
I hope that helps to answer your question.