CMS 3D CMS Logo

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

Functions

def formatCVSLink
 Format CVS link. More...
 
def generateBranchHTML
 Generates HTML for Subsystem. More...
 
def generateLeavesHTML
 Generates HTML for subpackage. More...
 
def generateTree
 Fetches information about Subsystems/Packages/Subpackages from TagCollector. More...
 
def loadTemplates
 Read template file. More...
 
def prepareRefManFiles
 Prepate dictionary of doxygen generated html files. More...
 

Variables

 block = indexPageBlockNoTree
 Formating index page's pieces. More...
 
tuple branchHTML = generateBranchHTML(SRC_DIR, tree, subsystem)
 Generating treeviews. More...
 
list CMSSW_VERSION = sys.argv[1]
 
string contacts = ""
 
string cvsBaseUrl = "http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW"
 
 errorOnImport = False
 
tuple fileIN = open(SCRIPTS_LOCATION+"/indexPage/indexpage_warning.html", "r")
 Index Page Preparations. More...
 
string indexPageBlock
 
string indexPageBlockNoTree
 
string indexPageHTML = ""
 
int indexPageRowCounter = 0
 
tuple indexPageTemplateHTML = fileIN.read()
 
dictionary map = {}
 
tuple output = open(PROJECT_LOCATION+"/doc/html/index.html", "w")
 
list PROJECT_LOCATION = sys.argv[2]
 
string reason = "Failed during preparing treeview. "
 
dictionary refmanfiles = {}
 
string rowCssClass = "odd"
 
list SCRIPTS_LOCATION = sys.argv[3]
 
string SRC_DIR = PROJECT_LOCATION+"/src"
 
tuple treeHTML = treeTemplateHTML.replace("@TREE@", branchHTML)
 

Detailed Description

Created on Aug 29, 2011

@author: MantYdze

Function Documentation

def Association.formatCVSLink (   package,
  subpackage 
)

Format CVS link.

Definition at line 31 of file Association.py.

Referenced by generateBranchHTML().

31 
32 def formatCVSLink(package, subpackage):
33  cvsLink = "["+"<a target=\"_blank\" href=\""+cvsBaseUrl+"/"+package+"/"+subpackage+"\">cvs</a>]"
34  return cvsLink
def formatCVSLink
Format CVS link.
Definition: Association.py:31
def Association.generateBranchHTML (   SRC_DIR,
  tree,
  branch 
)

Generates HTML for Subsystem.

Definition at line 74 of file Association.py.

References formatCVSLink(), and generateLeavesHTML().

74 
75 def generateBranchHTML(SRC_DIR, tree, branch):
76  branchHTML = ""
77 
78  for package,subpackages in sorted(tree[branch].items()):
79  branchHTML += "<li><span><strong>"+package+"</strong></span><ul>"
80 
81  for subpackage in subpackages:
82  branchHTML += "<li>"+subpackage + " "+ formatCVSLink(package, subpackage)
83  branchHTML += generateLeavesHTML(SRC_DIR, package, subpackage)
84  branchHTML+="</li>"
85 
86  branchHTML +="</ul>"
87 
88  branchHTML += "</li>"
89  return branchHTML
def generateLeavesHTML
Generates HTML for subpackage.
Definition: Association.py:54
def formatCVSLink
Format CVS link.
Definition: Association.py:31
def generateBranchHTML
Generates HTML for Subsystem.
Definition: Association.py:74
def Association.generateLeavesHTML (   SRC_DIR,
  package,
  subpackage 
)

Generates HTML for subpackage.

Definition at line 54 of file Association.py.

Referenced by generateBranchHTML().

54 
55 def generateLeavesHTML(SRC_DIR, package, subpackage):
56  html = ""
57  try:
58  dirList=os.listdir(SRC_DIR + "/" + package+"/"+subpackage+"/interface/")
59  for classfile in dirList:
60  if classfile.endswith(".h"):
61  classfile = classfile.replace(".h", "")
62  if refmanfiles.has_key(classfile):
63  classfile = "<a target=\"_blank\" href=\""+refmanfiles[classfile]+"\">"+classfile+"</a>"
64 
65  html += "<li>"+classfile+"</li>"
66  except:
67  pass
68 
69  if html != "":
70  html = "<ul>"+html+"</ul>"
71 
72  return html
def generateLeavesHTML
Generates HTML for subpackage.
Definition: Association.py:54
def Association.generateTree (   release)

