Пример #1
0
    ds.hists[options.hist_name].Draw('H0')
    raw_input('press <enter> to continue...')
    
if doDumpHists:
    ds.load_all_hists(infile, merge_ewk=options.merge_ewk)
    ds.processes()
    #ds.list_cat('Top')
    #ds.list_process('Wjets')

if doListHists:
    ds.load_all_hists(infile, merge_ewk=options.merge_ewk)
    ds.list(options.hist_pattern)

if doDumpVariables:
    ds.load_all_hists(infile, merge_ewk=options.merge_ewk)
    ds.variables()

if doReduce:
    ds.load_all_hists(infile, merge_ewk=options.merge_ewk)
    ds.reduce(options.reduced_filename)

if doInspectWorkspace:
    if infile == None:
        print 'No input file specified, exiting...'
        sys.exit(-1)
    if options.name == None:
        print 'No object name specified, exiting...'
        sys.exit(-1)
    from tprime_ws import *
    ws_inspect(infile, options.name)
Пример #2
0
    ds.hists[options.hist_name].Draw('H0')
    raw_input('press <enter> to continue...')

if doDumpHists:
    ds.load_all_hists(infile, merge_ewk=options.merge_ewk)
    ds.processes()
    #ds.list_cat('Top')
    #ds.list_process('Wjets')

if doListHists:
    ds.load_all_hists(infile, merge_ewk=options.merge_ewk)
    ds.list(options.hist_pattern)

if doDumpVariables:
    ds.load_all_hists(infile, merge_ewk=options.merge_ewk)
    ds.variables()

if doReduce:
    ds.load_all_hists(infile, merge_ewk=options.merge_ewk)
    ds.reduce(options.reduced_filename)

if doInspectWorkspace:
    if infile == None:
        print 'No input file specified, exiting...'
        sys.exit(-1)
    if options.name == None:
        print 'No object name specified, exiting...'
        sys.exit(-1)
    from tprime_ws import *
    ws_inspect(infile, options.name)