Beispiel #1
0
simConfig = webpage.options_.pySim
benchmarkConfig = 'benchmark_cfg.py'

# information about CMSSW
cmssw = os.environ['CMSSW_VERSION']
showTags = os.popen( 'showtags -t -r -u').read()

title = webpage.benchmarkName_

templateFile = 'index.html'

outputDir = webpage.outputDir_
indexhtml = "%s/%s" % (webpage.templates_,templateFile)


valtools.testFileType(genConfig, ".py")
valtools.testFileType(simConfig, ".py")
valtools.testFileType(benchmarkConfig, ".py")
valtools.testFileType(macro, ".C")

valtools.testFileType(indexhtml, ".html")
infonotfoundhtml = "%s/%s" % (webpage.templates_,"infoNotFound.html")
valtools.testFileType(infonotfoundhtml, ".html")


recipeLink = valtools.processFile( recipe, webpage.outputDir_ )
genConfigLink = valtools.processFile(genConfig, webpage.outputDir_  )
simConfigLink = valtools.processFile( simConfig, webpage.outputDir_ )
benchmarkConfigLink = valtools.processFile( benchmarkConfig,
                                            webpage.outputDir_ )
macroLink = valtools.processFile(macro, webpage.outputDir_  )
Beispiel #2
0
# setting up benchmarks
print 
benchmark1 = processBenchmark( webpage.args_[0],
                               'benchmark_0.root' )
print
benchmark2 = processBenchmark( webpage.args_[1],
                               'benchmark_1.root' )


webpage.setOutputDir(benchmark2.fullName())

# do the plots
if webpage.options_.macro != "":
    os.system('root -b ' + macro)

valtools.testFileType(indexhtml, ".html")
infonotfoundhtml = "%s/%s" % (webpage.templates_,"infoNotFound.html")
valtools.testFileType(infonotfoundhtml, ".html")

images = webpage.readCaptions('c_captions.txt')

title = webpage.benchmarkName_

benchmark1Link = benchmark1.benchmarkUrl( website )
benchmark1Name = benchmark1.fullName()

benchmark2Link = benchmark2.benchmarkUrl( website )
benchmark2Name = benchmark2.fullName()

macroLink = valtools.processFile( macro, webpage.outputDir_  )
macroName = os.path.basename(macro)
templateFile = 'indexCompare.html'
indexhtml = "%s/%s" % (webpage.templates_, templateFile)

# setting up benchmarks
print()
benchmark1 = processBenchmark(webpage.args_[0], 'benchmark_0.root')
print()
benchmark2 = processBenchmark(webpage.args_[1], 'benchmark_1.root')

webpage.setOutputDir(benchmark2.fullName())

# do the plots
if webpage.options_.macro != "":
    os.system('root -b ' + macro)

valtools.testFileType(indexhtml, ".html")
infonotfoundhtml = "%s/%s" % (webpage.templates_, "infoNotFound.html")
valtools.testFileType(infonotfoundhtml, ".html")

images = webpage.readCaptions('c_captions.txt')

title = webpage.benchmarkName_

benchmark1Link = benchmark1.benchmarkUrl(website)
benchmark1Name = benchmark1.fullName()

benchmark2Link = benchmark2.benchmarkUrl(website)
benchmark2Name = benchmark2.fullName()

macroLink = valtools.processFile(macro, webpage.outputDir_)
macroName = os.path.basename(macro)
Beispiel #4
0
genConfig = webpage.options_.pyGenSource
simConfig = webpage.options_.pySim
benchmarkConfig = 'benchmark_cfg.py'

# information about CMSSW
cmssw = os.environ['CMSSW_VERSION']
showTags = os.popen('showtags -t -r -u').read()

title = webpage.benchmarkName_

templateFile = 'index.html'

outputDir = webpage.outputDir_
indexhtml = "%s/%s" % (webpage.templates_, templateFile)

valtools.testFileType(genConfig, ".py")
valtools.testFileType(simConfig, ".py")
valtools.testFileType(benchmarkConfig, ".py")
valtools.testFileType(macro, ".C")

valtools.testFileType(indexhtml, ".html")
infonotfoundhtml = "%s/%s" % (webpage.templates_, "infoNotFound.html")
valtools.testFileType(infonotfoundhtml, ".html")

recipeLink = valtools.processFile(recipe, webpage.outputDir_)
genConfigLink = valtools.processFile(genConfig, webpage.outputDir_)
simConfigLink = valtools.processFile(simConfig, webpage.outputDir_)
benchmarkConfigLink = valtools.processFile(benchmarkConfig, webpage.outputDir_)
macroLink = valtools.processFile(macro, webpage.outputDir_)
rootFileLink = valtools.processFile(webpage.rootFile_, webpage.outputDir_)