JIrange : range in rows, colums of detector concerned by this grain
"""
assert((transformationCentreMMisNone)==(transformationMatrixisNone)),"projectSphere.singleSphereToDetectorPixelRange(): transformationCentreMM and transformationMatrix must both be set or unset"