CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

References valtools.decodePath().

12 
13 def processBenchmark( path, outputRootFile ):
14  (release, bname, extension ) = valtools.decodePath( path )
15  if bname != webpage.benchmarkName_:
16  print "sorry, you have to go to the",bname,"directory to produce this comparison. Note that you cannot compare different benchmarks."
17  sys.exit(4)
18  benchmark = valtools.benchmark( extension )
19  benchmark.release_ = release
20  print benchmark.benchmarkUrl( website )
21  root = benchmark.rootFileOnWebSite( website )
22  shutil.copy(root, outputRootFile)
23  print 'retrieved ', root
24  return benchmark
25 
def decodePath
Definition: valtools.py:274

Variable Documentation

string indexGenCompare.action = "store_true"

Definition at line 31 of file indexGenCompare.py.

tuple indexGenCompare.benchmark1
Initial value:
1 = processBenchmark( webpage.args_[0],
2  '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.

tuple indexGenCompare.benchmark2
Initial value:
1 = processBenchmark( webpage.args_[1],
2  '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.

tuple indexGenCompare.comparison = valtools.comparison( benchmark1, webpage.outputDir_)

Definition at line 120 of file indexGenCompare.py.

indexGenCompare.default = False)

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.

tuple indexGenCompare.ifile = open( indexhtml )

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.

string indexGenCompare.infonotfoundhtml = "%s/%s"

Definition at line 67 of file indexGenCompare.py.

tuple indexGenCompare.infoNotFoundTemplate = ifile.read()

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.

tuple indexGenCompare.s2 = Template(infoNotFoundTemplate)

Definition at line 107 of file indexGenCompare.py.

tuple indexGenCompare.subst
Initial value:
1 = s.substitute(title = title,
2  benchmark1Link = benchmark1Link,
3  benchmark1Name = benchmark1Name,
4  benchmark2Link = benchmark2Link,
5  benchmark2Name = benchmark2Name,
6  macroLink = macroLink,
7  macroName = macroName,
8  comments = comments,
9  images = images,
10  username = username,
11  date = webpage.date_
12  )

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 84 of file indexGenCompare.py.

Referenced by HcalChannelDataXml.add_dataset(), ConnectionManager.connect(), and HcalChannelDataXml.init_data().

tuple indexGenCompare.webpage = valtools.webpage()

Definition at line 26 of file indexGenCompare.py.

tuple indexGenCompare.website = valtools.website()

Definition at line 45 of file indexGenCompare.py.