CMS 3D CMS Logo

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])'";
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.

00022                             :
00023     #stderr.write("\t%s ...\n" % key);
00024     cmd = ( edmCfgFromDB +" --configName "+key + " | grep -i "+ path + " | tail -1 | awk ' $2 ==\"%s\" {print $NL}' " ) % path
00025     res = commands.getoutput(cmd)
00026     res_split = res.split()
00027     psMap = {}
00028     aa=""
00029     if len(res)>0:
00030         for uu in range(3,len(res_split)-1):
00031                 if uu % 2 == 1:
00032                    aa = aa + res_split[uu] + "\t"
00033         psMap[path] = aa
00034     else:
00035         psMap[path] = 0
00036     return psMap
00037 

def getHLTPrescaleColumns::queryRR ( )

Definition at line 38 of file getHLTPrescaleColumns.py.

00039              :
00040     stderr.write("Querying run registry for range [%d, %d], group name like %s ...\n" % (options.firstRun, options.lastRun, options.groupName))
00041     import xmlrpclib
00042     import xml.dom.minidom
00043     server = xmlrpclib.ServerProxy(options.rrurl)
00044     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))
00045     ret = {}
00046     xml_data = xml.dom.minidom.parseString(run_data)
00047     xml_runs = xml_data.documentElement.getElementsByTagName("RUN_DATASET")
00048     for xml_run in xml_runs:
00049         ret[xml_run.getElementsByTagName("RUN_NUMBER")[0].firstChild.nodeValue] = xml_run.getElementsByTagName("RUN_HLTKEY")[0].firstChild.nodeValue
00050     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.

Definition at line 55 of file getHLTPrescaleColumns.py.

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.

Definition at line 16 of file getHLTPrescaleColumns.py.

