Public Member Functions | |
def | __init__ (self, name, histoName, mapping, normalizeTo=None, scale=None, renameBin=None, ignoreMissingBins=False, minExistingBins=None, originalOrder=False, reorder=None) |
def | __str__ (self) |
def | create (self, tdirectory) |
Private Attributes | |
_histoName | |
_ignoreMissingBins | |
_mapping | |
_minExistingBins | |
_name | |
_normalizeTo | |
_originalOrder | |
_renameBin | |
_reorder | |
_scale | |
Class to create a histogram by aggregating bins of another histogram to a bin of the resulting histogram.
Definition at line 947 of file plotting.py.
def plotting.AggregateBins.__init__ | ( | self, | |
name, | |||
histoName, | |||
mapping, | |||
normalizeTo = None , |
|||
scale = None , |
|||
renameBin = None , |
|||
ignoreMissingBins = False , |
|||
minExistingBins = None , |
|||
originalOrder = False , |
|||
reorder = None |
|||
) |
Constructor. Arguments: name -- String for the name of the resulting histogram histoName -- String for the name of the source histogram mapping -- Dictionary for mapping the bins (see below) Keyword arguments: normalizeTo -- Optional string of a bin label in the source histogram. If given, all bins of the resulting histogram are divided by the value of this bin. scale -- Optional number for scaling the histogram (passed to ROOT.TH1.Scale()) renameBin -- Optional function (string -> string) to rename the bins of the input histogram originalOrder -- Boolean for using the order of bins in the histogram (default False) reorder -- Optional function to reorder the bins Mapping structure (mapping): Dictionary (you probably want to use collections.OrderedDict) should be a mapping from the destination bin label to a list of source bin labels ("dst -> [src]").
Definition at line 949 of file plotting.py.
def plotting.AggregateBins.__str__ | ( | self | ) |
String representation, returns the name
Definition at line 983 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, TrackingRecHitAlgorithm._name, Logger._name, hcaldqm::DQModule._name, citk::IsolationConeDefinitionBase._name, DrellYanValidation._name, WValidation._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, GeometricDetExtra._name, GeometricTimingDetExtra._name, HistoParams< T >._name, CutApplicatorBase._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, SequenceTypes.SequencePlaceholder._name, plotting.Subtract._name, plotting.Transform._name, plotting.FakeDuplicate._name, plotting.CutEfficiency._name, plotting.AggregateBins._name, and SequenceTypes.TaskPlaceholder._name.
def plotting.AggregateBins.create | ( | self, | |
tdirectory | |||
) |
Create and return the histogram from a TDirectory
Definition at line 987 of file plotting.py.
References plotting._getOrCreateObject(), plotting.AggregateBins._histoName, plotting.AggregateBins._ignoreMissingBins, plotting.AggregateBins._mapping, plotting.AggregateBins._minExistingBins, FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, TrackingRecHitAlgorithm._name, Logger._name, hcaldqm::DQModule._name, citk::IsolationConeDefinitionBase._name, DrellYanValidation._name, WValidation._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, GeometricDetExtra._name, GeometricTimingDetExtra._name, HistoParams< T >._name, CutApplicatorBase._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, SequenceTypes.SequencePlaceholder._name, plotting.Subtract._name, plotting.Transform._name, plotting.FakeDuplicate._name, plotting.CutEfficiency._name, plotting.AggregateBins._name, SequenceTypes.TaskPlaceholder._name, plotting.AggregateBins._normalizeTo, plotting.AggregateBins._originalOrder, plotting.AggregateBins._renameBin, plotting.AggregateBins._reorder, plotting.AggregateBins._scale, plotting._th1ToOrderedDict(), edm.print(), FastTimerService_cff.range, and ComparisonHelper.zip().
|
private |
Definition at line 971 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 976 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 972 of file plotting.py.
Referenced by plotting.AggregateBins.create(), and plotting.AggregateHistos.create().
|
private |
Definition at line 977 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 970 of file plotting.py.
Referenced by plotting.AggregateBins.__str__(), plotting.AggregateHistos.__str__(), plotting.ROC.__str__(), trackingPlots.TimePerEventPlot.__str__(), trackingPlots.TimePerTrackPlot.__str__(), trackingPlots.TimePerEventPlot._create(), plotting.PlotGroup._drawSeparate(), plotting.PlotGroup._save(), plotting.AggregateBins.create(), plotting.AggregateHistos.create(), trackingPlots.TimePerTrackPlot.create(), plotting.Plot.create(), plotting.PlotGroup.draw(), plotting.Plot.getName(), plotting.PlotGroup.getName(), plotting.PlotterFolder.getName(), plotting.PlotterItem.getName(), plotting.PlotterFolder.getSelectionNameIterator(), validation.SimpleSample.name(), trackingPlots.Iteration.name(), plotting.PlotterItem.readDirs(), and plotting.PlotGroup.remove().
|
private |
Definition at line 973 of file plotting.py.
Referenced by plotting.AggregateBins.create(), and plotting.AggregateHistos.create().
|
private |
Definition at line 978 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 975 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 979 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 974 of file plotting.py.
Referenced by plotting.AggregateBins.create(), and plotting.Plot.create().