CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
BuildWebpage Namespace Reference

Functions

def CheckFile
 

Variables

string captionsContents = ""
 
string cfgdump = 'cfgDump.py'
 
string cfgdumplink = 'Config/cfgDump.py'
 
list cmssw = os.environ['CMSSW_VERSION']
 
string comments = ""
 
tuple ComparisionDirectories = filter(os.path.isdir, glob.glob("ComparedTo*"))
 
string comparisonlinks = ""
 
tuple currentpath = os.path.abspath(os.getcwd())
 
tuple date = os.popen( 'date' )
 
string difftorelease = "cvs diff -r %s"
 
tuple difftoreleaselink = CheckFile('Config/diffToVanillaRelease.patch')
 
string difftotags = 'cvs diff'
 
tuple difftotagslink = CheckFile('Config/diffToTags.patch')
 
string fourImages
 
string genConfig = "fastsim (see cfgDump)"
 
 genConfigLink = cfgdumplink
 
tuple getByVar = lambdax:glob.glob(os.path.join(aDir, '*%s.png' % x))
 
tuple ifile = open( indexhtml )
 
string images = ''
 
tuple img = imgTemplate%os.path.basename(picfile)
 
string imgTemplate = '<IMG src="%s" width="500" align="left" border="0">'
 
tuple indexhtml = os.path.join(validationToolsDir, "templates", "index.html")
 
tuple indexTemplate = ifile.read()
 
tuple ofile = open( 'index.html', 'w' )
 
tuple producerName = os.path.basename(aDir)
 
 rootFile = rootFileLink
 
tuple rootFileLink = os.path.basename(rootFiles[0])
 
tuple rootFiles = glob.glob("*root")
 
tuple s = Template(indexTemplate)
 
tuple showTags = os.popen("cat %s" % CheckFile('Config/showtags.txt'))
 
tuple StepByStepPlotDirectories = filter(os.path.isdir, glob.glob("SummaryPlots/*"))
 
list StepByStepPlots = []
 
tuple subst
 
tuple title = currentpath.replace(os.path.abspath(validationTestDir), '')
 
list validationTestDir = os.environ['VALTEST']
 
list validationToolsDir = os.environ['VALTOOLS']
 

Function Documentation

def BuildWebpage.CheckFile (   myFile)

Definition at line 11 of file BuildWebpage.py.

11 
12 def CheckFile(myFile):
13  if not os.path.isfile(myFile):
14  raise IOError, "Error! Can't stat %s!" % myFile
15  else:
16  return myFile
17 
18 # Get our path relative to the Validation/RecoTau/test directory
#title = os.path.relpath(os.cwd(), validationTestDir) python > 2.6

Variable Documentation

string BuildWebpage.captionsContents = ""

Definition at line 90 of file BuildWebpage.py.

string BuildWebpage.cfgdump = 'cfgDump.py'

Definition at line 39 of file BuildWebpage.py.

string BuildWebpage.cfgdumplink = 'Config/cfgDump.py'

Definition at line 38 of file BuildWebpage.py.

list BuildWebpage.cmssw = os.environ['CMSSW_VERSION']

Definition at line 23 of file BuildWebpage.py.

string BuildWebpage.comments = ""

Definition at line 102 of file BuildWebpage.py.

tuple BuildWebpage.ComparisionDirectories = filter(os.path.isdir, glob.glob("ComparedTo*"))

Definition at line 104 of file BuildWebpage.py.

string BuildWebpage.comparisonlinks = ""

Definition at line 105 of file BuildWebpage.py.

tuple BuildWebpage.currentpath = os.path.abspath(os.getcwd())

Definition at line 19 of file BuildWebpage.py.

tuple BuildWebpage.date = os.popen( 'date' )

Definition at line 26 of file BuildWebpage.py.

Referenced by RPCFw.createIDMAP(), Utils.date(), Utils.Date(), pftools::Utils.Date(), pos::PixelTimeFormatter.getTime(), CSCTFConfigOnlineProd.newObject(), HcalLogicalMap.printMap(), EcalSelectiveReadoutProducer.printSrFlags(), RunSummaryRead.readData(), L1TriggerScalerRead.readData(), SiStripDetVOffBuilder.readLastValueFromFile(), stor::utils.secondsSinceEpoch(), HCAL_HLX::ROOTFileBase.SetDate(), writeABIOFileHeader(), writeABSRFFileHeader(), and writeABTTFFileHeader().

string BuildWebpage.difftorelease = "cvs diff -r %s"

Definition at line 33 of file BuildWebpage.py.

tuple BuildWebpage.difftoreleaselink = CheckFile('Config/diffToVanillaRelease.patch')

Definition at line 32 of file BuildWebpage.py.

string BuildWebpage.difftotags = 'cvs diff'

Definition at line 36 of file BuildWebpage.py.

tuple BuildWebpage.difftotagslink = CheckFile('Config/diffToTags.patch')

