parameters: (component)
docstring: Recursive function that get a generator for all IDs for a component.
      Component must be one of these:
      'CompAssembly'
      'ObjCompAssembly'
      'DetectorComponent'
docstring_summary: Recursive function that get a generator for all IDs for a component.
      Component must be one of these:
      'CompAssembly'
      'ObjCompAssembly'
      'DetectorComponent'
docstring_tokens: Recursive function that get a generator for all IDs for a component . Component must be one of these : CompAssembly ObjCompAssembly DetectorComponent
function: def _get_ids_for_assembly(component):
      '''
      Recursive function that get a generator for all IDs for a component.
      Component must be one of these:
      'CompAssembly'
      'ObjCompAssembly'
      'DetectorComponent'
      '''
      if component.type() == 'DetectorComponent':
          yield component.getID()
      else:
          for i in range(component.nelements()):
              for j in _get_ids_for_assembly(component[i]):
                  yield j
function_tokens: def _get_ids_for_assembly ( component ) : if component . type ( ) == 'DetectorComponent' : yield component . getID ( ) else : for i in range ( component . nelements ( ) ) : for j in _get_ids_for_assembly ( component [ i ] ) : yield j