Fetches information about Subsystems/Packages/Subpackages from TagCollector.

Definition at line 36 of file Association.py.

References python.multivaluedict.append(), and SiPixelLorentzAngle_cfi.read.

36 
37 def generateTree(release):
38  data = json.loads(urllib2.urlopen('https://cmstags.cern.ch/tc/CategoriesPackagesJSON?release=' + release).read())
39 
40  tree = {}
41  subsystems = sorted(data.keys())
42 
43  for subsystem in subsystems:
44  tree[subsystem] = {}
45  for packagesub in data[subsystem]:
46  (package, subpackage) = packagesub.split("/")
47 
48  if not package in tree[subsystem]:
49  tree[subsystem][package] = []
50  tree[subsystem][package].append(subpackage)
51 
52  return (tree, subsystems)
def generateTree
Fetches information about Subsystems/Packages/Subpackages from TagCollector.
Definition: Association.py:36
def Association.loadTemplates ( )

Read template file.

Definition at line 91 of file Association.py.

91 
92 def loadTemplates():
93  templateFile = SCRIPTS_LOCATION+"/indexPage/tree_template.html"
94 
95  fileIN = open(templateFile, "r")
96  treeTemplateHTML = fileIN.read()
97  fileIN.close()
98 
99 
100  templateFile = SCRIPTS_LOCATION+"/indexPage/indexpage_template.html"
101  fileIN = open(templateFile, "r")
102  indexPageTemplateHTML = fileIN.read()
103  fileIN.close()
104 
105 
106  return treeTemplateHTML, indexPageTemplateHTML
def loadTemplates
Read template file.
Definition: Association.py:91
def Association.prepareRefManFiles (   SRC_DIR)

Prepate dictionary of doxygen generated html files.

Definition at line 21 of file Association.py.

References linker.replace(), and split.

21 
22 def prepareRefManFiles(SRC_DIR):
23  output = os.popen("find "+SRC_DIR+" -wholename '*/class*.html' -not \( -name '*-members.html' \) -print")
24  lines = output.read().split("\n")
25  output.close()
26 
27  for line in lines:
28  (head, tail) = os.path.split(line)
29  refmanfiles[tail.replace("class","").replace(".html","")] = line
def replace
Definition: linker.py:10
def prepareRefManFiles
Prepate dictionary of doxygen generated html files.
Definition: Association.py:21
double split
Definition: MVATrainer.cc:139

Variable Documentation

Association.block = indexPageBlockNoTree

Formating index page's pieces.

Definition at line 187 of file Association.py.

Referenced by BlockWipedAllocator.alloc(), PFRecoTauAlgorithm.buildPFTau(), evf::FUResourceTable.buildResource(), evf::FUResource.checkDataBlockPayload(), evf::BU.createMsgChain(), CalibratableTest.extractCandidate(), DisplayManager.findBlock(), evf::FUResourceTable.isLastMessageOfEvent(), HcalPatternSource.loadPatternFile(), gen::ParameterCollector::const_iterator.next(), reco::tau::RecoTauElectronRejectionPlugin.operator()(), PFAlgoTestBenchElectrons.processBlock(), PFAlgo.processBlock(), evf::FUResource.processDataBlock(), PFRootEventManagerColin.processHIGH_E_TAUS(), PFAlgo.reconstructParticles(), PFElectronAlgo.SetActive(), PFConversionAlgo.setCandidates(), PFElectronAlgo.SetCandidates(), PFElectronAlgo.SetIDOutputs(), PFConversionAlgo.setLinks(), PFElectronAlgo.SetLinks(), gen::Pythia6Service.setSLHAFromHeader(), Herwig6Hadronizer.setSLHAFromHeader(), and CSCSPRecord.unpack().

tuple Association.branchHTML = generateBranchHTML(SRC_DIR, tree, subsystem)

