def getClassfromFileName(fname):
    """
    Get a class name from the filename. Assume that the filename 
    is formed from the classname + EvHist.csv, strip any directory
    names and then return the class preface in what is left.
    """
    if '/' in fname:
        fileName = fname[fname.rindex('/')+1:]
    else:
        fileName = fname
    return fileName[ : fileName.rindex('EvHist')]