test
CMS 3D CMS Logo

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

Classes

class  HTMLExport
 
class  HTMLExportStatic
 

Functions

def elem
 
def get_jquery
 

Variables

string CMSLOGO = "http://cms.cern.ch/iCMS/imgs/icms/CMSheader_left.gif"
 
 CSS_TEMPLATE = \
 
string CVS = "http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/"
 
string JQUERY = "http://code.jquery.com/jquery-1.6.2.min.js"
 
 JS_TEMPLATE = \
 
string LXR = "http://cmslxr.fnal.gov/lxr/ident?"
 
 PAGE_TEMPLATE = \
 

Function Documentation

def HTMLExport.elem (   elemtype,
  innerHTML = '',
  html_class = '',
  kwargs 
)

Definition at line 18 of file HTMLExport.py.

References join().

Referenced by SiStripGainFromCalibTree.algoBeginJob(), HistoAnalyzer< C >.analyze(), BeamProfileVtxGenerator.BeamProfileVtxGenerator(), DDHtmlMaDetails.details(), lhef::LHEReader::XMLHandler.endElement(), edm::FileRandomKEThetaGunProducer.FileRandomKEThetaGunProducer(), AlCaElectronsTest.fillAroundBarrel(), DQMSourceEleCalib.fillAroundBarrel(), AlCaElectronsTest.fillAroundEndcap(), DQMSourceEleCalib.fillAroundEndcap(), PhysicsTools::MVATrainer.fillInputVars(), PhysicsTools::MVATrainer.fillOutputVars(), get_jquery(), PFBlockBasedIsolation.getHighestEtECALCluster(), ora::OraMappingSchema.getMapping(), ora::PoolMappingSchema.getMapping(), AlCaElectronsTest.getMaximum(), PhysicsTools::LeastSquares.load(), PhysicsTools::MVATrainer.makeProcessor(), PhysicsTools::MVATrainer.MVATrainer(), PFBlockLink.neighbour(), CSCRecoConditions.noiseMatrix(), TrkCalIsolationAlgo< T1, C2 >.operator()(), CalIsolationAlgoNoExp< T1, C2 >.operator()(), PtIsolationAlgo< T, C >.operator()(), CalIsolationAlgo< T1, C2 >.operator()(), SummaryPlotXmlParser.parseXML(), NtpProducer< C >.produce(), HTMLExport.HTMLExportStatic.produce(), SiStripRegionConnectivity.produceRegionCabling(), l1t::XmlConfigReader.readContext(), l1t::XmlConfigReader.readContexts(), l1t::XmlConfigReader.readHwDescription(), ora.rebuildPoolMapping(), TopologyWorker.setPartList(), SiStripConfObject::get< std::vector< int > >(), SiStripConfObject::get< std::vector< std::string > >(), SiStripConfObject::put< std::vector< int > >(), SiStripConfObject::put< std::vector< std::string > >(), SiStripConfObject::update< std::vector< int > >(), SiStripConfObject::update< std::vector< std::string > >(), lhef::LHEReader::XMLHandler.startElement(), EwkMuLumiMonitorDQM.tkIso(), and ora::MappingDatabase.unfoldElement().

18 
19 def elem(elemtype, innerHTML='', html_class='', **kwargs):
20  if html_class: #since 'class' cannot be used as a kwarg
21  kwargs['class'] = html_class
22  args = ' '.join(['%s="%s"' % i for i in kwargs.items()])
23  if args:
24  return "<%s %s>%s</%s>\n" % (elemtype, args, innerHTML, elemtype)
25  else:
26  return "<%s>%s</%s>\n" % (elemtype, innerHTML, elemtype)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def HTMLExport.get_jquery ( )

Definition at line 27 of file HTMLExport.py.

References elem(), and SiPixelLorentzAngle_cfi.read.

Referenced by HTMLExport.HTMLExport.produce().

27 
28 def get_jquery():
29  jquery_file = os.path.join(os.path.dirname(sys.modules[__name__].__file__), 'jquery-1.6.2.min.js')
30  if os.path.exists(jquery_file):
31  return elem('script', open(jquery_file).read(), type='text/javascript')
32  else:
33  return elem('script', type='text/javascript', src=JQUERY)
def get_jquery
Definition: HTMLExport.py:27

Variable Documentation

string HTMLExport.CMSLOGO = "http://cms.cern.ch/iCMS/imgs/icms/CMSheader_left.gif"

Definition at line 37 of file HTMLExport.py.

HTMLExport.CSS_TEMPLATE = \

Definition at line 39 of file HTMLExport.py.

string HTMLExport.CVS = "http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/"

Definition at line 36 of file HTMLExport.py.

string HTMLExport.JQUERY = "http://code.jquery.com/jquery-1.6.2.min.js"

Definition at line 34 of file HTMLExport.py.

HTMLExport.JS_TEMPLATE = \

Definition at line 126 of file HTMLExport.py.

string HTMLExport.LXR = "http://cmslxr.fnal.gov/lxr/ident?"

Definition at line 35 of file HTMLExport.py.

HTMLExport.PAGE_TEMPLATE = \

Definition at line 594 of file HTMLExport.py.