Referenced by RPCLinkSynchroStat::add(), METManager::addGenBenchmark(), HLTPerformanceInfo::addModuleToPath(), DeDxDiscriminatorLearnerFromCalibTree::algoAnalyzeTheTree(), SiStripGainFromCalibTree::algoAnalyzeTheTree(), PixelVTXMonitor::analyze(), MuonDTDigis::analyze(), PrintLoadingPlugins::askedToLoad(), SiStripFedCablingBuilderFromDb::assignDcuAndDetIds(), GenericBenchmarkAnalyzer::beginJob(), PFCandidateDQMAnalyzer::beginJob(), PFMETDQMAnalyzer::beginJob(), BenchmarkAnalyzer::beginJob(), PFJetDQMAnalyzer::beginJob(), JetCorrectorDBWriter::beginJob(), ProfilerService::beginPath(), HLTMuonOfflineAnalyzer::beginRun(), HLTMuonValidator::beginRun(), HLTHiggsSubAnalysis::beginRun(), DQMStore::book(), CSCMonitorModule::bookMonitorObject(), CSCOfflineClient::bookMonitorObject(), edmplugin::standard::cachefileName(), DQMStoreStats::calcstats(), FWGeometryTableViewBase::cdTop(), FWPSetTableManager::cellRenderer(), LStoreStorageMaker::check(), cleanTrailingSlashes(), CmsShowSearchFiles::CmsShowSearchFiles(), SiStripGainFromData::ComputeChargeOverPath(), edmplugin::standard::config(), CommissioningHistograms::copyCustomInformation(), FWCheckBoxIcon::coreIcondir(), coreIcondir(), FWTextTreeCellRenderer::coreIcondir(), SiStripCommissioningSource::createCablingTasks(), SiStripHistoId::createHistoLayer(), evf::Stepper::defaultWebPage(), EcalBarrelMonitorXdaqClient::defaultWebPage(), evf::ModuleWeb::defaultWebPage(), EcalEndcapMonitorXdaqClient::defaultWebPage(), edm::DaqSource::defaultWebPage(), evf::ServiceWeb::defaultWebPage(), evf::ExceptionGenerator::defaultWebPage(), do_work(), PFClient::doEfficiency(), MuonTestSummary::doEnergyTests(), MuonTestSummary::doKinematicsTests(), MuonTestSummary::doMuonIDTests(), MuonTestSummary::doResidualsTests(), PFClient::doSummaries(), DTMuonMillepede::DTMuonMillepede(), DTMuonSLToSL::DTMuonSLToSL(), EcalTrivialConditionRetriever::EcalTrivialConditionRetriever(), MuonRecoTest::endRun(), MuonAlignmentSummary::endRun(), MuonTrackResidualsTest::endRun(), ESTrivialConditionRetriever::ESTrivialConditionRetriever(), CommissioningHistograms::extractHistograms(), SummaryGeneratorReadoutView::fill(), SummaryGeneratorControlView::fill(), SiStripCommissioningSource::fillCablingHistos(), SiPixelActionExecutor::fillOccupancy(), PFDQMEventSelector::filter(), LocalFileSystem::findCachePath(), EmDQMFeeder::findEgammaPaths(), SiPixelFrameReverter::findFedId(), FWGeometry::findFile(), SiPixelFrameReverter::findLinkInFed(), DQMImplNet< DQMNet::Object >::findObject(), SiPixelFrameReverter::findPixelInRoc(), SiPixelFrameReverter::findRocInDet(), SiPixelFrameReverter::findRocInLink(), TkHistoMap::folderDefinition(), pos::PixelConfigFile::get(), SiPixelQuality::getBadRocPositions(), getFileURLs(), MonitorElement::getFullname(), cscdqm::HistoDef::getFullPath(), HFShowerParam::getHits(), evf::ParameterSetRetriever::getHostString(), DQMStore::getMatchingContents(), DeDxDiscriminatorProducer::GetProbability(), SiStripInformationExtractor::getSingleModuleHistos(), SiStripInformationExtractor::getTrackerMapHistos(), SiPixelInformationExtractor::getTrackerMapHistos(), fit::RootMinuitCommands< Function >::init(), TStorageFactoryFile::Initialize(), edm::FileInPath::initialize_(), metsig::SignAlgoResolutions::initializeJetResolutions(), DeDxDiscriminatorLearner::Learn(), edmplugin::PluginManager::load(), edmplugin::PluginManager::loadableFor_(), main(), pos::PixelConfigFile::makeNewVersion(), TrajectoryManager::makeSinglePSimHit(), SiPixelSCurveCalibrationAnalysis::makeThresholdSummary(), MergeRootfile(), SiPixelDigitizerAlgorithm::module_killing_DB(), MonitorElement::MonitorElement(), PhysicsTools::MVAComputerESSourceBase::MVAComputerESSourceBase(), edmplugin::PluginFactoryBase::newPlugin(), LStoreStorageMaker::open(), StormLcgGtStorageMaker::open(), StormStorageMaker::open(), ora::SharedLibraryName::operator()(), SiPixelFedCablingTree::pathToDetUnit(), SiPixelFedCablingMap::pathToDetUnit(), edmplugin::PluginManager::PluginManager(), FastTimerService::postBeginJob(), SiPixelActionExecutor::prephistosB(), SiPixelActionExecutor::prephistosE(), FastTimerService::preProcessEvent(), FastTimerService::preProcessPath(), FedCablingAnalysis::print(), cond::XMLAuthenticationService::XMLAuthenticationService::processFile(), MuonSimHitProducer::produce(), ShallowGainCalibration::produce(), RKPropagatorInS::propagateParametersOnCylinder(), RKPropagatorInS::propagateParametersOnPlane(), edmplugin::CacheParser::read(), CSCGasCollisions::readCollisionTable(), DQMBasicNet::removeLocalExcept(), gen::ParameterCollector::resolve(), SiPixelDQMRocLevelAnalyzer::RocSummary(), CommissioningHistograms::runNumber(), CommissioningHistograms::runType(), CommissioningHistograms::save(), DQMStore::save(), lumi::DBConfig::setAuthentication(), cond::XMLAuthenticationService::XMLAuthenticationService::setAuthenticationPath(), SiStripCommissioningOfflineClient::setInputFiles(), SiStripHistoPlotter::setNewCondDBPlot(), SiStripHistoPlotter::setNewPlot(), SiPixelHistoPlotter::setNewPlot(), CandCombinerBase< OutputCollection, Cloner::CandPtr >::setup(), PhiSymmetryCalibration_step2_SM::setUp(), PhiSymmetryCalibration_step2::setUp(), cond::CredentialStore::setUpForService(), HelixArbitraryPlaneCrossing2Order::solutionByDirection(), splitPath(), PFMETDQMAnalyzer::storeBadEvents(), PFJetDQMAnalyzer::storeBadEvents(), PFCandidateDQMAnalyzer::storeBadEvents(), PedsOnlyAnalysis::summary(), PedsFullNoiseAnalysis::summary(), VpspScanAnalysis::summary(), PedestalsAnalysis::summary(), NoiseAnalysis::summary(), OptoScanAnalysis::summary(), CommissioningAnalysis::summary(), SiPixelFrameReverter::toCabling(), SiPixelFrameConverter::toCabling(), SiPixelFrameConverter::toDetector(), edmplugin::PluginManager::tryToLoad(), DQMStore::useQTestByMatch(), SiStripConfigDb::usingDatabase(), cond::XMLAuthenticationService::XMLAuthenticationService::verifyFileName(), and PixelDataFormatter::word2digi().

Definition at line 52 of file getHLTPrescaleColumns.py.

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.