parameters: ( objects, masks, deltaRMin )
return_statement: return cleanObjects, dirtyObjects
docstring: Masks objects using a deltaR cut.
docstring_summary: Masks objects using a deltaR cut.
docstring_tokens: Masks objects using a deltaR cut .
function: def cleanObjectCollection( objects, masks, deltaRMin ):
      '''Masks objects using a deltaR cut.'''
      if len(objects)==0 or len(masks)==0:
          return objects, []
      deltaR2Min = deltaRMin*deltaRMin
      cleanObjects = []
      dirtyObjects = []
      for object in objects:
          ok = True 
          for mask in masks:
              dR2 = deltaR2( object.eta(), object.phi(),
                             mask.eta(), mask.phi() )
              if dR2 < deltaR2Min:
                  ok = False
          if ok:
              cleanObjects.append( object )
          else:
              dirtyObjects.append( object )
      return cleanObjects, dirtyObjects
function_tokens: def cleanObjectCollection ( objects , masks , deltaRMin ) : if len ( objects ) == 0 or len ( masks ) == 0 : return objects , [ ] deltaR2Min = deltaRMin * deltaRMin cleanObjects = [ ] dirtyObjects = [ ] for object in objects : ok = True for mask in masks : dR2 = deltaR2 ( object . eta ( ) , object . phi ( ) , mask . eta ( ) , mask . phi ( ) ) if dR2 < deltaR2Min : ok = False if ok : cleanObjects . append ( object ) else : dirtyObjects . append ( object ) return cleanObjects , dirtyObjects