#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 |
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 19 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, HltBtagPostValidation_cff::c, reco::ceil(), cuy::col, counters, dimensions, MillePedeFileConverter_cfg::e, enabled, SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::extract(), GeometryInterface::extractColumns(), geometryInterface, SummationStep::GROUPBY, timingPdfMaker::histo, mps_fire::i, createfilelist::int, iq, GeometryInterface::load(), GeometryInterface::loaded(), makePathName(), SiStripPI::max, GeometryInterface::maxValue(), min(), GeometryInterface::minValue(), name, convertSQLiteXML::ok, GeometryInterface::pretty(), SummationStep::PROFILE, FastTimerService_cff::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(), significantvalues, specs, SummationStep::STAGE2, AlCaHLTBitMon_QueryRunRegistry::string, OrderedSet::t, tables, title, GeometryInterface::UNDEFINED, SummationStep::USE_X, SummationStep::USE_Y, SummationStep::USE_Z, heppy_batch::val, x, xlabel, y, ylabel, and z.
|
private |
Definition at line 608 of file HistogramManager.cc.
References cms::cuda::assert(), trigObjTnPSource_cfi::bins, dqm::implementation::IBooker::book1D(), AbstractHistogram::count, MillePedeFileConverter_cfg::e, GeometryInterface::extractColumns(), dqmdumpme::first, geometryInterface, dqm::legacy::MonitorElement::getTH1(), mps_fire::i, AbstractHistogram::iq_sample, makePathName(), AbstractHistogram::me, dqmiodumpmetadata::n, name, LaserClient_cfi::nbins, MillePedeFileConverter_cfg::out, GeometryInterface::pretty(), alignCSCRings::s, mps_merge::separator, dqm::implementation::NavigatorBase::setCurrentFolder(), significantvalues, AlCaHLTBitMon_QueryRunRegistry::string, OrderedSet::t, AbstractHistogram::th1, and title.
Referenced by executeHarvesting().
|
private |
Definition at line 575 of file HistogramManager.cc.
References cms::cuda::assert(), dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::IBooker::bookProfile(), dqm::implementation::IBooker::bookProfile2D(), MillePedeFileConverter_cfg::e, GeometryInterface::extractColumns(), geometryInterface, dqm::legacy::MonitorElement::getTH1(), AbstractHistogram::iq_sample, makePathName(), AbstractHistogram::me, name, MillePedeFileConverter_cfg::out, alignCSCRings::s, dqm::implementation::NavigatorBase::setCurrentFolder(), significantvalues, OrderedSet::t, and AbstractHistogram::th1.
Referenced by executeHarvesting().
void HistogramManager::executeHarvesting | ( | DQMStore::IBooker & | iBooker, |
DQMStore::IGetter & | iGetter | ||
) |
Definition at line 692 of file HistogramManager.cc.
References cms::cuda::assert(), enabled, executeExtend(), executeGroupBy(), SummationStep::EXTEND_X, SummationStep::EXTEND_Y, geometryInterface, SummationStep::GROUPBY, mps_fire::i, loadFromDQMStore(), dqm-mbProfile::log, name, SummationStep::REDUCE, alignCSCRings::s, SummationStep::SAVE, specs, SummationStep::STAGE2, AlCaHLTBitMon_QueryRunRegistry::string, OrderedSet::t, and tables.
Referenced by executePerLumiHarvesting().
void HistogramManager::executePerEventHarvesting | ( | edm::Event const * | ev | ) |
Definition at line 190 of file HistogramManager.cc.
References cms::cuda::assert(), bookUndefined, HltBtagPostValidation_cff::c, SummationStep::COUNT, counters, MillePedeFileConverter_cfg::e, enabled, GeometryInterface::extractColumns(), fillInternal(), geometryInterface, SummationStep::GROUPBY, timingPdfMaker::histo, mps_fire::i, iq, alignCSCRings::s, significantvalues, GeometryInterface::InterestingQuantities::sourceEvent, GeometryInterface::InterestingQuantities::sourceModule, specs, OrderedSet::t, and tables.
void HistogramManager::executePerLumiHarvesting | ( | DQMStore::IBooker & | iBooker, |
DQMStore::IGetter & | iGetter, | ||
edm::LuminosityBlock const & | lumiBlock, | ||
edm::EventSetup const & | iSetup | ||
) |
Definition at line 526 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(), cuy::col, 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(), cuy::col, 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, cuy::col, SummationStep::COUNT, counters, dimensions, enabled, GeometryInterface::extractColumns(), fastpath, fillInternal(), geometryInterface, timingPdfMaker::histo, mps_fire::i, iq, alignCSCRings::s, significantvalues, GeometryInterface::InterestingQuantities::sourceModule, specs, OrderedSet::t, tables, x, and y.
|
private |
Definition at line 122 of file HistogramManager.cc.
References cms::cuda::assert(), mps_fire::dest, SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::extract(), dqmdumpme::first, multPhiCorr_741_25nsDY_cfi::fx, multPhiCorr_741_25nsDY_cfi::fy, geometryInterface, iq, dqmdumpme::last, SummationStep::PROFILE, SummationStep::STAGE1, SummationStep::USE_X, SummationStep::USE_Y, SummationStep::USE_Z, x, and y.
Referenced by executePerEventHarvesting(), and fill().
|
private |
Definition at line 544 of file HistogramManager.cc.
References GeometryInterface::allModules(), bookUndefined, GeometryInterface::extractColumns(), geometryInterface, dqm::implementation::IGetter::get(), SummationStep::GROUPBY, timingPdfMaker::histo, iq, makePathName(), hlt_dqm_clientPB-live_cfg::me, name, castor_dqm_sourceclient_file_cfg::path, alignCSCRings::s, significantvalues, SummationStep::STAGE2, AlCaHLTBitMon_QueryRunRegistry::string, and OrderedSet::t.
Referenced by executeHarvesting().
|
private |
Definition at line 227 of file HistogramManager.cc.
References SummationStep::COUNT, DeadROC_duringRun::dir, MillePedeFileConverter_cfg::e, SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::formatValue(), geometryInterface, name, GeometryInterface::pretty(), electronCompare::red, SummationStep::REDUCE, alignCSCRings::s, significantvalues, SummationStep::STAGE1, AlCaHLTBitMon_QueryRunRegistry::string, createPayload::suffix, and top_folder_name.
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 analyzer.Analyzer::__str__(), counter.Counters::__str__(), counter.Counters::addCounter(), addSpec(), objects.TauAnalyzer.TauAnalyzer::beginLoop(), core.SkimAnalyzerCount.SkimAnalyzerCount::beginLoop(), core.TriggerBitFilter.TriggerBitFilter::beginLoop(), RazorAnalyzer.RazorAnalyzer::beginLoop(), AlphaTAnalyzer.AlphaTAnalyzer::beginLoop(), objects.METAnalyzer.METAnalyzer::beginLoop(), core.JSONAnalyzer.JSONAnalyzer::beginLoop(), MT2Analyzer.MT2Analyzer::beginLoop(), DiLeptonAnalyzer.DiLeptonAnalyzer::beginLoop(), objects.PhotonAnalyzer.PhotonAnalyzer::beginLoop(), JetAnalyzer.JetAnalyzer::beginLoop(), objects.IsoTrackAnalyzer.IsoTrackAnalyzer::beginLoop(), objects.VertexAnalyzer.VertexAnalyzer::beginLoop(), objects.LeptonAnalyzer.LeptonAnalyzer::beginLoop(), book(), counter.Counters::counter(), executePerEventHarvesting(), fill(), objects.PhotonAnalyzer.PhotonAnalyzer::makePhotons(), objects.TauAnalyzer.TauAnalyzer::makeTaus(), TriggerAnalyzer.TriggerAnalyzer::process(), JetAnalyzer.JetAnalyzer::process(), objects.LeptonAnalyzer.LeptonAnalyzer::process(), DiLeptonAnalyzer.DiLeptonAnalyzer::selectionSequence(), analyzer.Analyzer::write(), 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 120 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 116 of file HistogramManager.h.
Referenced by book(), executePerEventHarvesting(), fill(), fillInternal(), and loadFromDQMStore().
edm::LuminosityBlock const* HistogramManager::lumisection = nullptr |
Definition at line 108 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(), 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(), 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(), 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 118 of file HistogramManager.h.
Referenced by addSpec(), book(), executeExtend(), executeGroupBy(), executePerEventHarvesting(), fill(), loadFromDQMStore(), and makePathName().
|
private |
Definition at line 65 of file HistogramManager.h.
Referenced by addSpec(), book(), executeHarvesting(), executePerEventHarvesting(), and fill().
|
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().