CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/Validation/RecoParticleFlow/Benchmarks/Tools/listBenchmarks.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 
00004 import shutil, sys, valtools
00005 
00006 from optparse import OptionParser 
00007 
00008 
00009 parser = OptionParser()
00010 parser.usage = "usage: %prog pattern"
00011 parser.add_option("-a", "--afs", dest="afs",
00012                   action="store_true",
00013                   help="print afs folder",
00014                   default=False)
00015 parser.add_option("-u", "--url", dest="url",
00016                   action="store_true",
00017                   help="print url",
00018                   default=False)
00019 
00020 (options,args) = parser.parse_args()
00021  
00022 if len(args)!=1:
00023     parser.print_help()
00024     sys.exit(1)
00025 
00026 pattern = args[0]
00027 website = valtools.website()
00028 
00029 website.listBenchmarks( pattern, options.afs, options.url)
00030