CMS 3D CMS Logo

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

Functions

def getPrescalesFromKey
 my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X.pathName.value(), X.prescales[0])'"; More...
 
def queryRR
 

Variables

string edmCfgFromDB = "edmConfigFromDB --orcoff --format summary.ascii --paths "
 
tuple jsonFile = open(options.jsonOut, "w")
 
dictionary jsout = {}
 
list key = runKeys[run]
 
tuple parser = OptionParser(usage="usage: %prog [options] Trigger_Path")
 
list path = args[0]
 
dictionary prescaleTable = {}
 
int psfactor = 1
 
tuple runKeys = queryRR()
 
tuple runs = runKeys.keys()
 

Function Documentation

def getHLTPrescaleColumns.getPrescalesFromKey (   key)

my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X.pathName.value(), X.prescales[0])'";

Definition at line 21 of file getHLTPrescaleColumns.py.

21 
22 def getPrescalesFromKey(key):
23  #stderr.write("\t%s ...\n" % key);
24  cmd = ( edmCfgFromDB +" --configName "+key + " | grep -i "+ path + " | tail -1 | awk ' $2 ==\"%s\" {print $NL}' " ) % path
25  res = commands.getoutput(cmd)
26  res_split = res.split()
27  psMap = {}
28  aa=""
29  if len(res)>0:
30  for uu in range(3,len(res_split)-1):
31  if uu % 2 == 1:
32  aa = aa + res_split[uu] + "\t"
33  psMap[path] = aa
34  else:
35  psMap[path] = 0
36  return psMap
37 
def getPrescalesFromKey
my $pyPrintTable = "echo 'for X in process.PrescaleService.prescaleTable: print \"%s %s" % (X...
def getHLTPrescaleColumns.queryRR ( )

Definition at line 38 of file getHLTPrescaleColumns.py.

38 
39 def queryRR():
40  stderr.write("Querying run registry for range [%d, %d], group name like %s ...\n" % (options.firstRun, options.lastRun, options.groupName))
41  import xmlrpclib
42  import xml.dom.minidom
43  server = xmlrpclib.ServerProxy(options.rrurl)
44  run_data = server.DataExporter.export('RUN', 'GLOBAL', 'xml_datasets', "{runNumber} >= %d AND {runNumber} <= %d AND {groupName} like '%s' AND {datasetName} = '/Global/Online/ALL'" % (options.firstRun, options.lastRun, options.groupName))
45  ret = {}
46  xml_data = xml.dom.minidom.parseString(run_data)
47  xml_runs = xml_data.documentElement.getElementsByTagName("RUN_DATASET")
48  for xml_run in xml_runs:
49  ret[xml_run.getElementsByTagName("RUN_NUMBER")[0].firstChild.nodeValue] = xml_run.getElementsByTagName("RUN_HLTKEY")[0].firstChild.nodeValue
50  return ret

Variable Documentation

string getHLTPrescaleColumns.edmCfgFromDB = "edmConfigFromDB --orcoff --format summary.ascii --paths "

Definition at line 19 of file getHLTPrescaleColumns.py.

tuple getHLTPrescaleColumns.jsonFile = open(options.jsonOut, "w")

Definition at line 68 of file getHLTPrescaleColumns.py.

dictionary getHLTPrescaleColumns.jsout = {}

Definition at line 55 of file getHLTPrescaleColumns.py.

list getHLTPrescaleColumns.key = runKeys[run]

Definition at line 57 of file getHLTPrescaleColumns.py.

tuple getHLTPrescaleColumns.parser = OptionParser(usage="usage: %prog [options] Trigger_Path")

Definition at line 6 of file getHLTPrescaleColumns.py.

list getHLTPrescaleColumns.path = args[0]

Definition at line 16 of file getHLTPrescaleColumns.py.

Referenced by RPCLinkSynchroStat.add(), METManager.addGenBenchmark(), HLTPerformanceInfo.addModuleToPath(), DeDxDiscriminatorLearnerFromCalibTree.algoAnalyzeTheTree(), SiStripGainFromCalibTree.algoAnalyzeTheTree(), HLTTauDQMPathSummaryPlotter.analyze(), PixelVTXMonitor.analyze(), MuonDTDigis.analyze(), PrintLoadingPlugins.askedToLoad(), SiStripFedCablingBuilderFromDb.assignDcuAndDetIds(), BenchmarkAnalyzer.beginJob(), JetCorrectorDBWriter.beginJob(), PFCandidateDQMAnalyzer.beginJob(), PFJetDQMAnalyzer.beginJob(), PFMETDQMAnalyzer.beginJob(), GenericBenchmarkAnalyzer.beginJob(), ProfilerService.beginPath(), HLTTauDQMPath.beginRun(), HLTMuonOfflineAnalyzer.beginRun(), HLTMuonValidator.beginRun(), MEtoEDMConverter.beginRun(), HLTHiggsSubAnalysis.beginRun(), DQMStore.book(), CSCOfflineClient.bookMonitorObject(), CSCMonitorModule.bookMonitorObject(), edmplugin::standard.cachefileName(), DQMStoreStats.calcstats(), FWGeometryTableViewBase.cdTop(), FWPSetTableManager.cellRenderer(), LStoreStorageMaker.check(), cleanTrailingSlashes(), CmsShowSearchFiles.CmsShowSearchFiles(), SiStripGainFromData.ComputeChargeOverPath(), edmplugin::standard.config(), CommissioningHistograms.copyCustomInformation(), FWTextTreeCellRenderer.coreIcondir(), FWCheckBoxIcon.coreIcondir(), coreIcondir(), SiStripCommissioningSource.createCablingTasks(), SiStripHistoId.createHistoLayer(), EcalBarrelMonitorXdaqClient.defaultWebPage(), EcalEndcapMonitorXdaqClient.defaultWebPage(), do_work(), PFClient.doEfficiency(), PFClient_JetRes.doEfficiency(), MuonTestSummary.doEnergyTests(), MuonTestSummary.doKinematicsTests(), MuonTestSummary.doMuonIDTests(), PFClient.doProfiles(), PFClient.doProjection(), MuonTestSummary.doResidualsTests(), PFClient.doSummaries(), PFClient_JetRes.doSummaries(), DTMuonMillepede.DTMuonMillepede(), DTMuonSLToSL.DTMuonSLToSL(), EcalTrivialConditionRetriever.EcalTrivialConditionRetriever(), RawEventFileWriterForBU.endOfLS(), MTRawEventFileWriterForBU.endOfLS(), MuonAlignmentSummary.endRun(), MuonRecoTest.endRun(), MuonTrackResidualsTest.endRun(), ESTrivialConditionRetriever.ESTrivialConditionRetriever(), CommissioningHistograms.extractHistograms(), evf::FastMonitoringService.FastMonitoringService(), spf::SherpackFetcher.Fetch(), SummaryGeneratorControlView.fill(), SummaryGeneratorReadoutView.fill(), SiStripCommissioningSource.fillCablingHistos(), SiPixelActionExecutor.fillOccupancy(), PFDQMEventSelector.filter(), LocalFileSystem.findCachePath(), EmDQM.findEgammaPaths(), SiPixelFrameReverter.findFedId(), FWGeometry.findFile(), evf::EvFDaqDirector.findHighestRunDirStem(), SiPixelFrameReverter.findLinkInFed(), SiPixelInformationExtractor.findNoisyPixels(), DQMImplNet< DQMNet::Object >.findObject(), SiPixelFrameReverter.findPixelInRoc(), SiPixelFrameReverter.findRocInDet(), SiPixelFrameReverter.findRocInLink(), spf::SherpackFetcher.FnFileGet(), TkHistoMap.folderDefinition(), pos::PixelConfigFile.get(), SiPixelQuality.getBadRocPositions(), MonitorElement.getFullname(), cscdqm::HistoDef.getFullPath(), HFShowerParam.getHits(), DQMStore.getMatchingContents(), DeDxDiscriminatorProducer.GetProbability(), FedRawDataInputSource.grabNextJsonFile(), RawEventFileWriterForBU.handler(), fit::RootMinuitCommands< Function >.init(), RawEventFileWriterForBU.initialize(), TStorageFactoryFile.Initialize(), edm::FileInPath.initialize_(), metsig::SignAlgoResolutions.initializeJetResolutions(), evf::RecoEventOutputModuleForFU< Consumer >.initializeStreams(), ecaldqm::IntegrityTask.IntegrityTask(), DeDxDiscriminatorLearner.Learn(), edmplugin::PluginManager.load(), edmplugin::PluginManager.loadableFor_(), LumiCorrectionSource.LumiCorrectionSource(), main(), pos::PixelConfigFile.makeNewVersion(), TrajectoryManager.makeSinglePSimHit(), SiPixelSCurveCalibrationAnalysis.makeThresholdSummary(), MergeRootfile(), SiPixelDigitizerAlgorithm.module_killing_DB(), MonitorElement.MonitorElement(), PhysicsTools::MVAComputerESSourceBase.MVAComputerESSourceBase(), edmplugin::PluginFactoryBase.newPlugin(), RivetAnalyzer.normalizeTree(), LStoreStorageMaker.open(), StormStorageMaker.open(), StormLcgGtStorageMaker.open(), ora::SharedLibraryName.operator()(), SiPixelFedCablingMap.pathToDetUnit(), SiPixelFedCablingTree.pathToDetUnit(), PlotPixelMultVtxPos(), edmplugin::PluginManager.PluginManager(), DQMRootOutputModule.postForkReacquireResources(), FastTimerService.postPathEvent(), evf::FastMonitoringService.preEndLumi(), FastTimerService.prePathEvent(), SiPixelActionExecutor.prephistosB(), SiPixelActionExecutor.prephistosE(), FedCablingAnalysis.print(), cond::XMLAuthenticationService::XMLAuthenticationService.processFile(), magneticfield::VolumeBasedMagneticFieldESProducer.produce(), ShallowGainCalibration.produce(), MuonSimHitProducer.produce(), MEtoEDMConverter.putData(), edmplugin::CacheParser.read(), CSCGasCollisions.readCollisionTable(), DQMBasicNet.removeLocalExcept(), FedRawDataInputSource.renameToNextFree(), gen::ParameterCollector.resolve(), SiPixelDQMRocLevelAnalyzer.RocSummary(), CommissioningHistograms.runNumber(), CommissioningHistograms.runType(), CommissioningHistograms.save(), DQMStore.save(), FedRawDataInputSource.searchForNextFile(), lumi::DBConfig.setAuthentication(), cond::XMLAuthenticationService::XMLAuthenticationService.setAuthenticationPath(), SiStripCommissioningOfflineClient.setInputFiles(), SiStripHistoPlotter.setNewCondDBPlot(), SiPixelHistoPlotter.setNewPlot(), SiStripHistoPlotter.setNewPlot(), CommonAnalyzer.setPath(), PhiSymmetryCalibration_step2_SM.setUp(), PhiSymmetryCalibration_step2.setUp(), PFJetBenchmark.setup(), PFMETBenchmark.setup(), PFTauElecRejectionBenchmark.setup(), cond::CredentialStore.setUpForService(), splitPath(), PFMETDQMAnalyzer.storeBadEvents(), PFCandidateDQMAnalyzer.storeBadEvents(), PFJetDQMAnalyzer.storeBadEvents(), PedsOnlyAnalysis.summary(), VpspScanAnalysis.summary(), PedestalsAnalysis.summary(), NoiseAnalysis.summary(), OptoScanAnalysis.summary(), CommissioningAnalysis.summary(), PedsFullNoiseAnalysis.summary(), MTRawEventFileWriterForBU.threadRunner(), SiPixelFrameReverter.toCabling(), SiPixelFrameConverter.toDetector(), LumiCorrectionSource.translateFrontierConnect(), edmplugin::PluginManager.tryToLoad(), DQMStore.useQTestByMatch(), SiStripConfigDb.usingDatabase(), cond::XMLAuthenticationService::XMLAuthenticationService.verifyFileName(), and PixelDataFormatter.word2digi().

dictionary getHLTPrescaleColumns.prescaleTable = {}

Definition at line 52 of file getHLTPrescaleColumns.py.

int getHLTPrescaleColumns.psfactor = 1

Definition at line 60 of file getHLTPrescaleColumns.py.

tuple getHLTPrescaleColumns.runKeys = queryRR()

Definition at line 51 of file getHLTPrescaleColumns.py.

tuple getHLTPrescaleColumns.runs = runKeys.keys()

Definition at line 53 of file getHLTPrescaleColumns.py.