Generating treeviews.

Definition at line 182 of file Association.py.

list Association.CMSSW_VERSION = sys.argv[1]

Definition at line 111 of file Association.py.

string Association.contacts = ""

Definition at line 193 of file Association.py.

string Association.cvsBaseUrl = "http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW"

Definition at line 16 of file Association.py.

Association.errorOnImport = False

Definition at line 7 of file Association.py.

tuple Association.fileIN = open(SCRIPTS_LOCATION+"/indexPage/indexpage_warning.html", "r")

Index Page Preparations.

Warning page

Definition at line 129 of file Association.py.

string Association.indexPageBlock
Initial value:
1 = """
2 <tr class=\"@ROW_CLASS@\">
3  <td width=\"50%\"><a href=\"#@SUBSYSTEM@\" onclick=\"javascript:getIframe('@SUBSYSTEM@')\">@SUBSYSTEM@</a></td>
4  <td width=\"50%\" class=\"contact\">@CONTACTS@</td>
5 </tr>
6 <tr><td colspan=\"2\"><span id=\"@SUBSYSTEM@\"></span></td></tr>
7 """

Definition at line 143 of file Association.py.

string Association.indexPageBlockNoTree
Initial value:
1 = """
2 <tr class=\"@ROW_CLASS@\">
3  <td width=\"50%\">@SUBSYSTEM@</td>
4  <td width=\"50%\" class=\"contact\">@CONTACTS@</td>
5 </tr>
6 <tr><td colspan=\"2\"><span id=\"@SUBSYSTEM@\"></span></td></tr>
7 """

Definition at line 151 of file Association.py.

tuple Association.indexPageHTML = ""

Definition at line 141 of file Association.py.

int Association.indexPageRowCounter = 0

Definition at line 142 of file Association.py.

tuple Association.indexPageTemplateHTML = fileIN.read()

Definition at line 130 of file Association.py.

dictionary Association.map = {}

Definition at line 160 of file Association.py.

