#include <CommonTools/Utils/interface/ExpressionHisto.h>
Public Member Functions | |
ExpressionHisto (const edm::ParameterSet &iConfig) | |
bool | fill (const T &element, double weight=1.0, uint32_t i=0) |
void | initialize (TFileDirectory &fs) |
~ExpressionHisto () | |
Private Attributes | |
std::string | description |
StringObjectFunction< T > | function |
TH1F ** | hist |
double | max |
double | min |
std::string | name |
int | nbins |
uint32_t | nhistos |
bool | separatePlots |
Description: Histogram tool using expressions
Usage: <usage>
Definition at line 34 of file ExpressionHisto.h.
ExpressionHisto< T >::ExpressionHisto | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 58 of file ExpressionHisto.h.
References ExpressionHisto< T >::nhistos, and ExpressionHisto< T >::separatePlots.
ExpressionHisto< T >::~ExpressionHisto | ( | ) |
Definition at line 77 of file ExpressionHisto.h.
bool ExpressionHisto< T >::fill | ( | const T & | element, |
double | weight = 1.0 , |
||
uint32_t | i = 0 |
||
) |
Plot the quantity for the specified element and index. Returns true if the quantity has been plotted, false otherwise. A return value of "false" means "please don't send any more elements". The default "i = 0" is to keep backwards compatibility with usages outside HistoAnalyzer
Definition at line 103 of file ExpressionHisto.h.
References gpuVertexFinder::hist, and mps_fire::i.
void ExpressionHisto< T >::initialize | ( | TFileDirectory & | fs | ) |
Definition at line 80 of file ExpressionHisto.h.
References edmLumisInFiles::description, compareTotals::fs, gpuVertexFinder::hist, mps_fire::i, SiStripPI::max, SiStripPI::min, Skims_PA_cff::name, and LaserClient_cfi::nbins.
|
private |
Definition at line 50 of file ExpressionHisto.h.
|
private |
Definition at line 54 of file ExpressionHisto.h.
Referenced by core.autovars.NTupleVariable::__call__(), and core.autovars.NTupleSubObject::__call__().
|
private |
Definition at line 53 of file ExpressionHisto.h.
Referenced by EnergyCorrector.EnergyCorrector::correction_factor(), and Histogrammer.Histogrammer::process().
|
private |
Definition at line 48 of file ExpressionHisto.h.
|
private |
Definition at line 48 of file ExpressionHisto.h.
|
private |
Definition at line 50 of file ExpressionHisto.h.
Referenced by ElectronMVAID.ElectronMVAID::__call__(), FWLite.ElectronMVAID::__call__(), dirstructure.Directory::__create_pie_image(), DisplayManager.DisplayManager::__del__(), dqm_interfaces.DirID::__eq__(), dirstructure.Directory::__get_full_path(), dirstructure.Comparison::__get_img_name(), dataset.Dataset::__getDataType(), dataset.Dataset::__getFileInfoList(), dirstructure.Comparison::__make_image(), core.autovars.NTupleVariable::__repr__(), core.autovars.NTupleObjectType::__repr__(), core.autovars.NTupleObject::__repr__(), core.autovars.NTupleCollection::__repr__(), dirstructure.Directory::__repr__(), dqm_interfaces.DirID::__repr__(), dirstructure.Comparison::__repr__(), config.Service::__setattr__(), config.CFG::__str__(), counter.Counter::__str__(), average.Average::__str__(), FWLite.WorkingPoints::_reformat_cut_definitions(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), dataset.CMSDataset::buildListOfFiles(), dataset.LocalDataset::buildListOfFiles(), dataset.CMSDataset::buildListOfFilesDBS(), dirstructure.Directory::calcStats(), validation.Sample::digest(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), DisplayManager.DisplayManager::Draw(), TreeCrawler.Package::dump(), core.autovars.NTupleVariable::fillBranch(), core.autovars.NTupleObject::fillBranches(), core.autovars.NTupleCollection::fillBranchesScalar(), core.autovars.NTupleCollection::fillBranchesVector(), core.autovars.NTupleCollection::get_cpp_declaration(), core.autovars.NTupleCollection::get_cpp_wrapper_class(), core.autovars.NTupleCollection::get_py_wrapper_class(), utils.StatisticalTest::get_status(), production_tasks.Task::getname(), dataset.CMSDataset::getPrimaryDatasetEntries(), dataset.PrivateDataset::getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase::initialize(), personalPlayback.Applet::log(), core.autovars.NTupleVariable::makeBranch(), core.autovars.NTupleObject::makeBranches(), core.autovars.NTupleCollection::makeBranchesScalar(), core.autovars.NTupleCollection::makeBranchesVector(), dirstructure.Directory::print_report(), dataset.BaseDataset::printInfo(), dataset.Dataset::printInfo(), production_tasks.MonitorJobs::run(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), counter.Counter::write(), and average.Average::write().
|
private |
Definition at line 49 of file ExpressionHisto.h.
Referenced by python.rootplot.utilities.Hist::__init_TGraph(), python.rootplot.utilities.Hist::__len__(), python.rootplot.root2matplotlib.Hist::_prepare_xaxis(), python.rootplot.root2matplotlib.Hist::_prepare_yaxis(), python.rootplot.utilities.Hist::av_xerr(), python.rootplot.utilities.Hist::av_yerr(), python.rootplot.utilities.Hist::delete_bin(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::TGraph(), and python.rootplot.utilities.Hist::TH1F().
|
private |
Definition at line 51 of file ExpressionHisto.h.
Referenced by ExpressionHisto< T >::ExpressionHisto().
|
private |
Definition at line 52 of file ExpressionHisto.h.
Referenced by ExpressionHisto< T >::ExpressionHisto().