Functions | |
def | format |
def | getDictFromObject |
def | getPieceFromObject |
Variables | |
string | action = "store_true" |
tuple | cFile = re.sub(r'_C$', r'.C', re.sub(r'\.so$','', shlib)) |
list | diff = diffColl[index] |
tuple | diffColl = getPieceFromObject(tree, name+'.diff') |
tuple | diffContRE = re.compile(r'^class goDiffCont_(\w+)') |
int | epsilon = 1 |
list | firstOnly = firstOnlyColl[index] |
tuple | firstOnlyColl = getPieceFromObject(tree, name + '.firstOnly') |
string | help = "Show deltas when difference is large enough." |
tuple | index = getDictFromObject(firstOnly, indexSingleDict) |
dictionary | indexDoubleDict = {'index':'index', 'delta_index':'delta_index'} |
dictionary | indexSingleDict = {'index':'index'} |
tuple | info = getDictFromObject(firstOnly, infoSingleDict) |
dictionary | infoDoubleDict = {} |
dictionary | infoSingleDict = {} |
tuple | match = diffContRE.search(line) |
string | name = '' |
tuple | parser = optparse.OptionParser("Usage: %prog bla.root lib.so var1 [var2]") |
tuple | rootfile = ROOT.TFile.Open(rootFilename) |
tuple | rootFilename = args.pop(0) |
tuple | runevent = getDictFromObject(tree, runeventDict, 'runevent') |
dictionary | runeventDict = {'Run':'run', 'Event':'event'} |
list | secondOnly = secondOnlyColl[index] |
tuple | secondOnlyColl = getPieceFromObject(tree, name + '.secondOnly') |
tuple | shlib = args.pop(0) |
tuple | size = tree.GetEntries() |
tuple | source = open(cFile, 'r') |
tuple | stringSet = set() |
tuple | tree = rootfile.Get('diffTree') |
tuple | typeFoundSet = set() |
dictionary | variableREDict = {} |
variables = args | |
list | working = [] |
def diffTreeTool::format | ( | objDict, | |
label, | |||
spacing = 9 , |
|||
firstOnly = False |
|||
) |
return a formatted string for given object
Definition at line 26 of file diffTreeTool.py.
Referenced by sistrip::MeasureLA::calibration_key(), ComphepSingletopFilter::endJob(), SummaryPlotFactory< CommissioningAnalysis * >::fill(), fill_dups(), EmDQMReco::FourVectorMonitorElements::FourVectorMonitorElements(), MatacqProducer::getMatacqFile(), IgProfModule::makeDump(), edm::service::IgProfService::makeDump(), FastTimerService::postBeginJob(), MatacqProducer::runSubDir(), FWTriggerTableView::saveImageTo(), FWTableView::saveImageTo(), TrackingMaterialAnalyser::saveParameters(), FastTimerService::setNumberOfProcesses(), edm::root::stdNamespaceAdder(), sistrip::EnsembleCalibrationLA::write_ensembles_text(), edm::writeParameterValue::writeValue(), edm::writeParameterValue::writeValueInVector(), edm::writeParameterValue::writeValueInVectorWithSpace(), and edm::writeParameterValue::writeVector().
00027 : 00028 '''return a formatted string for given object''' 00029 value = objDict[label] 00030 if firstOnly: 00031 diff = 0. 00032 else: 00033 diff = objDict['delta_' + label] 00034 00035 problem = False 00036 if isinstance (value, float): 00037 formatString = '%%%d.%df' % (spacing, spacing - 5) 00038 retval = formatString % value 00039 if abs(diff) > epsilon: 00040 if options.delta: 00041 retval += ' [' + formatString % (diff) + ']' 00042 else: 00043 retval += ' (' + formatString % (value + diff) + ')' 00044 elif not firstOnly: 00045 retval += ' ' * (spacing + 3) 00046 return retval 00047 else: 00048 formatString = '%%%ds' % spacing 00049 retval = formatString % value 00050 if diff: 00051 if isinstance (value, str): 00052 retval += ' (' + formatString % diff + ')' 00053 elif options.delta: 00054 retval += ' [' + formatString % diff + ']' 00055 else: 00056 retval += ' (' + formatString % (value + diff) + ')' 00057 elif not firstOnly: 00058 retval += ' ' * (spacing + 3) 00059 return retval 00060
def diffTreeTool::getDictFromObject | ( | obj, | |
varDict, | |||
prefix = '' |
|||
) |
Given a object and a prefix, fills an return dictionary with the proper values
Definition at line 15 of file diffTreeTool.py.
00016 : 00017 """Given a object and a prefix, fills an return dictionary with the 00018 proper values""" 00019 if prefix: 00020 obj = getPieceFromObject (obj, prefix) 00021 retval = {} 00022 for key, description in varDict.iteritems(): 00023 retval[key] = getPieceFromObject (obj, description) 00024 return retval 00025
def diffTreeTool::getPieceFromObject | ( | obj, | |
description | |||
) |
Returns piece from object
Definition at line 10 of file diffTreeTool.py.
string diffTreeTool::action = "store_true" |
Definition at line 64 of file diffTreeTool.py.
tuple diffTreeTool::cFile = re.sub(r'_C$', r'.C', re.sub(r'\.so$','', shlib)) |
Definition at line 80 of file diffTreeTool.py.
list diffTreeTool::diff = diffColl[index] |
Definition at line 194 of file diffTreeTool.py.
Referenced by edm::CountAndLimit::add(), BetaCalculatorECAL::addStepToXtal(), L1Scalers::analyze(), ExampleMuonAnalyzer::analyze(), PFJetAnalyzer::analyze(), IsolatedTracksNxN::analyze(), JetAnalyzer::analyze(), FWTrackResidualDetailView::build(), PFClusterAlgo::buildPFClusters(), BxTiming::calcBxDiff(), GsfVertexWeightCalculator::calculate(), ClusterShapeAlgo::Calculate_EnergyDepTopology(), popcon::EcalLaserHandler::checkAPDPN(), HcalLogicalMap::checkElectronicsHashIds(), HcalLogicalMap::checkHashIds(), BasicMultiTrajectoryState::combine(), TrackerGeometryCompare::compareGeometries(), MuonGeometryArrange::compareGeometries(), VertexDistanceXY::compatibility(), VertexDistance3D::compatibility(), RoadMaker::constructRoads(), rpcrawtodigi::EventRecords::dataToTriggerDelay(), AlphaTVarProducer::deltaHt(), HLTHemiDPhiFilter::deltaPhi(), HLTEcalResonanceFilter::DeltaPhi(), IsolatedTracksCone::DeltaPhi(), IsolatedTracksNxN::DeltaPhi(), IsolatedGenParticles::DeltaPhi(), ALIUtils::diff2pi(), OpticalObject::diff2pi(), TrackerGeometryCompare::diffCommonTrackerSystem(), TangentCircle::direction(), VertexDistance3D::distance(), VertexDistanceXY::distance(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCOfflineMonitor::doOccupancies(), CSCValidation::doOccupancies(), CSCOfflineMonitor::doStripDigis(), CSCValidation::doStripDigis(), DTTrigGeom::dumpLUT(), edm::service::ELrecv(), HOCalibAnalyzer::endJob(), L1TRPCTF::endRun(), fireworks::energyTower3DCorners(), OpticalObject::eq2ang(), ALIUtils::eq2ang(), fireworks::etTower3DCorners(), PedestalsTask::fill(), CSCEfficiency::fillStrips_info(), MuonTimingFiller::fillTimeFromMeasurements(), DTTimingExtractor::fillTiming(), CSCTimingExtractor::fillTiming(), DTHVStatusHandler::filterData(), TwoTrackMinimumDistanceHelixLine::finalPoints(), CSCMake2DRecHit::findWireBx(), MuonKinkFinder::getChi2(), MatcherUsingTracksAlgorithm::getChi2(), EcalClusterTools::getEnergyDepTopology(), DTTimeBoxFitter::getFitSeeds(), HelixBarrelPlaneCrossing2OrderLocal::HelixBarrelPlaneCrossing2OrderLocal(), ThirdHitPredictionFromCircle::invCenterOnAxis(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::iterativeSearch(), SiStripHotStripAlgorithmFromClusterOccupancy::iterativeSearch(), GlobalTrackQualityProducer::kink(), MuonGeometryArrange::makeGraph(), SiStripRecHitMatcher::match(), MatcherByPullsAlgorithm::match(), GSRecHitMatcher::match(), RKOne4OrderStep< T, N >::operator()(), CSCThrTurnOnFcn::operator()(), HcalTrigPrimMonitor::processEvent(), CSCTFPtMethods::Pt2StnChiSq(), CSCTFPtMethods::Pt3StnChiSq(), DTSurvey::ReadChambers(), L1MuDTEUX::run(), ProfileLikelihood::run(), SimpleL1MuGMTCand::setEta(), DQMNet::setOrder(), SimpleL1MuGMTCand::setPhi(), SimpleL1MuGMTCand::setPt(), CSCSegAlgoShowering::showerSeg(), VertexDistanceXY::signedDistance(), VertexDistance3D::signedDistance(), RK4PreciseStep::stepWithAccuracy(), FastVerticalInterpHistPdfBase::syncTotal(), ThirdHitPredictionFromCircle::ThirdHitPredictionFromCircle(), CSCFitAFEBThr::ThresholdNoise(), CSCSegment::time(), GflashG4Watcher::update(), reco::GhostTrackVertexFinder::vertexCompat(), vtxMean(), SiPixelTemplate::xtemp3d_int(), SiStripTemplate::xtemp3d_int(), and SiPixelTemplate::ytemp3d_int().
tuple diffTreeTool::diffColl = getPieceFromObject(tree, name+'.diff') |
Definition at line 185 of file diffTreeTool.py.
tuple diffTreeTool::diffContRE = re.compile(r'^class goDiffCont_(\w+)') |
Definition at line 86 of file diffTreeTool.py.
int diffTreeTool::epsilon = 1 |
Definition at line 8 of file diffTreeTool.py.
Definition at line 158 of file diffTreeTool.py.
tuple diffTreeTool::firstOnlyColl = getPieceFromObject(tree, name + '.firstOnly') |
Definition at line 149 of file diffTreeTool.py.
string diffTreeTool::help = "Show deltas when difference is large enough." |
Definition at line 65 of file diffTreeTool.py.
tuple diffTreeTool::index = getDictFromObject(firstOnly, indexSingleDict) |
Definition at line 159 of file diffTreeTool.py.
dictionary diffTreeTool::indexDoubleDict = {'index':'index', 'delta_index':'delta_index'} |
Definition at line 135 of file diffTreeTool.py.
dictionary diffTreeTool::indexSingleDict = {'index':'index'} |
Definition at line 134 of file diffTreeTool.py.
tuple diffTreeTool::info = getDictFromObject(firstOnly, infoSingleDict) |
Definition at line 161 of file diffTreeTool.py.
dictionary diffTreeTool::infoDoubleDict = {} |
Definition at line 137 of file diffTreeTool.py.
dictionary diffTreeTool::infoSingleDict = {} |
Definition at line 136 of file diffTreeTool.py.
tuple diffTreeTool::match = diffContRE.search(line) |
Definition at line 99 of file diffTreeTool.py.
tuple diffTreeTool::name = '' |
Definition at line 95 of file diffTreeTool.py.
tuple diffTreeTool::parser = optparse.OptionParser("Usage: %prog bla.root lib.so var1 [var2]") |
Definition at line 62 of file diffTreeTool.py.
tuple diffTreeTool::rootfile = ROOT.TFile.Open(rootFilename) |
Definition at line 126 of file diffTreeTool.py.
tuple diffTreeTool::rootFilename = args.pop(0) |
Definition at line 74 of file diffTreeTool.py.
tuple diffTreeTool::runevent = getDictFromObject(tree, runeventDict, 'runevent') |
Definition at line 146 of file diffTreeTool.py.
dictionary diffTreeTool::runeventDict = {'Run':'run', 'Event':'event'} |
Definition at line 133 of file diffTreeTool.py.
Definition at line 176 of file diffTreeTool.py.
tuple diffTreeTool::secondOnlyColl = getPieceFromObject(tree, name + '.secondOnly') |
Definition at line 167 of file diffTreeTool.py.
tuple diffTreeTool::shlib = args.pop(0) |
Definition at line 75 of file diffTreeTool.py.
tuple diffTreeTool::size = tree.GetEntries() |
Definition at line 132 of file diffTreeTool.py.
tuple diffTreeTool::source = open(cFile, 'r') |
Definition at line 92 of file diffTreeTool.py.
tuple diffTreeTool::stringSet = set() |
Definition at line 93 of file diffTreeTool.py.
tuple diffTreeTool::tree = rootfile.Get('diffTree') |
Definition at line 129 of file diffTreeTool.py.
Referenced by DeDxDiscriminatorLearnerFromCalibTree::algoAnalyzeTheTree(), SiStripGainFromCalibTree::algoAnalyzeTheTree(), RivetHarvesting::analyze(), HcalIsoTrkAnalyzer::analyze(), DumpFWRecoGeometry::analyze(), JetTagMVATreeTrainer::analyze(), DumpFWTGeoRecoGeometry::analyze(), HcalIsoTrkAnalyzer::beginJob(), AlignmentMonitorSurvey::book(), FFTJetPatRecoProducer::buildDenseProduct(), ConstrainedTreeBuilderT::buildRealTree(), FFTJetPatRecoProducer::buildSparseProduct(), FinalTreeBuilder::buildTree(), ConstrainedTreeBuilder::buildTree(), SiPixelFedCablingMap::cablingTree(), pftools::Exercises3::calibrateCalibratables(), pftools::CalibCompare::calibrateCalibratables(), fwlite::ChainEvent::ChainEvent(), fwlite::DataGetterHelper::DataGetterHelper(), TrackerOfflineValidation::endJob(), TrackerOfflineValidationSummary::endJob(), fwlite::EventSetup::exists(), edm::RootOutputFile::finishEndFile(), HPDNoiseReader::HPDNoiseReader(), FWGeometry::loadMap(), edm::numEntries(), DQMRootOutputModule::openFile(), KinematicVertex::operator reco::Vertex(), JetTagMVAExtractor::process(), RootTreeHandler::readTree(), fwlite::EventSetup::recordID(), Combine::run(), HcalDetDiagNoiseMonitor::SaveRates(), HcalDetDiagPedestalMonitor::SaveReference(), HcalDetDiagLEDMonitor::SaveReference(), HcalDetDiagLaserMonitor::SaveReference(), PVFitter::setTree(), fftjetcms::sparsePeakTreeToStorable(), TransientTrackKinematicParticle::TransientTrackKinematicParticle(), LagrangeChildUpdator::update(), VirtualKinematicParticle::VirtualKinematicParticle(), MillePedeVariablesIORoot::writeMillePedeVariables(), RootTreeHandler::writeTree(), NtupleROOTFile::~NtupleROOTFile(), and JetTagMVAExtractor::Tree::~Tree().
tuple diffTreeTool::typeFoundSet = set() |
Definition at line 94 of file diffTreeTool.py.
dictionary diffTreeTool::variableREDict = {} |
Definition at line 88 of file diffTreeTool.py.
diffTreeTool::variables = args |
Definition at line 76 of file diffTreeTool.py.
list diffTreeTool::working = [] |
Definition at line 115 of file diffTreeTool.py.