Public Member Functions | |
def | __init__ |
def | __str__ |
def | create |
Private Attributes | |
_histoName | |
_mapping | |
_name | |
_normalizeTo | |
_renameBin | |
_scale | |
Class to create a histogram by aggregating bins of another histogram to a bin of the resulting histogram.
Definition at line 241 of file plotting.py.
def plotting.AggregateBins.__init__ | ( | self, | |
name, | |||
histoName, | |||
mapping, | |||
normalizeTo = None , |
|||
scale = None , |
|||
renameBin = None |
|||
) |
Constructor. Arguments: name -- String for the name of the resulting histogram histoName -- String for the name of the source histogram mapping -- Dictionary or list 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 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]"). If the mapping is a list, it should only contain the source bin labels. In this case, the resulting histogram contains a subset of the bins of the source histogram.
Definition at line 243 of file plotting.py.
def plotting.AggregateBins.__str__ | ( | self | ) |
String representation, returns the name
Definition at line 273 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15Trig._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, plotting.Subtract._name, HistoParams< TProfile2D >._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, and SequenceTypes.SequencePlaceholder._name.
def plotting.AggregateBins.create | ( | self, | |
tdirectory | |||
) |
Create and return the histogram from a TDirectory
Definition at line 277 of file plotting.py.
References plotting._getOrCreateObject(), plotting.AggregateBins._histoName, plotting.AggregateBins._mapping, FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15Trig._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, plotting.Subtract._name, HistoParams< TProfile2D >._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.AggregateBins._normalizeTo, plotting.AggregateBins._renameBin, plotting.AggregateBins._scale, and Vispa.Gui.VispaWidget.VispaWidget._scale.
|
private |
Definition at line 267 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 268 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 266 of file plotting.py.
Referenced by plotting.AggregateBins.__str__(), plotting.AggregateHistos.__str__(), plotting.ROC.__str__(), plotting.Plot._createOne(), plotting.PlotGroup._drawSeparate(), plotting.PlotGroup._save(), plotting.AggregateBins.create(), plotting.AggregateHistos.create(), plotting.PlotGroup.draw(), plotting.Plot.getName(), plotting.PlotterFolder.getName(), plotting.PlotterFolder.getSelectionNameIterator(), validation.SimpleSample.name(), and plotting.PlotterItem.readDirs().
|
private |
Definition at line 269 of file plotting.py.
Referenced by plotting.AggregateBins.create(), and plotting.AggregateHistos.create().
|
private |
Definition at line 271 of file plotting.py.
Referenced by plotting.AggregateBins.create().
|
private |
Definition at line 270 of file plotting.py.
Referenced by plotting.AggregateBins.create(), and plotting.Plot.create().