action='store_true',
                      default=False)
    parser.add_option("-n",
                      "--dry-run",
                      dest="dryRun",
                      help="do not make shapes",
                      default=False,
                      action="store_true")
    parser.add_option("-W",
                      "--iihe-wall-time",
                      dest="IiheWallTime",
                      help="Requested IIHE queue Wall Time",
                      default='168:00:00')

    # read default parsing options as well
    hwwtools.addOptions(parser)
    hwwtools.loadOptDefaults(parser)
    (opt, args) = parser.parse_args()

    sys.argv.append('-b')
    ROOT.gROOT.SetBatch()

    print " configuration file = ", opt.pycfg
    print " treeName           = ", opt.treeName
    print " lumi =               ", opt.lumi

    print " inputDir =           ", opt.inputDir
    print " outputDir =          ", opt.outputDir

    print "batchSplit: ", opt.batchSplit
                                                                                
--------------------------------------------------------------------------------------------------
'''

    usage = 'usage: %prog [options]'
    parser = optparse.OptionParser(usage)

    parser.add_option('--tag'            , dest='tag'            , help='Tag used for the shape file name'           , default=None)
    parser.add_option('--inputFile'      , dest='inputFile'      , help='input file with histograms'                 , default='DEFAULT')
    parser.add_option('--outputDirDatacard'  , dest='outputDirDatacard' , help='output directory'                           , default='./')
    parser.add_option('--accfg'          , dest='accfg'          , help='AC coupling dictionary' , default='acoupling.py' , type='string' )
    parser.add_option('--cutList'        , dest='cutList'        , help='cut list to process' , default=[], type='string' , action='callback' , callback=list_maker('cutList',','))
    parser.add_option('--varList'        , dest='varList'        , help='var list to process' , default=[], type='string' , action='callback' , callback=list_maker('varList',','))

    # read default parsing options as well
    hwwtools.addOptions(parser)
    hwwtools.loadOptDefaults(parser)
    (opt, args) = parser.parse_args()

    print " outputDirDatacard  = ", opt.outputDirDatacard
    print " AC config          = ", opt.accfg
    print " Cuts               = ", opt.cutList 
    print " Variables          = ", opt.varList 


    # Set Input file
    print " inputFile      =          ", opt.inputFile


    # Create Needed dictionnary