CMS 3D CMS Logo

Classes | Functions
HTMLExport Namespace Reference

Classes

class  HTMLExport
 
class  HTMLExportStatic
 

Functions

def elem (elemtype, innerHTML='', html_class='', kwargs)
 
def get_jquery ()
 

Function Documentation

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

Definition at line 19 of file HTMLExport.py.

References join().

Referenced by PreMixingCaloParticleWorker.add(), PreMixingDigiSimLinkWorker< DigiSimLinkCollection >.addPileups(), PreMixingMuonWorker< DigiCollection >.addPileups(), SiStripGainFromCalibTree.algoBeginJob(), HistoAnalyzer< C >.analyze(), BeamProfileVtxGenerator.BeamProfileVtxGenerator(), PtAssignmentEngine2016.calculate_pt_xml(), PtAssignmentEngine2017.calculate_pt_xml(), DDHtmlMaDetails.details(), edm::PreMixingModule.doPileUp(), SiStripGainsPCLWorker.dqmAnalyze(), lhef::LHEReader::XMLHandler.endElement(), edm::FileRandomKEThetaGunProducer.FileRandomKEThetaGunProducer(), DQMSourceEleCalib.fillAroundBarrel(), AlCaElectronsTest.fillAroundBarrel(), DQMSourceEleCalib.fillAroundEndcap(), AlCaElectronsTest.fillAroundEndcap(), PhysicsTools::MVATrainer.fillInputVars(), PhysicsTools::MVATrainer.fillOutputVars(), SherpaHadronizer.generatePartonsAndHadronize(), get_jquery(), PFBlockBasedIsolation.getHighestEtECALCluster(), AlCaElectronsTest.getMaximum(), XMLDocument.getRootNode(), PhysicsTools::LeastSquares.getRotation(), TrackTimingImporter.importToBlock(), PhysicsTools::LeastSquares.load(), Phase2TrackerDigitizerAlgorithm.loadAccumulator(), PhysicsTools::MVATrainer.makeProcessor(), PhysicsTools::MVATrainer.MVATrainer(), CSCRecoConditions.noiseMatrix(), TrkCalIsolationAlgo< T1, C2 >.operator()(), CalIsolationAlgoNoExp< T1, C2 >.operator()(), PtIsolationAlgo< T, C >.operator()(), CalIsolationAlgo< T1, C2 >.operator()(), operator<<(), SummaryPlotXmlParser.parseXML(), PixelClusterShapeExtractor.processPixelRecHits(), NtpProducer< C >.produce(), SimPFProducer.produce(), HTMLExport.HTMLExportStatic.produce(), SiStripRegionConnectivity.produceRegionCabling(), PreMixingMuonWorker< CSCStripDigiCollection >.put(), l1t::XmlConfigParser.readContext(), l1t::XmlConfigParser.readContexts(), l1t::XmlConfigParser.readHwDescription(), mtd_digitizer.saveSimHitAccumulator(), 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(), and EwkMuLumiMonitorDQM.tkIso().

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)
27 
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:19
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def HTMLExport.get_jquery ( )

Definition at line 28 of file HTMLExport.py.

References cmsPerfStripChart.dict, and elem().

Referenced by HTMLExport.HTMLExport.produce().

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)
34 
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:19
def get_jquery()
Definition: HTMLExport.py:28