Functions | |
def | collect_directory_filenames |
def | dqm_diff |
def | get_content |
Variables | |
string | dest = 'show_exec_time' |
tuple | parser = OptionParser(usage='usage: %prog <root_file1> <root_file2> [options]') |
Define commandline options. | |
tuple | start = datetime.now() |
Check for commandline option errors. |
def dqm_diff::collect_directory_filenames | ( | directory, | |
names_list | |||
) |
Adds current directory file (histogram) names to ``names_list``. Then recursively calls itself for every current directory sub-directories.
Definition at line 11 of file dqm_diff.py.
00012 : 00013 """Adds current directory file (histogram) names to ``names_list``. Then 00014 recursively calls itself for every current directory sub-directories.""" 00015 for key in directory.GetListOfKeys(): 00016 subdir = directory.Get(key.GetName()) 00017 if subdir: 00018 if subdir.IsFolder(): 00019 collect_directory_filenames(subdir, names_list) 00020 else: 00021 filename = directory.GetPath().split(':')[1] + ': ' + subdir.GetName() 00022 names_list.add(filename)
def dqm_diff::dqm_diff | ( | filename1, | |
filename2 | |||
) |
Prints file (histogram) names that are in <file1> and not in <file2>.
Definition at line 33 of file dqm_diff.py.
00034 : 00035 """Prints file (histogram) names that are in <file1> and not in <file2>.""" 00036 print "Missing files:" 00037 content1 = get_content(filename1) 00038 content2 = get_content(filename2) 00039 printed = False 00040 for name in content1: 00041 if name not in content2: 00042 print " ->", name 00043 printed = True 00044 if not printed: 00045 print " All files match." 00046
def dqm_diff::get_content | ( | root_file_name | ) |
Returns all file (histogram) names, which are found in <root_file_name>.
Definition at line 23 of file dqm_diff.py.
00024 : 00025 """Returns all file (histogram) names, which are found in <root_file_name>.""" 00026 from ROOT import TFile 00027 root_file = TFile(root_file_name) 00028 root_directory = root_file.GetDirectory("DQMData") 00029 filename_set = set() 00030 collect_directory_filenames(root_directory, filename_set) 00031 root_file.Close() 00032 return filename_set
string dqm_diff::dest = 'show_exec_time' |
Definition at line 50 of file dqm_diff.py.
tuple dqm_diff::parser = OptionParser(usage='usage: %prog <root_file1> <root_file2> [options]') |
Define commandline options.
Definition at line 48 of file dqm_diff.py.
tuple dqm_diff::start = datetime.now() |
Check for commandline option errors.
Execute the search of dismatches in two root fies.
Definition at line 58 of file dqm_diff.py.
Referenced by BetaCalculatorRPC::addInfoToCandidate(), EcalDumpRaw::analyze(), HLTTauDQMAutomation::AutoCompleteConfig(), HLTTauDQMAutomation::AutoCompleteMatching(), L1TDTTF::beginJob(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), L1TDTTFClient::buildPhiEtaPlotO(), L1TDTTFClient::buildPhiEtaPlotOFC(), LocalCacheFile::cache(), tkDetUtil::calculatePhiWindow(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), DQMStore::cdInto(), SimpleCosmicBONSeeder::checkNoisyModules(), edm::VParameterSetEntry::dump(), AutoLibraryLoader::enable(), ElectronCalibrationUniv::endJob(), EZArrayFL< GlobalPoint >::EZArrayFL(), EZArrayVL< T >::EZArrayVL(), EcalCondDBInterface::fetchDCSPTMTempList(), DCSPTMTempList::fetchValuesForECIDAndTime(), CSCConditions::fillBadStripWords(), CSCConditions::fillBadWireWords(), MuonResiduals6DOFFitter::fit(), MuonResiduals5DOFFitter::fit(), MuonResiduals6DOFrphiFitter::fit(), MuonResidualsPositionFitter::fit(), MuonResidualsBfieldAngleFitter::fit(), MuonResiduals1DOFFitter::fit(), MuonResidualsAngleFitter::fit(), evf::FUEventProcessor::forkProcessesFromEDM(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), DTTimeBoxFitter::getFitSeeds(), StripCompactDigiSimLinks::getLinks(), LMFRunIOV::getParameters(), TrackAssociatorByPosition::getState(), StormLcgGtStorageMaker::getTURL(), StormStorageMaker::getTURL(), StripCompactDigiSimLinks::makeReverseMap(), MatcherUsingTracksAlgorithm::match(), ora::MappingRules::nameForSchema(), RK4PreciseStep::operator()(), edm::operator<<(), HcalTBObjectUnpacker::parseCalib(), pos::PixelFEDTestDAC::PixelFEDTestDAC(), LocalCacheFile::prefetch(), prettyPrint(), TrackClusterSplitter::produce(), RFIOFile::read(), RunInfoRead::readData(), L1MuRegionalCand::readDataField(), L1MuGMTCand::readDataField(), TiXmlBase::ReadName(), LocalCacheFile::readv(), HLTTauDQMFilter::regexSearch(), L1MuDTExtrapolationUnit::run(), SiStripRecHitConverterAlgorithm::run(), CondDBESSource::setIntervalFor(), gen::Pythia6Service::setPYUPDAParams(), RunIOV::setRunStart(), gen::Pythia6Service::setSLHAParams(), LMFIOV::setStart(), DCSPTMTemp::setStart(), MODRunIOV::setSubRunStart(), MonRunIOV::setSubRunStart(), RunDCSMagnetDat::setTime(), ecaldqm::MESetTrend::shift_(), ora::MappingRules::shortNameByUpperCase(), HcalZSAlgoRealistic::shouldKeep(), splitString(), HcalQIEManager::splitString(), CastorDbASCIIIO::splitString(), splitStringToDoubleByComma(), splitStringToFloatByComma(), splitStringToIntByComma(), CosmicMuonUtilities::stepPropagate(), pos::PixelTimeFormatter::stopTimer(), CSCCFEBData::timeSlice(), TiXmlParsingData::TiXmlParsingData(), TkOfflineVariables::TkOfflineVariables(), edm::VParameterSetEntry::toString(), edm::ParameterSet::toStringImp(), stor::ResourceMonitorCollection::updateSataBeastStatus(), evf::FUResourceBroker::waitForStateChange(), L1MuRegionalCand::writeDataField(), L1MuGMTCand::writeDataField(), and LMFUnique::writeDB().