parameters: (workspace, radius, xcentre, ycentre, algebra)
docstring: Mask a cylinder on the input workspace.
docstring_summary: Mask a cylinder on the input workspace.
docstring_tokens: Mask a cylinder on the input workspace .
function: def MaskWithCylinder(workspace, radius, xcentre, ycentre, algebra):
      '''Mask a cylinder on the input workspace.'''
      xmldef = InfiniteCylinderXML('shape', [xcentre, ycentre, 0.0], radius, [0,0,1])
      xmldef += '<algebra val="' + algebra + 'shape" />'
      # Apply masking
      MaskDetectorsInShape(Workspace=workspace,ShapeXML=xmldef)
function_tokens: def MaskWithCylinder ( workspace , radius , xcentre , ycentre , algebra ) : xmldef = InfiniteCylinderXML ( 'shape' , [ xcentre , ycentre , 0.0 ] , radius , [ 0 , 0 , 1 ] ) xmldef += '<algebra val="' + algebra + 'shape" />' # Apply masking MaskDetectorsInShape ( Workspace = workspace , ShapeXML = xmldef )