parameters: (self, new_difc, det, ws)
return_statement: return new_pos, new_L2
docstring: Returns a detector position which corresponds to the newDifc value.
  
          The two_theta and phi of the detector are preserved, L2 is changed.
docstring_summary: Returns a detector position which corresponds to the newDifc value.
docstring_tokens: Returns a detector position which corresponds to the newDifc value .
function: def _get_calibrated_det_pos(self, new_difc, det, ws):
          """
          Returns a detector position which corresponds to the newDifc value.
  
          The two_theta and phi of the detector are preserved, L2 is changed.
          """
          # This is how det_L2 would be calculated
          # det_L2 = det.getDistance(ws.getInstrument().getSample())
          det_two_theta = ws.detectorTwoTheta(det)
          det_phi = det.getPhi()
  
          new_L2 = (new_difc / (252.816 * 2 * math.sin(det_two_theta / 2.0))) - 50
  
          new_pos = self._V3D_from_spherical(new_L2, det_two_theta, det_phi)
  
          return new_pos, new_L2
function_tokens: def _get_calibrated_det_pos ( self , new_difc , det , ws ) : # This is how det_L2 would be calculated # det_L2 = det.getDistance(ws.getInstrument().getSample()) det_two_theta = ws . detectorTwoTheta ( det ) det_phi = det . getPhi ( ) new_L2 = ( new_difc / ( 252.816 * 2 * math . sin ( det_two_theta / 2.0 ) ) ) - 50 new_pos = self . _V3D_from_spherical ( new_L2 , det_two_theta , det_phi ) return new_pos , new_L2