adapt generateCMDmappingCondor.pl script to research