CMS 3D CMS Logo

Functions | Variables

indexGenCompare Namespace Reference

Functions

def processBenchmark

Variables

string action = "store_true"
tuple benchmark1
tuple benchmark1Link = benchmark1.benchmarkUrl( website )
tuple benchmark1Name = benchmark1.fullName()
tuple benchmark2
tuple benchmark2Link = benchmark2.benchmarkUrl( website )
tuple benchmark2Name = benchmark2.fullName()
 comments = webpage.options_.comments
tuple comparison = valtools.comparison( benchmark1, webpage.outputDir_)
 default = False)
string help = "specify the ROOT macro to be used for comparison. If empty, skip the plotting stage"
tuple ifile = open( indexhtml )
tuple images = webpage.readCaptions('c_captions.txt')
string indexhtml = "%s/%s"
tuple indexTemplate = ifile.read()
string infonotfoundhtml = "%s/%s"
tuple infoNotFoundTemplate = ifile.read()
 macro = webpage.options_.macro
tuple macroLink = valtools.processFile( macro, webpage.outputDir_ )
tuple macroName = os.path.basename(macro)
tuple ofile = open( '%s/index.html' % webpage.outputDir_, 'w' )
tuple ofile2 = open( '%s/infoNotFound.html' % webpage.outputDir_, 'w' )
tuple remoteName = benchmark1.benchmarkOnWebSite(website)
tuple s = Template(indexTemplate)
tuple s2 = Template(infoNotFoundTemplate)
tuple subst
tuple subst2 = s2.substitute( username = os.environ['USER'] )
string templateFile = 'indexCompare.html'
 title = webpage.benchmarkName_
list username = os.environ['USER']
tuple webpage = valtools.webpage()
tuple website = valtools.website()

Function Documentation

def indexGenCompare::processBenchmark (   path,
  outputRootFile 
)

Definition at line 12 of file indexGenCompare.py.

00013                                             :
00014     (release, bname, extension ) = valtools.decodePath( path )
00015     if bname != webpage.benchmarkName_:
00016         print "sorry, you have to go to the",bname,"directory to produce this comparison. Note that you cannot compare different benchmarks."
00017         sys.exit(4)
00018     benchmark = valtools.benchmark( extension )
00019     benchmark.release_ = release
00020     print benchmark.benchmarkUrl( website ) 
00021     root = benchmark.rootFileOnWebSite( website )
00022     shutil.copy(root, outputRootFile)
00023     print 'retrieved ', root
00024     return benchmark
00025     


Variable Documentation

string indexGenCompare::action = "store_true"

Definition at line 31 of file indexGenCompare.py.

Initial value:
00001 processBenchmark( webpage.args_[0],
00002                                'benchmark_0.root' )

Definition at line 53 of file indexGenCompare.py.

tuple indexGenCompare::benchmark1Link = benchmark1.benchmarkUrl( website )

Definition at line 74 of file indexGenCompare.py.

tuple indexGenCompare::benchmark1Name = benchmark1.fullName()

Definition at line 75 of file indexGenCompare.py.

Initial value:
00001 processBenchmark( webpage.args_[1],
00002                                'benchmark_1.root' )

Definition at line 56 of file indexGenCompare.py.

tuple indexGenCompare::benchmark2Link = benchmark2.benchmarkUrl( website )

Definition at line 77 of file indexGenCompare.py.

tuple indexGenCompare::benchmark2Name = benchmark2.fullName()

Definition at line 78 of file indexGenCompare.py.

indexGenCompare::comments = webpage.options_.comments

Definition at line 83 of file indexGenCompare.py.

Definition at line 120 of file indexGenCompare.py.

Definition at line 33 of file indexGenCompare.py.

string indexGenCompare::help = "specify the ROOT macro to be used for comparison. If empty, skip the plotting stage"

Definition at line 29 of file indexGenCompare.py.

Definition at line 86 of file indexGenCompare.py.

tuple indexGenCompare::images = webpage.readCaptions('c_captions.txt')

Definition at line 70 of file indexGenCompare.py.

string indexGenCompare::indexhtml = "%s/%s"

Definition at line 49 of file indexGenCompare.py.

tuple indexGenCompare::indexTemplate = ifile.read()

Definition at line 87 of file indexGenCompare.py.

Definition at line 67 of file indexGenCompare.py.

Definition at line 106 of file indexGenCompare.py.

indexGenCompare::macro = webpage.options_.macro

Definition at line 47 of file indexGenCompare.py.

tuple indexGenCompare::macroLink = valtools.processFile( macro, webpage.outputDir_ )

Definition at line 80 of file indexGenCompare.py.

tuple indexGenCompare::macroName = os.path.basename(macro)

Definition at line 81 of file indexGenCompare.py.

tuple indexGenCompare::ofile = open( '%s/index.html' % webpage.outputDir_, 'w' )

Definition at line 101 of file indexGenCompare.py.

tuple indexGenCompare::ofile2 = open( '%s/infoNotFound.html' % webpage.outputDir_, 'w' )

Definition at line 109 of file indexGenCompare.py.

tuple indexGenCompare::remoteName = benchmark1.benchmarkOnWebSite(website)

Definition at line 119 of file indexGenCompare.py.

tuple indexGenCompare::s = Template(indexTemplate)

Definition at line 88 of file indexGenCompare.py.

Definition at line 107 of file indexGenCompare.py.

Initial value:
00001 s.substitute(title = title,
00002                      benchmark1Link = benchmark1Link,
00003                      benchmark1Name = benchmark1Name,
00004                      benchmark2Link = benchmark2Link,
00005                      benchmark2Name = benchmark2Name,
00006                      macroLink = macroLink,
00007                      macroName = macroName, 
00008                      comments = comments,
00009                      images = images, 
00010                      username = username,
00011                      date = webpage.date_
00012                      )

Definition at line 89 of file indexGenCompare.py.

tuple indexGenCompare::subst2 = s2.substitute( username = os.environ['USER'] )

Definition at line 108 of file indexGenCompare.py.

string indexGenCompare::templateFile = 'indexCompare.html'

Definition at line 48 of file indexGenCompare.py.

indexGenCompare::title = webpage.benchmarkName_

Definition at line 72 of file indexGenCompare.py.

list indexGenCompare::username = os.environ['USER']

Definition at line 26 of file indexGenCompare.py.

Definition at line 45 of file indexGenCompare.py.