def extractGeom(lineList):
    """
    Function used by loadPd_q to extract the geometries.

    :lineList: line with geometries in clean format, partial charges and energies
    :return: list of geometry in format [['H',-0.5,0.0,0.0,'H',0.5,0.0,0.0], ['H',-0.3,0.0,0.0,'H',0.3,0.0,0.0]...
    """
    geomPart = lineList[1:22]
    atomLab = ["C","H","H","H","H","C","N"]
    finalGeom = []

    for i in range(len(atomLab)):
        finalGeom.append(atomLab[i])
        for j in range(3):
            finalGeom.append(float(geomPart[3*i+j]))

    return finalGeom