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 5 of file dqm_diff.py.
00006 : 00007 """Adds current directory file (histogram) names to ``names_list``. Then 00008 recursively calls itself for every current directory sub-directories.""" 00009 for key in directory.GetListOfKeys(): 00010 subdir = directory.Get(key.GetName()) 00011 if subdir: 00012 if subdir.IsFolder(): 00013 collect_directory_filenames(subdir, names_list) 00014 else: 00015 filename = directory.GetPath().split(':')[1] + ': ' + subdir.GetName() 00016 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 27 of file dqm_diff.py.
00028 : 00029 """Prints file (histogram) names that are in <file1> and not in <file2>.""" 00030 print "Missing files:" 00031 content1 = get_content(filename1) 00032 content2 = get_content(filename2) 00033 printed = False 00034 for name in content1: 00035 if name not in content2: 00036 print " ->", name 00037 printed = True 00038 if not printed: 00039 print " All files match." 00040
def dqm_diff::get_content | ( | root_file_name | ) |
Returns all file (histogram) names, which are found in <root_file_name>.
Definition at line 17 of file dqm_diff.py.
00018 : 00019 """Returns all file (histogram) names, which are found in <root_file_name>.""" 00020 from ROOT import TFile 00021 root_file = TFile(root_file_name) 00022 root_directory = root_file.GetDirectory("DQMData") 00023 filename_set = set() 00024 collect_directory_filenames(root_directory, filename_set) 00025 root_file.Close() 00026 return filename_set
string dqm_diff::dest = 'show_exec_time' |
Definition at line 44 of file dqm_diff.py.
tuple dqm_diff::parser = OptionParser(usage='usage: %prog <root_file1> <root_file2> [options]') |
Define commandline options.
Definition at line 42 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 52 of file dqm_diff.py.
Referenced by BetaCalculatorRPC::addInfoToCandidate(), EcalDumpRaw::analyze(), HLTTauDQMAutomation::AutoCompleteConfig(), HLTTauDQMAutomation::AutoCompleteMatching(), L1TDTTF::beginJob(), L1TDTTFClient::buildPhiEtaPlotO(), L1TDTTFClient::buildPhiEtaPlotOFC(), LocalCacheFile::cache(), tkDetUtil::calculatePhiWindow(), CalibrationScanTask::CalibrationScanTask(), CalibrationTask::CalibrationTask(), DQMStore::cdInto(), SimpleCosmicBONSeeder::checkNoisyModules(), AutoLibraryLoader::enable(), ElectronCalibrationUniv::endJob(), EZArrayFL< GlobalPoint >::EZArrayFL(), EZArrayVL< T >::EZArrayVL(), EcalCondDBInterface::fetchDCSPTMTempList(), DCSPTMTempList::fetchValuesForECIDAndTime(), CSCConditions::fillBadStripWords(), CSCConditions::fillBadWireWords(), MuonResiduals6DOFFitter::fit(), MuonResiduals6DOFrphiFitter::fit(), MuonResiduals5DOFFitter::fit(), MuonResidualsPositionFitter::fit(), MuonResidualsBfieldAngleFitter::fit(), MuonResiduals1DOFFitter::fit(), MuonResidualsAngleFitter::fit(), evf::FUEventProcessor::forkProcessesFromEDM(), EcalBarrelGeometry::getClosestCell(), DTTimeBoxFitter::getFitSeeds(), LMFRunIOV::getParameters(), TrackAssociatorByPosition::getState(), StormLcgGtStorageMaker::getTURL(), StormStorageMaker::getTURL(), MatcherUsingTracksAlgorithm::match(), ora::MappingRules::nameForSchema(), CartesianLorentzForce::operator()(), RK4PreciseStep::operator()(), edm::operator<<(), HcalTBObjectUnpacker::parseCalib(), pos::PixelFEDTestDAC::PixelFEDTestDAC(), LocalCacheFile::prefetch(), prettyPrint(), TrackClusterSplitter::produce(), RKPropagatorInZ::propagate(), RKPropagatorInR::propagate(), RKPropagatorInS::propagateParametersOnCylinder(), RKPropagatorInS::propagateParametersOnPlane(), RFIOFile::read(), RunInfoRead::readData(), L1MuRegionalCand::readDataField(), L1MuGMTCand::readDataField(), TiXmlBase::ReadName(), LocalCacheFile::readv(), HLTTauDQMFilter::regexSearch(), L1MuDTExtrapolationUnit::run(), SiStripRecHitConverterAlgorithm::run(), HICTrajectoryBuilder::seedMeasurements(), 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(), TkStripMeasurementDet::testStrips(), CSCCFEBData::timeSlice(), TiXmlParsingData::TiXmlParsingData(), edm::VParameterSetEntry::toString(), edm::ParameterSet::toStringImp(), stor::ResourceMonitorCollection::updateSataBeastStatus(), evf::FUResourceBroker::waitForStateChange(), L1MuRegionalCand::writeDataField(), L1MuGMTCand::writeDataField(), and LMFUnique::writeDB().