Public Member Functions | |
def | __init__ |
def | addToLegend |
def | create |
def | draw |
def | drawRatioUncertainty |
def | getName |
def | getNumberOfHistograms |
def | isEmpty |
def | isTGraph2D |
def | setProperties |
Private Member Functions | |
def | _calculateRatios |
def | _createOne |
def | _normalize |
def | _setStats |
Private Attributes | |
_forLegend | |
_frame | |
_gr | |
_histograms | |
_name | |
_ratio | |
_ratios | |
_th1 | |
_tmp_histos | |
_uncertainty | |
_xerrshigh | |
_xerrslow | |
_xvalues | |
_yerrshigh | |
_yerrslow | |
_yvalues | |
Represents one plot, comparing one or more histograms.
Definition at line 901 of file plotting.py.
def plotting.Plot.__init__ | ( | self, | |
name, | |||
kwargs | |||
) |
Constructor. Arguments: name -- String for name of the plot, or Efficiency object Keyword arguments: fallback -- Dictionary for specifying fallback (default None) title -- String for a title of the plot (default None) xtitle -- String for x axis title (default None) xtitlesize -- Float for x axis title size (default None) xtitleoffset -- Float for x axis title offset (default None) xlabelsize -- Float for x axis label size (default None) ytitle -- String for y axis title (default None) ytitlesize -- Float for y axis title size (default None) ytitleoffset -- Float for y axis title offset (default None) ztitle -- String for z axis title (default None) ztitleoffset -- Float for z axis title offset (default None) xmin -- Float for x axis minimum (default None, i.e. automatic) xmax -- Float for x axis maximum (default None, i.e. automatic) ymin -- Float for y axis minimum (default 0) ymax -- Float for y axis maximum (default None, i.e. automatic) xlog -- Bool for x axis log status (default False) ylog -- Bool for y axis log status (default False) xgrid -- Bool for x axis grid status (default True) ygrid -- Bool for y axis grid status (default True) stat -- Draw stat box? (default False) fit -- Do gaussian fit? (default False) statx -- Stat box x coordinate (default 0.65) staty -- Stat box y coordinate (default 0.8) statyadjust -- List of floats for stat box y coordinate adjustments (default None) normalizeToUnitArea -- Normalize histograms to unit area? (default False) profileX -- Take histograms via ProfileX()? (default False) fitSlicesY -- Take histograms via FitSlicesY() (default False) rebinX -- rebin x axis (default None) scale -- Scale histograms by a number (default None) xbinlabels -- List of x axis bin labels (if given, default None) xbinlabelsize -- Size of x axis bin labels (default None) xbinlabeloption -- Option string for x axis bin labels (default None) drawStyle -- If "hist", draw as line instead of points (default None) drawCommand -- Deliver this to Draw() (default: None for same as drawStyle) lineWidth -- If drawStyle=="hist", the width of line (default 2) legendDx -- Float for moving TLegend in x direction for separate=True (default None) legendDy -- Float for moving TLegend in y direction for separate=True (default None) legendDw -- Float for changing TLegend width for separate=True (default None) legendDh -- Float for changing TLegend height for separate=True (default None) adjustMarginRight -- Float for adjusting right margin (default None) ratioYmin -- Float for y axis minimum in ratio pad (default 0.9) ratioYmax -- Float for y axis maximum in ratio pad (default 1.1) ratioUncertainty -- Plot uncertainties on ratio? (default True) histogramModifier -- Function to be called in create() to modify the histograms (default None)
Definition at line 903 of file plotting.py.
Referenced by plotting.Plot._calculateRatios().
|
private |
Calculate the ratios for a list of histograms
Definition at line 1355 of file plotting.py.
References plotting.Plot.__init__(), funct.abs(), cond::serialization.equal(), and bookConverter.max.
|
private |
Create one histogram from a TDirectory.
Definition at line 1049 of file plotting.py.
References plotting._getOrCreateObject().
Referenced by plotting.Plot.create().
|
private |
Normalise histograms to unit area
Definition at line 1151 of file plotting.py.
References RunHistogramManager._histograms, and plotting.Plot._histograms.
Referenced by plotting.Plot.draw().
|
private |
Set stats box.
Definition at line 1110 of file plotting.py.
References DTSC._stat, and DTTrigGeom._stat.
def plotting.Plot.addToLegend | ( | self, | |
legend, | |||
legendLabels, | |||
denomUncertainty | |||
) |
Add histograms to a legend. Arguments: legend -- TLegend legendLabels -- List of strings for the legend labels
Definition at line 1334 of file plotting.py.
References RunHistogramManager._histograms, and plotting.Plot._histograms.
Create histograms from list of TDirectories
Definition at line 1060 of file plotting.py.
References plotting.Plot._createOne(), RunHistogramManager._histograms, plotting.Plot._histograms, FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, L1TMuon::PtRefinementUnit._name, L1TMuon::PtAssignmentUnit._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, Logger._name, hcaldqm::DQModule._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, ElectronMVAEstimatorRun2Spring15Trig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, plotting.Subtract._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.AggregateHistos._name, plotting.ROC._name, plotting.Plot._name, plotting.AggregateBins._scale, Vispa.Gui.VispaWidget.VispaWidget._scale, HistoParams< TH1F >._title, HistoParams< T >._title, HistoParams< TProfile >._title, HistoParams< TH2F >._title, HistoParams< TProfile2D >._title, plotting.Subtract._title, plotting.FakeDuplicate._title, html.PageSet._title, and html.HtmlReport._title.
def plotting.Plot.draw | ( | self, | |
pad, | |||
ratio, | |||
ratioFactor, | |||
nrows | |||
) |
Draw the histograms using values for a given algorithm.
Definition at line 1163 of file plotting.py.
References RunHistogramManager._histograms, plotting.Plot._histograms, plotting.Plot._normalize(), Node.getName(), HistoData.getName(), PhysicsTools::Source.getName(), ecaldqm::DBReaderWorker.getName(), CocoaMaterialElementary.getName(), LikelihoodSpecies.getName(), EcalLogicID.getName(), PCaloHit.getName(), pftools::SpaceManager.getName(), ecaldqm::DBWriterWorker.getName(), LikelihoodPdf.getName(), TkOfflineVariables.getName(), hcaldqm::mapper::Mapper.getName(), FieldHandlerBase< TOutput >.getName(), AnyMVAEstimatorRun2Base.getName(), FittedEntry.getName(), HPDNoiseDataCatalog.getName(), hcaldqm::mapper::HashMapper.getName(), jsoncollector::JsonMonitorable.getName(), CSGAction.getName(), L1TUtmAlgorithm.getName(), L1TUtmScale.getName(), DTTPGLutFile.getName(), PhysicsTools::MVATrainer.getName(), L1TriggerLutFile.getName(), QCriterion.getName(), SeedMergerPixelLayer.getName(), L1TUtmCondition.getName(), pos::PixelPortcardMap.getName(), L1MuGMTReg.getName(), GenericMVAComputer::TaggingVariableIterator< Iter_t >::Value.getName(), GEMStation.getName(), PhysicsTools::Variable::Value.getName(), pftools::SpaceVoxel.getName(), ecaldqm::DQWorker.getName(), L1TUtmObject.getName(), PhotonMVAEstimatorRun2Phys14NonTrig.getName(), PhotonMVAEstimatorRun2Spring15NonTrig.getName(), L1TUtmTriggerMenu.getName(), L1TUtmCut.getName(), ElectronMVAEstimatorRun2Phys14NonTrig.getName(), edm::ELslProxy< ELgen >.getName(), L1MuGMTRegMMConfig.getName(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.getName(), ElectronMVAEstimatorRun2Spring15Trig.getName(), ElectronMVAEstimatorRun2Spring15NonTrig.getName(), cscdqm::HistoDef.getName(), FourVectorHLT::PathInfo.getName(), jsoncollector::DataPoint.getName(), MonitorElement.getName(), edm::ELseverityLevel.getName(), PhysicsTools::Variable.getName(), PhysicsTools::TrainerMonitoring::Object.getName(), L1MuGMTRegSortRankOffset.getName(), L1MuGMTRegCDLConfig.getName(), cscdqm::CSCHistoDef.getName(), plotting.Plot.getName(), and plotting.Plot.isTGraph2D().
def plotting.Plot.drawRatioUncertainty | ( | self | ) |
def plotting.Plot.getName | ( | self | ) |
Definition at line 1039 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, L1TMuon::PtAssignmentUnit._name, L1TMuon::PtRefinementUnit._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, Logger._name, hcaldqm::DQModule._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, ElectronMVAEstimatorRun2Spring15Trig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, plotting.Subtract._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.AggregateHistos._name, plotting.ROC._name, and plotting.Plot._name.
Referenced by plotting.Plot.draw().
def plotting.Plot.getNumberOfHistograms | ( | self | ) |
Return number of existing histograms.
Definition at line 1025 of file plotting.py.
References RunHistogramManager._histograms, plotting.Plot._histograms, and alcazmumu_cfi.filter.
Referenced by plotting.Plot.isEmpty().
def plotting.Plot.isEmpty | ( | self | ) |
Return true if there are no histograms created for the plot
Definition at line 1029 of file plotting.py.
References plotting.Plot.getNumberOfHistograms().
def plotting.Plot.isTGraph2D | ( | self | ) |
Definition at line 1033 of file plotting.py.
References RunHistogramManager._histograms, and plotting.Plot._histograms.
Referenced by plotting.Plot.draw().
def plotting.Plot.setProperties | ( | self, | |
kwargs | |||
) |
Definition at line 1019 of file plotting.py.
|
private |
Definition at line 1347 of file plotting.py.
|
private |
Definition at line 1332 of file plotting.py.
|
private |
Definition at line 1448 of file plotting.py.
|
private |
Definition at line 1017 of file plotting.py.
Referenced by plotting.Plot._normalize(), plotting.Plot.addToLegend(), plotting.Plot.create(), plotting.Plot.draw(), plotting.Plot.getNumberOfHistograms(), and plotting.Plot.isTGraph2D().
|
private |
Definition at line 955 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate(), plotting.PlotGroup._save(), 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 1410 of file plotting.py.
|
private |
Definition at line 1319 of file plotting.py.
|
private |
Definition at line 1402 of file plotting.py.
|
private |
Definition at line 1241 of file plotting.py.
|
private |
Definition at line 1403 of file plotting.py.
|
private |
Definition at line 1452 of file plotting.py.
|
private |
Definition at line 1451 of file plotting.py.
|
private |
Definition at line 1450 of file plotting.py.
|
private |
Definition at line 1454 of file plotting.py.
|
private |
Definition at line 1455 of file plotting.py.
|
private |
Definition at line 1453 of file plotting.py.