Definition at line 35 of file BuildWebpage.py.

string BuildWebpage.fourImages
Initial value:
1 = '<table style="text-align: left; " border="1" cellpadding="2" cellspacing="0">\n\
2  <tbody>\n\
3  <tr>\n\
4  <td style="width: 350px;"><IMG src="%s" width="350" align="left" border="0"></td>\
5  <td style="width: 350px;"><IMG src="%s" width="350" align="left" border="0"></td>\
6  <td style="width: 350px;"><IMG src="%s" width="350" align="left" border="0"></td>\
7  <td style="width: 350px;"><IMG src="%s" width="350" align="left" border="0"></td>\
8  </tr></tbody></table>\n\
9  '

Definition at line 67 of file BuildWebpage.py.

string BuildWebpage.genConfig = "fastsim (see cfgDump)"

Definition at line 48 of file BuildWebpage.py.

string BuildWebpage.genConfigLink = cfgdumplink

Definition at line 47 of file BuildWebpage.py.

tuple BuildWebpage.getByVar = lambdax:glob.glob(os.path.join(aDir, '*%s.png' % x))

Definition at line 86 of file BuildWebpage.py.

tuple BuildWebpage.ifile = open( indexhtml )

Definition at line 113 of file BuildWebpage.py.

string BuildWebpage.images = ''

Definition at line 77 of file BuildWebpage.py.

tuple BuildWebpage.img = imgTemplate%os.path.basename(picfile)

Definition at line 94 of file BuildWebpage.py.

Referenced by SiPixelTrackerMapCreator.create(), and evf::WebGUI.htmlHeadline().

string BuildWebpage.imgTemplate = '<IMG src="%s" width="500" align="left" border="0">'

Definition at line 66 of file BuildWebpage.py.

tuple BuildWebpage.indexhtml = os.path.join(validationToolsDir, "templates", "index.html")

Definition at line 9 of file BuildWebpage.py.

tuple BuildWebpage.indexTemplate = ifile.read()

Definition at line 114 of file BuildWebpage.py.

tuple BuildWebpage.ofile = open( 'index.html', 'w' )

Definition at line 136 of file BuildWebpage.py.

tuple BuildWebpage.producerName = os.path.basename(aDir)

Definition at line 83 of file BuildWebpage.py.

BuildWebpage.rootFile = rootFileLink

Definition at line 63 of file BuildWebpage.py.

Referenced by HcalIsoTrkAnalyzer.beginJob(), DTOccupancyTest.DTOccupancyTest(), DTOccupancyTest.endJob(), HcalIsoTrkAnalyzer.endJob(), popcon::DQMReferenceHistogramRootFileSourceHandler.getNewObjects(), EcalPedOffset.makePlots(), SiStripCommissioningOfflineClient.setInputFiles(), and SiPixelRawToDigi.~SiPixelRawToDigi().

tuple BuildWebpage.rootFileLink = os.path.basename(rootFiles[0])

Definition at line 62 of file BuildWebpage.py.

tuple BuildWebpage.rootFiles = glob.glob("*root")

Definition at line 57 of file BuildWebpage.py.

tuple BuildWebpage.s = Template(indexTemplate)

Definition at line 116 of file BuildWebpage.py.

tuple BuildWebpage.showTags = os.popen("cat %s" % CheckFile('Config/showtags.txt'))

Definition at line 29 of file BuildWebpage.py.

tuple BuildWebpage.StepByStepPlotDirectories = filter(os.path.isdir, glob.glob("SummaryPlots/*"))

Definition at line 80 of file BuildWebpage.py.

list BuildWebpage.StepByStepPlots = []

Definition at line 81 of file BuildWebpage.py.

tuple BuildWebpage.subst
Initial value:
1 = s.substitute(title = title,
2  difftotagslink=difftotagslink,
3  difftotags=difftotags,
4  difftoreleaselink=difftoreleaselink,
5  difftorelease=difftorelease,
6  cfgdumplink=cfgdumplink,
7  cfgdump=cfgdump,
8  comparisonlinks=comparisonlinks,
9  genConfig = os.path.basename(genConfig),
10  genConfigLink = genConfigLink,
11  rootFile = os.path.basename(rootFile),
12  rootFileLink = rootFileLink,
13  comments = comments,
14  cmssw = cmssw,
15  showTags = showTags,
16  images = images,
17  username = os.environ['USER'],
18  date = date
19  )

Definition at line 117 of file BuildWebpage.py.

tuple BuildWebpage.title = currentpath.replace(os.path.abspath(validationTestDir), '')

Definition at line 20 of file BuildWebpage.py.

list BuildWebpage.validationTestDir = os.environ['VALTEST']

Definition at line 7 of file BuildWebpage.py.

list BuildWebpage.validationToolsDir = os.environ['VALTOOLS']

Definition at line 6 of file BuildWebpage.py.