Referenced by argparse.ArgumentParser._check_value(), BeautifulSoup.UnicodeDammit._ebcdic_to_ascii(), BeautifulSoup.Tag._invert(), SiStripDetCabling.addActiveDetectorsRawIds(), SiStripDetCabling.addAllDetectorsRawIds(), SiStripFEDErrorsDQM.addErrors(), SiStripDetCabling.addFromSpecificConnection(), HcalLutManager.addLutMap(), CSCMap1Read.analyze(), SiStripMonitorDigi.analyze(), HLTGetDigi.analyze(), SiStripMonitorHLT.analyze(), SiStripMonitorCluster.analyze(), DTVDriftCalibration.analyze(), EcalBarrelSimHitsValidation.analyze(), EcalEndcapSimHitsValidation.analyze(), SimplePi0DiscAnalyzer.analyze(), EcalCosmicsHists.analyze(), DTCompactMapWriter.appendROS(), VertexAssociatorByTracks.associateRecoToSim(), VertexAssociatorByTracks.associateSimToReco(), QTestHandle.attachTests(), DTEfficiencyTask.beginLuminosityBlock(), DTResolutionAnalysisTask.beginLuminosityBlock(), DTChamberEfficiencyTask.beginLuminosityBlock(), DTLocalTriggerTask.beginLuminosityBlock(), DTtTrigDBValidation.beginRun(), AlcaBeamMonitorClient.beginRun(), MonitorTrackResiduals.beginRun(), DTt0DBValidation.beginRun(), RPCGeometryBuilderFromCondDB.build(), ConvertedPhotonProducer.buildCollections(), SiStripDetVOffBuilder.BuildDetVOffObj(), RPCGeometryBuilderFromDDD.buildGeometry(), DTCompactMapWriter.buildSteering(), parserTimingReport.calc_MinMaxAvgRMS(), TagProbeFitTreeAnalyzer.calculateEfficiency(), python.rootplot.core.cartesian_product(), TrajectoryCleanerMerger.clean(), MuonTrajectoryCleaner.clean(), PFClusterAlgo.cleanRBXAndHPD(), ora::TransactionCache.cleanUpNamedRefCache(), ora::TransactionCache.clear(), DTCompactMapWriter.cloneROS(), cmsPerfRegress.cmpSimpMemReport(), cmsPerfRegress.cmpTimingReport(), MuonMillepedeAlgorithm.collect(), DTRecHitQuality.compute(), GlobalRecHitsAnalyzer.compute(), GlobalRecHitsProducer.compute(), svgfig.Ticks.compute_logticks(), PhysicsTools::MVATrainer.connectProcessors(), ora::Database.containers(), python.Vispa.Views.LineDecayView.DecayLine.containsPoint(), cmsPerfPublish.copytree4(), ThePEG::ProxyBase.create(), lhef::LHEProxy.create(), cmsPerfPublish.createCandlHTML(), SiPixelActionExecutor.createMap(), cmsPerfPublish.createWebReports(), OnDemandMeasurementTracker.define(), MuonGeometrySanityCheck_cfi.detectors(), TowerBlockFormatter.DigiToRaw(), plotscripts.doTestsForMapPlots(), ora::Database.drop(), HLTConfigData.dump(), RPCLinkSynchroStat.dumpDelays(), EMap.EMap(), TowerBlockFormatter.EndEvent(), DTFineDelayCorr.endJob(), DTNoiseComputation.endJob(), DTAlbertoBenvenutiTask.endJob(), DTResolutionTest.endLuminosityBlock(), DTEfficiencyTest.endLuminosityBlock(), AlcaBeamMonitorClient.endRun(), HLTPrescaleRecorder.endRun(), MuonTrackResidualsTest.endRun(), ora::DatabaseUtilitySession.existsContainer(), cmsRelvalreportInput.expandHyphens(), fwlite::RecordWriter.fill(), CSCChamberIndexValues.fillChamberIndex(), CSCChamberMapValues.fillChamberMap(), CSCCrateMapValues.fillCrateMap(), CSCDDUMapValues.fillDDUMap(), MuonAlignment.fillGapsInSurvey(), SiPixelUtility.fillPaveText(), SiPixelHistoricInfoDQMClient.fillPerformanceSummary(), SiPixelHistoricInfoEDAClient.fillPerformanceSummary(), DTCompactMapWriter.fillReadOutMap(), HLTCSCOverlapFilter.filter(), HLTCSCRing2or3Filter.filter(), cms::ClusterMTCCFilter.filter(), CSCDigiValidator.filter(), RPCRecHitFilter.filter(), ThePEG::ProxyBase.find(), lhef::LHEProxy.find(), SiPixelInformationExtractor.findNoisyPixels(), ora::Database.flush(), HcalEmap.get_map(), EMap.get_map(), HcalLutManager.get_xml_files_from_db(), getCentralityFromFile(), SiPixelActionExecutor.getData(), cmsPerfPublish.getDirnameDirs(), HBHEHitMapOrganizer.getHPDs(), SimpleMTFHitCollector.getMeasurements(), pos::PixelPortcardMap.getName(), RPCDBPerformanceHandler.getNewObjects(), popcon::EcalTPGWeightGroupHandler.getNewObjects(), PVFitter.getNPVsperBX(), HBHEHitMapOrganizer.getRBXs(), cmsPerfRegress.getTimingDiff(), trigger::HLTPrescaleTable.HLTPrescaleTable(), tablePrinter.indent(), HcalChannelIterator.init(), SiStripDetCabling.IsInMap(), CSCDigitizer.layersMissing(), RPCFakeCalibration.makeCls(), XMLDocument.makeMaps(), RPCFakeCalibration.makeNoise(), SiPixelActionExecutor.mapMax(), SiPixelActionExecutor.mapMin(), CosmicMuonLinksProducer.mapTracks(), pos::PixelPortcardMap.modules(), cmsPerfRegress.newGraphAndHisto(), edm.operator||(), cmsPerfClient.optionparse(), cmsRelvalreportInput.optionparse(), cmsPerfSuite.PerfSuite.optionParse(), DTSegmentAnalysisTest.performClientDiagnostic(), QualityTester.performTests(), plotscripts.phiedges2c(), cond::PayLoadInspector< DataT >.plot(), SiStripInformationExtractor.plotHistosFromLayout(), cmsPerfPublish.populateFromTupleRoot(), pos::PixelPortcardMap.PortCardAndAOHs(), pos::PixelPortcardMap.portcards(), SiPixelActionExecutor.prephistosB(), SiPixelActionExecutor.prephistosE(), DTDataIntegrityTask.preProcessEvent(), edm::service::RandomNumberGeneratorService.print(), L1GtBoard.print(), EcalTPCondAnalyzer.printEcalTPGFineGrainEBIdMap(), EcalTPCondAnalyzer.printEcalTPGLutIdMap(), SiStripActionExecutor.printShiftHistoParameters(), CkfDebugger.printSimHits(), SiPixelGainCalibrationAnalysis.printSummary(), EcalTPCondAnalyzer.printTOWEREE(), EcalTPCondAnalyzer.printWEIGHT(), linker.process(), cmsPerfSuiteHarvest.process_timesize_dir(), python.DOTExport.DotExport.processMap(), DTDigiToRawModule.produce(), magneticfield::AutoMagneticFieldESProducer.produce(), CandIsolatorFromDeposits.produce(), DTFakeT0ESProducer.produce(), SecondaryVertexProducer.produce(), sistrip::FEDEmulatorModule.produce(), HcalEmap.read_map(), EMap.read_map(), SiStripInformationExtractor.readLayoutNames(), SiStripDaqInfo.readSubdetFedFractions(), parsingRulesHelper.rulesParser(), ConversionTrackPairFinder.run(), CSCOverlapsAlignmentAlgorithm.run(), PVFitter.runBXFitter(), cmsPerfClient.runclient(), DTOccupancyTest.runOccupancyTest(), cmsPerfPublish.scanReportArea(), Selections.Selections(), plotscripts.set_palette(), PFElectronAlgo.SetActive(), PFElectronAlgo.SetCandidates(), EcalSelectiveReadout.setElecMap(), PFElectronAlgo.SetIDOutputs(), PFElectronAlgo.SetLinks(), HcalBaseSignalGenerator.setParameterMap(), EcalSelectiveReadoutSuppressor.setTriggerMap(), EcalSelectiveReadout.setTriggerMap(), edm::detail::CachedProducts.setup(), RecoTauValidation_cfi.SetYmodulesToLog(), specificLumi.specificlumiTofile(), specificLumi-2011.specificlumiTofile(), AlignmentMonitorBase.startingNewLoop(), evf::FUEventProcessor.subWeb(), HcalEmap_test.test_read_map(), EMap_test.test_read_map(), CommonUtil.transposed(), BeautifulSoup.BeautifulStoneSoup.unknown_starttag(), ZdcTestAnalysis.update(), FWLiteESRecordWriterAnalyzer.update(), cmsRelvalreportInput.writeCommands(), HcalLutManager.writeLutXmlFiles(), EcalDccWeightBuilder.writeWeightToAsciiFile(), EcalDccWeightBuilder.writeWeightToDB(), EcalDccWeightBuilder.writeWeightToRootFile(), lhef::LHEProxy.~LHEProxy(), and ThePEG::ProxyBase.~ProxyBase().

tuple Association.output = open(PROJECT_LOCATION+"/doc/html/index.html", "w")

Definition at line 135 of file Association.py.

list Association.PROJECT_LOCATION = sys.argv[2]

Definition at line 112 of file Association.py.

string Association.reason = "Failed during preparing treeview. "

Definition at line 132 of file Association.py.

Referenced by stor::FileHandler.moveFileToClosed().

dictionary Association.refmanfiles = {}

Definition at line 18 of file Association.py.

string Association.rowCssClass = "odd"

Definition at line 201 of file Association.py.

list Association.SCRIPTS_LOCATION = sys.argv[3]

Definition at line 113 of file Association.py.

string Association.SRC_DIR = PROJECT_LOCATION+"/src"

Definition at line 115 of file Association.py.

tuple Association.treeHTML = treeTemplateHTML.replace("@TREE@", branchHTML)

Definition at line 184 of file Association.py.