#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 75 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 estimatePileup::hist, and i.
void ExpressionHisto< T >::initialize | ( | TFileDirectory & | fs | ) |
Definition at line 79 of file ExpressionHisto.h.
References idDealer::description, estimatePileup::hist, i, TFileDirectory::make(), bookConverter::max, min(), mergeVDriftHistosByStation::name, and pileupCalc::nbins.
Referenced by HistoAnalyzer< C >::HistoAnalyzer().
|
private |
Definition at line 50 of file ExpressionHisto.h.
Referenced by argparse.ArgumentParser::format_help(), and python.rootplot.argparse.ArgumentParser::format_help().
|
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.
|
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__(), dirstructure.Directory::__create_pie_image(), dqm_interfaces.DirID::__eq__(), BeautifulSoup.Tag::__eq__(), dirstructure.Directory::__get_full_path(), dirstructure.Comparison::__get_img_name(), dataset.Dataset::__getDataType(), dataset.Dataset::__getFileInfoList(), cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), 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.CFG::__str__(), counter.Counter::__str__(), average.Average::__str__(), BeautifulSoup.Tag::__str__(), BeautifulSoup.SoupStrainer::__str__(), core.autovars.NTupleObjectType::allVars(), dirstructure.Directory::calcStats(), validation.Sample::digest(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), 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(), 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(), BeautifulSoup.SoupStrainer::searchTag(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), Vispa.Views.PropertyView.Property::valueChanged(), 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().