def GroupSelect(GroupCheckBool):
    """
    GroupSelect is a function to select the all True group in GroupCheckBool.
    If there are more than one group is all True, choose the group with more
    Trues. Or choose the first all True group if the number of True are the
    same. If there is no group is all True, return -1

    """

    groupNumber = -1
    for i,checkBool in enumerate(GroupCheckBool):
        if len(checkBool) == sum(checkBool): # check all correct
            if groupNumber == -1:
                groupNumber = i 
            elif len(checkBool) > len(GroupCheckBool[groupNumber]):
                groupNumber = i
    return groupNumber