#include <HistogramManager.h>
Public Types | |
typedef dqm::legacy::DQMStore | DQMStore |
typedef dqm::legacy::MonitorElement | MonitorElement |
typedef std::map < GeometryInterface::Values, AbstractHistogram > | Table |
Public Member Functions | |
void | addSpec (SummationSpecification spec) |
void | book (DQMStore::IBooker &iBooker, edm::EventSetup const &iSetup) |
void | executeHarvesting (DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter) |
void | executePerEventHarvesting (edm::Event const *ev) |
void | executePerLumiHarvesting (DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &iSetup) |
void | fill (DetId sourceModule, const edm::Event *sourceEvent=nullptr, int col=0, int row=0) |
void | fill (double value, DetId sourceModule, const edm::Event *sourceEvent=nullptr, int col=0, int row=0) |
void | fill (double x, double y, DetId sourceModule, const edm::Event *sourceEvent=nullptr, int col=0, int row=0) |
HistogramManager (const edm::ParameterSet &iConfig, GeometryInterface &geo) | |
Public Attributes | |
bool | bookUndefined |
int | dimensions |
bool | enabled |
edm::LuminosityBlock const * | lumisection = nullptr |
std::string | name |
bool | perLumiHarvesting |
double | range_x_max |
double | range_x_min |
int | range_x_nbins |
double | range_y_max |
double | range_y_min |
int | range_y_nbins |
bool | statsOverflows |
std::string | title |
std::string | top_folder_name |
std::string | xlabel |
std::string | ylabel |
Private Member Functions | |
void | executeExtend (SummationStep const &step, Table &t, std::string const &reduction, DQMStore::IBooker &iBooker, SummationSpecification const &s) |
void | executeGroupBy (SummationStep const &step, Table &t, DQMStore::IBooker &iBooker, SummationSpecification const &s) |
void | fillInternal (double x, double y, int n_parameters, GeometryInterface::InterestingQuantities const &iq, std::vector< SummationStep >::iterator first, std::vector< SummationStep >::iterator last, AbstractHistogram &dest) |
void | loadFromDQMStore (SummationSpecification &s, Table &t, DQMStore::IGetter &iGetter) |
std::pair< std::string, std::string > | makePathName (SummationSpecification const &s, GeometryInterface::Values const &, SummationStep const *upto) |
Private Attributes | |
std::vector< Table > | counters |
std::vector< AbstractHistogram * > | fastpath |
GeometryInterface & | geometryInterface |
const edm::ParameterSet & | iConfig |
GeometryInterface::InterestingQuantities | iq |
std::vector < GeometryInterface::Values > | significantvalues |
std::vector < SummationSpecification > | specs |
std::vector< Table > | tables |
Definition at line 31 of file HistogramManager.h.
Definition at line 33 of file HistogramManager.h.
Definition at line 34 of file HistogramManager.h.
typedef std::map<GeometryInterface::Values, AbstractHistogram> HistogramManager::Table |
Definition at line 59 of file HistogramManager.h.
|
explicit |
Definition at line 18 of file HistogramManager.cc.
References addSpec(), geometryInterface, and edm::ParameterSet::getParameter().
void HistogramManager::addSpec | ( | SummationSpecification | spec | ) |
Definition at line 48 of file HistogramManager.cc.
References counters, fastpath, significantvalues, specs, and tables.
Referenced by HistogramManager().
void HistogramManager::book | ( | DQMStore::IBooker & | iBooker, |
edm::EventSetup const & | iSetup | ||
) |
Definition at line 277 of file HistogramManager.cc.
References GeometryInterface::allModules(), cms::cuda::assert(), GeometryInterface::binWidth(), dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::IBooker::bookProfile(), dqm::implementation::IBooker::bookProfile2D(), bookUndefined, c, reco::ceil(), cuy::col, counters, dimensions, alignCSCRings::e, enabled, SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::extract(), GeometryInterface::extractColumns(), geometryInterface, dqm::legacy::MonitorElement::getTH1(), SummationStep::GROUPBY, h, timingPdfMaker::histo, mps_fire::i, if(), iq, GeometryInterface::load(), GeometryInterface::loaded(), makePathName(), SiStripPI::max, GeometryInterface::maxValue(), AbstractHistogram::me, min(), GeometryInterface::minValue(), name, convertSQLiteXML::ok, GeometryInterface::pretty(), SummationStep::PROFILE, sistrip::SpyUtilities::range(), range_x_max, range_x_min, range_x_nbins, range_y_max, range_y_min, range_y_nbins, alignCSCRings::s, SET_AXIS, dqm::implementation::NavigatorBase::setCurrentFolder(), dqm::impl::MonitorElement::setStatOverflows(), significantvalues, specs, SummationStep::STAGE2, statsOverflows, AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, tables, AbstractHistogram::th1, title, GeometryInterface::UNDEFINED, SummationStep::USE_X, SummationStep::USE_Y, SummationStep::USE_Z, hgcalPerformanceValidation::val, x, xlabel, y, ylabel, and z.
|
private |
Definition at line 613 of file HistogramManager.cc.
References cms::cuda::assert(), dqm::implementation::IBooker::book1D(), SummationStep::columns, AbstractHistogram::count, alignCSCRings::e, GeometryInterface::extractColumns(), first, geometryInterface, dqm::legacy::MonitorElement::getTH1(), mps_fire::i, AbstractHistogram::iq_sample, makePathName(), AbstractHistogram::me, dqmiodumpmetadata::n, name, hlt_dqm_clientPB-live_cfg::nbins, submitPVResolutionJobs::out, GeometryInterface::pretty(), edm::separator(), dqm::implementation::NavigatorBase::setCurrentFolder(), dqm::impl::MonitorElement::setStatOverflows(), significantvalues, AlCaHLTBitMon_QueryRunRegistry::string, AbstractHistogram::th1, and title.
Referenced by executeHarvesting().
|
private |
Definition at line 579 of file HistogramManager.cc.
References cms::cuda::assert(), dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::IBooker::bookProfile(), dqm::implementation::IBooker::bookProfile2D(), SummationStep::columns, alignCSCRings::e, GeometryInterface::extractColumns(), geometryInterface, dqm::legacy::MonitorElement::getTH1(), AbstractHistogram::iq_sample, makePathName(), AbstractHistogram::me, name, submitPVResolutionJobs::out, dqm::implementation::NavigatorBase::setCurrentFolder(), dqm::impl::MonitorElement::setStatOverflows(), significantvalues, and AbstractHistogram::th1.
Referenced by executeHarvesting().
void HistogramManager::executeHarvesting | ( | DQMStore::IBooker & | iBooker, |
DQMStore::IGetter & | iGetter | ||
) |
Definition at line 698 of file HistogramManager.cc.
References SummationStep::arg, cms::cuda::assert(), enabled, executeExtend(), executeGroupBy(), SummationStep::EXTEND_X, SummationStep::EXTEND_Y, geometryInterface, SummationStep::GROUPBY, mps_fire::i, loadFromDQMStore(), log, name, SummationStep::REDUCE, alignCSCRings::s, SummationStep::SAVE, specs, SummationStep::stage, SummationStep::STAGE2, AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, tables, and SummationStep::type.
Referenced by executePerLumiHarvesting().
void HistogramManager::executePerEventHarvesting | ( | edm::Event const * | ev | ) |
Definition at line 190 of file HistogramManager.cc.
References cms::cuda::assert(), bookUndefined, c, SummationStep::COUNT, counters, alignCSCRings::e, enabled, GeometryInterface::extractColumns(), fillInternal(), geometryInterface, SummationStep::GROUPBY, timingPdfMaker::histo, mps_fire::i, iq, alignCSCRings::s, significantvalues, GeometryInterface::InterestingQuantities::sourceEvent, GeometryInterface::InterestingQuantities::sourceModule, specs, submitPVValidationJobs::t, and tables.
void HistogramManager::executePerLumiHarvesting | ( | DQMStore::IBooker & | iBooker, |
DQMStore::IGetter & | iGetter, | ||
edm::LuminosityBlock const & | lumiBlock, | ||
edm::EventSetup const & | iSetup | ||
) |
Definition at line 530 of file HistogramManager.cc.
References enabled, executeHarvesting(), geometryInterface, GeometryInterface::load(), GeometryInterface::loaded(), lumisection, and perLumiHarvesting.
void HistogramManager::fill | ( | DetId | sourceModule, |
const edm::Event * | sourceEvent = nullptr , |
||
int | col = 0 , |
||
int | row = 0 |
||
) |
Definition at line 117 of file HistogramManager.cc.
References cms::cuda::assert(), and dimensions.
Referenced by fill().
void HistogramManager::fill | ( | double | value, |
DetId | sourceModule, | ||
const edm::Event * | sourceEvent = nullptr , |
||
int | col = 0 , |
||
int | row = 0 |
||
) |
Definition at line 113 of file HistogramManager.cc.
References cms::cuda::assert(), dimensions, and fill().
void HistogramManager::fill | ( | double | x, |
double | y, | ||
DetId | sourceModule, | ||
const edm::Event * | sourceEvent = nullptr , |
||
int | col = 0 , |
||
int | row = 0 |
||
) |
Definition at line 65 of file HistogramManager.cc.
References cms::cuda::assert(), bookUndefined, SummationStep::COUNT, counters, dimensions, enabled, GeometryInterface::extractColumns(), fastpath, fillInternal(), geometryInterface, timingPdfMaker::histo, mps_fire::i, iq, alignCSCRings::s, significantvalues, GeometryInterface::InterestingQuantities::sourceModule, specs, submitPVValidationJobs::t, and tables.
|
private |
Definition at line 122 of file HistogramManager.cc.
References cms::cuda::assert(), SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::extract(), dqm::impl::MonitorElement::Fill(), geometryInterface, dqmdumpme::last, AbstractHistogram::me, SummationStep::PROFILE, SummationStep::STAGE1, AbstractHistogram::th1, SummationStep::USE_X, SummationStep::USE_Y, SummationStep::USE_Z, x, and y.
Referenced by executePerEventHarvesting(), and fill().
|
private |
Definition at line 548 of file HistogramManager.cc.
References GeometryInterface::allModules(), bookUndefined, GeometryInterface::extractColumns(), geometryInterface, dqm::implementation::IGetter::get(), dqm::legacy::MonitorElement::getTH1(), SummationStep::GROUPBY, timingPdfMaker::histo, iq, AbstractHistogram::iq_sample, makePathName(), AbstractHistogram::me, hlt_dqm_clientPB-live_cfg::me, name, fed_dqm_sourceclient-live_cfg::path, significantvalues, SummationStep::STAGE2, SummationSpecification::steps, AlCaHLTBitMon_QueryRunRegistry::string, and AbstractHistogram::th1.
Referenced by executeHarvesting().
|
private |
Definition at line 227 of file HistogramManager.cc.
References SummationStep::arg, SummationStep::columns, SummationStep::COUNT, DeadROC_duringRun::dir, alignCSCRings::e, SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::formatValue(), geometryInterface, name, GeometryInterface::pretty(), DivergingColor::red, SummationStep::REDUCE, SummationStep::stage, SummationStep::STAGE1, SummationSpecification::steps, AlCaHLTBitMon_QueryRunRegistry::string, createPayload::suffix, to_lower(), top_folder_name, and SummationStep::type.
Referenced by book(), executeExtend(), executeGroupBy(), and loadFromDQMStore().
bool HistogramManager::bookUndefined |
Definition at line 92 of file HistogramManager.h.
Referenced by book(), executePerEventHarvesting(), fill(), and loadFromDQMStore().
|
private |
Definition at line 67 of file HistogramManager.h.
Referenced by counter.Counters::__str__(), counter.Counters::addCounter(), addSpec(), book(), counter.Counters::counter(), executePerEventHarvesting(), fill(), and counter.Counters::write().
int HistogramManager::dimensions |
Definition at line 99 of file HistogramManager.h.
bool HistogramManager::enabled |
Definition at line 90 of file HistogramManager.h.
Referenced by book(), executeHarvesting(), executePerEventHarvesting(), executePerLumiHarvesting(), and fill().
|
private |
Definition at line 121 of file HistogramManager.h.
|
private |
Definition at line 63 of file HistogramManager.h.
Referenced by book(), executeExtend(), executeGroupBy(), executeHarvesting(), executePerEventHarvesting(), executePerLumiHarvesting(), fill(), fillInternal(), HistogramManager(), loadFromDQMStore(), and makePathName().
|
private |
Definition at line 62 of file HistogramManager.h.
|
private |
Definition at line 117 of file HistogramManager.h.
Referenced by book(), executePerEventHarvesting(), fill(), and loadFromDQMStore().
edm::LuminosityBlock const* HistogramManager::lumisection = nullptr |
Definition at line 109 of file HistogramManager.h.
Referenced by executePerLumiHarvesting().
std::string HistogramManager::name |
Definition at line 95 of file HistogramManager.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(), book(), dirstructure.Directory::calcStats(), geometryComparison.GeometryComparison::createScript(), validation.Sample::digest(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), DisplayManager.DisplayManager::Draw(), TreeCrawler.Package::dump(), executeExtend(), executeGroupBy(), executeHarvesting(), 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(), primaryVertexResolution.PrimaryVertexResolution::getRepMap(), primaryVertexValidation.PrimaryVertexValidation::getRepMap(), zMuMuValidation.ZMuMuValidation::getRepMap(), VIDSelectorBase.VIDSelectorBase::initialize(), loadFromDQMStore(), personalPlayback.Applet::log(), core.autovars.NTupleVariable::makeBranch(), core.autovars.NTupleObject::makeBranches(), core.autovars.NTupleCollection::makeBranchesScalar(), core.autovars.NTupleCollection::makeBranchesVector(), makePathName(), 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().
bool HistogramManager::perLumiHarvesting |
Definition at line 91 of file HistogramManager.h.
Referenced by executePerLumiHarvesting().
double HistogramManager::range_x_max |
Definition at line 102 of file HistogramManager.h.
Referenced by book().
double HistogramManager::range_x_min |
Definition at line 101 of file HistogramManager.h.
Referenced by book().
int HistogramManager::range_x_nbins |
Definition at line 100 of file HistogramManager.h.
Referenced by book().
double HistogramManager::range_y_max |
Definition at line 105 of file HistogramManager.h.
Referenced by book().
double HistogramManager::range_y_min |
Definition at line 104 of file HistogramManager.h.
Referenced by book().
int HistogramManager::range_y_nbins |
Definition at line 103 of file HistogramManager.h.
Referenced by book().
|
private |
Definition at line 119 of file HistogramManager.h.
Referenced by addSpec(), book(), executeExtend(), executeGroupBy(), executePerEventHarvesting(), fill(), and loadFromDQMStore().
|
private |
Definition at line 65 of file HistogramManager.h.
Referenced by addSpec(), book(), executeHarvesting(), executePerEventHarvesting(), and fill().
bool HistogramManager::statsOverflows |
Definition at line 106 of file HistogramManager.h.
Referenced by book().
|
private |
Definition at line 66 of file HistogramManager.h.
Referenced by addSpec(), book(), executeHarvesting(), executePerEventHarvesting(), and fill().
std::string HistogramManager::title |
Definition at line 96 of file HistogramManager.h.
Referenced by python.rootplot.root2matplotlib.HistStack::bar(), python.rootplot.root2matplotlib.HistStack::bar3d(), python.rootplot.root2matplotlib.HistStack::barcluster(), python.rootplot.root2matplotlib.HistStack::barh(), python.rootplot.root2matplotlib.HistStack::barstack(), book(), python.rootplot.root2matplotlib.HistStack::errorbar(), python.rootplot.root2matplotlib.HistStack::errorbarh(), executeExtend(), Formatter.SimpleHTMLFormatter::headers(), python.rootplot.root2matplotlib.HistStack::histstack(), python.rootplot.root2matplotlib.Hist::show_titles(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), python.rootplot.utilities.Hist2D::TH2F(), and python.rootplot.root2matplotlib.Hist2D::TH2F().
std::string HistogramManager::top_folder_name |
Definition at line 93 of file HistogramManager.h.
Referenced by makePathName().
std::string HistogramManager::xlabel |
Definition at line 97 of file HistogramManager.h.
Referenced by python.rootplot.root2matplotlib.HistStack::bar(), python.rootplot.root2matplotlib.HistStack::bar3d(), python.rootplot.root2matplotlib.HistStack::barcluster(), python.rootplot.root2matplotlib.HistStack::barh(), python.rootplot.root2matplotlib.HistStack::barstack(), book(), python.rootplot.root2matplotlib.HistStack::errorbar(), python.rootplot.root2matplotlib.HistStack::errorbarh(), python.rootplot.root2matplotlib.HistStack::histstack(), python.rootplot.root2matplotlib.Hist::show_titles(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), python.rootplot.utilities.Hist2D::TH2F(), and python.rootplot.root2matplotlib.Hist2D::TH2F().
std::string HistogramManager::ylabel |
Definition at line 98 of file HistogramManager.h.
Referenced by python.rootplot.root2matplotlib.HistStack::bar(), python.rootplot.root2matplotlib.HistStack::bar3d(), python.rootplot.root2matplotlib.HistStack::barcluster(), python.rootplot.root2matplotlib.HistStack::barh(), python.rootplot.root2matplotlib.HistStack::barstack(), book(), python.rootplot.root2matplotlib.HistStack::errorbar(), python.rootplot.root2matplotlib.HistStack::errorbarh(), python.rootplot.root2matplotlib.HistStack::histstack(), python.rootplot.root2matplotlib.Hist::show_titles(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), python.rootplot.utilities.Hist2D::TH2F(), and python.rootplot.root2matplotlib.Hist2D::TH2F().