Classes | |
class | Hist |
class | Hist2D |
Define classes. More... | |
class | HistStack |
class | RootFile |
Functions | |
def | _rootglob0 |
def | _rootglob1 |
def | find_num_processors |
def | get |
def | has_glob_magic |
def | irootglob |
def | loadROOT |
Define additional helping functions. More... | |
def | ls |
def | process_bin_labels |
def | pwd |
def | replace |
def | rootglob |
def | testfile |
def | wilson_interval |
Variables | |
string | __license__ |
tuple | glob_magic_check = re.compile('[*?[]') |
Functions for globbing within root files. More... | |
Utilities for rootplot including histogram classes.
|
private |
Definition at line 552 of file utilities.py.
|
private |
Definition at line 545 of file utilities.py.
def python.rootplot.utilities.find_num_processors | ( | ) |
def python.rootplot.utilities.get | ( | object_name | ) |
Return a Hist object with the given name.
Definition at line 426 of file utilities.py.
def python.rootplot.utilities.has_glob_magic | ( | s | ) |
def python.rootplot.utilities.irootglob | ( | tdirectory, | |
pathname | |||
) |
Return an iterator which yields the paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch.
Definition at line 575 of file utilities.py.
References python.rootplot.utilities.has_glob_magic().
Referenced by python.rootplot.utilities.rootglob().
Define additional helping functions.
Definition at line 433 of file utilities.py.
References join().
def python.rootplot.utilities.ls | ( | directory = None | ) |
Return a python list of ROOT object names from the given directory.
Definition at line 408 of file utilities.py.
Referenced by HcalLaserEventFilter2012.addEventString(), DisplayGeom.analyze(), FWBeamSpotProxyBuilder.build(), FWPFClusterRPZProxyBuilder.build(), FWPFClusterRPZUtils.buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils.buildRhoZClusterLineSet(), evf::EvFDaqDirector.bumpFile(), L1TSync.certifyLSBlock(), CompositeLogicalTrajectoryFilter.CompositeLogicalTrajectoryFilter(), L1TSync.doFractionInSync(), L1TSync_Harvest.doFractionInSync(), L1TRate.endLuminosityBlock(), RateBuffer.fill(), EcalDeadCellTriggerPrimitiveFilter.filter(), RateBuffer.getLSAlgoRate(), RateBuffer.getLSRate(), RateBuffer.getLSTechRate(), BeamSpotWorkflow.getNewRunList(), IdealZDCTrapezoid.initCorners(), IdealCastorTrapezoid.initCorners(), EcalDeadCellTriggerPrimitiveFilter.loadEventInfo(), FWBeamSpotProxyBuilder.localModelChanges(), ls_cert_type(), lsbs_cert(), copyAndRename.main(), copyFromCastor.main(), rename.main(), copyFiles.main(), main(), splitter.main(), checkRuns.main(), nlumis(), evf::EvFDaqDirector.preGlobalEndLumi(), AlpgenSource.readAlpgenEvent(), FedRawDataInputSource.readSupervisor(), lumi::TRGScalers2DB.retrieveData(), GenericTripletGenerator.run(), BeamHaloPairGenerator.run(), GenericPairGenerator.run(), fffnaming.runLumiPrefix(), fffnaming.runLumiPrefixFill(), MonitorElement.setLumi(), DIPLumiDetail.setOrigin(), DIPLumiSummary.setOrigin(), FWPFClusterRPZProxyBuilder.sharedBuild(), TT6CMNSubtractor.subtract_(), IteratedMedianCMNSubtractor.subtract_(), SimpleCosmicBONSeeder.triplets(), DTTimeEvolutionHisto.updateTimeSlot(), and RawEventOutputModuleForBU< Consumer >.write().
def python.rootplot.utilities.process_bin_labels | ( | binlabels | ) |
Definition at line 484 of file utilities.py.
def python.rootplot.utilities.pwd | ( | ) |
def python.rootplot.utilities.replace | ( | string, | |
replacements | |||
) |
Modify a string based on a list of patterns and substitutions. replacements should be a list of two-entry tuples, the first entry giving a string to search for and the second entry giving the string with which to replace it. If replacements includes a pattern entry containing 'use_regexp', then all patterns will be treated as regular expressions using re.sub.
Definition at line 461 of file utilities.py.
def python.rootplot.utilities.rootglob | ( | tdirectory, | |
pathname | |||
) |
Return a list of paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. >>> import rootplot.utilities >>> f = rootplot.utilities.testfile() >>> rootglob(f, '*') ['dir1', 'dir2', 'dir3', 'dir4'] >>> rootglob(f, 'dir1/*') ['dir1/hist1', 'dir1/hist2', 'dir1/hist3', 'dir1/hist4'] >>> rootglob(f, '*/hist1') ['dir1/hist1', 'dir2/hist1', 'dir3/hist1', 'dir4/hist1'] >>> rootglob(f, 'dir1/hist[1-2]') ['dir1/hist1', 'dir1/hist2']
Definition at line 557 of file utilities.py.
References python.rootplot.utilities.irootglob(), and list().
Referenced by python.rootplot.rootmath.main(), and python.rootplot.rootmath.newadd().
def python.rootplot.utilities.testfile | ( | ) |
Definition at line 521 of file utilities.py.
def python.rootplot.utilities.wilson_interval | ( | numerator_array, | |
denominator_array | |||
) |
Definition at line 494 of file utilities.py.
References archive.zip.
Referenced by python.rootplot.utilities.Hist.divide_wilson().
string python.rootplot.utilities.__license__ |
Definition at line 5 of file utilities.py.
tuple python.rootplot.utilities.glob_magic_check = re.compile('[*?[]') |
Functions for globbing within root files.
Definition at line 535 of file utilities.py.