sList = {}
   nSources, sList = ConfigUtils.getFileList( options.inList )

   # Read in the histogram list
   Histos = {}
   tree, Histos = ConfigUtils.getHistoNames( options.histoList )

   # Create the output directory
   createDir()
   # Copy the input file list to the output directory
   os.system('cp %s %s' % ( options.inList, options.outDir ) )

   # Read in the selection criteria
   Selection = {}
   if options.selectionList:
      Selection = ConfigUtils.getSelection( options.selctionList )

   # Create a text file in the output directory to record the selection criteria
   writeSelection( options.outDir, Selection )

   hConfig = {}
   hDict = {}

   for histo in Histos.keys():
      hConfig[histo] = ConfigUtils.getPlotConfig( Histos[histo] )

   for src in sList.keys():
      fname = sList[src]['File']
      print 'Open %s...' % fname
      t = AccessROOTUtils.getTree( fname, tree )
      srcName = sList[src]['LegendName'].replace( ' ', '')