#include <HistogramManager.h>
Public Types | |
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=0, int col=0, int row=0) |
void | fill (double value, DetId sourceModule, const edm::Event *sourceEvent=0, int col=0, int row=0) |
void | fill (double x, double y, DetId sourceModule, const edm::Event *sourceEvent=0, 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 = 0 |
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.
typedef std::map<GeometryInterface::Values, AbstractHistogram> HistogramManager::Table |
Definition at line 54 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 270 of file HistogramManager.cc.
References GeometryInterface::allModules(), GeometryInterface::binWidth(), DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookProfile(), DQMStore::IBooker::bookProfile2D(), bookUndefined, EnergyCorrector::c, cuy::col, counters, dimensions, MillePedeFileConverter_cfg::e, enabled, SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::extract(), GeometryInterface::extractColumns(), geometryInterface, MonitorElement::getTH1(), SummationStep::GROUPBY, trackerHits::histo, mps_fire::i, reco::if(), createfilelist::int, iq, GeometryInterface::load(), GeometryInterface::loaded(), makePathName(), hpstanc_transforms::max, GeometryInterface::maxValue(), AbstractHistogram::me, min(), GeometryInterface::minValue(), name, convertSQLiteXML::ok, GeometryInterface::pretty(), SummationStep::PROFILE, range_x_max, range_x_min, range_x_nbins, range_y_max, range_y_min, range_y_nbins, alignCSCRings::s, SET_AXIS, DQMStore::IBooker::setCurrentFolder(), significantvalues, specs, SummationStep::STAGE2, AlCaHLTBitMon_QueryRunRegistry::string, lumiQTWidget::t, tables, AbstractHistogram::th1, 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 567 of file HistogramManager.cc.
References create_public_pileup_plots::bins, DQMStore::IBooker::book1D(), SummationStep::columns, AbstractHistogram::count, MillePedeFileConverter_cfg::e, GeometryInterface::extractColumns(), plotBeamSpotDB::first, geometryInterface, MonitorElement::getTH1(), mps_fire::i, AbstractHistogram::iq_sample, makePathName(), AbstractHistogram::me, gen::n, name, pileupCalc::nbins, MillePedeFileConverter_cfg::out, GeometryInterface::pretty(), mps_merge::separator, DQMStore::IBooker::setCurrentFolder(), significantvalues, AlCaHLTBitMon_QueryRunRegistry::string, AbstractHistogram::th1, and title.
Referenced by executeHarvesting().
|
private |
Definition at line 540 of file HistogramManager.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookProfile(), DQMStore::IBooker::bookProfile2D(), SummationStep::columns, MillePedeFileConverter_cfg::e, GeometryInterface::extractColumns(), geometryInterface, MonitorElement::getTH1(), AbstractHistogram::iq_sample, makePathName(), AbstractHistogram::me, name, MillePedeFileConverter_cfg::out, DQMStore::IBooker::setCurrentFolder(), significantvalues, and AbstractHistogram::th1.
Referenced by executeHarvesting().
void HistogramManager::executeHarvesting | ( | DQMStore::IBooker & | iBooker, |
DQMStore::IGetter & | iGetter | ||
) |
Definition at line 648 of file HistogramManager.cc.
References SummationStep::arg, enabled, executeExtend(), executeGroupBy(), SummationStep::EXTEND_X, SummationStep::EXTEND_Y, geometryInterface, SummationStep::GROUPBY, mps_fire::i, loadFromDQMStore(), cmsBatch::log, name, SummationStep::REDUCE, alignCSCRings::s, SummationStep::SAVE, specs, SummationStep::stage, SummationStep::STAGE2, AlCaHLTBitMon_QueryRunRegistry::string, lumiQTWidget::t, tables, and SummationStep::type.
Referenced by executePerLumiHarvesting().
void HistogramManager::executePerEventHarvesting | ( | edm::Event const * | ev | ) |
Definition at line 188 of file HistogramManager.cc.
References bookUndefined, EnergyCorrector::c, SummationStep::COUNT, counters, MillePedeFileConverter_cfg::e, enabled, GeometryInterface::extractColumns(), fillInternal(), geometryInterface, SummationStep::GROUPBY, trackerHits::histo, mps_fire::i, iq, alignCSCRings::s, significantvalues, GeometryInterface::InterestingQuantities::sourceEvent, GeometryInterface::InterestingQuantities::sourceModule, specs, lumiQTWidget::t, and tables.
void HistogramManager::executePerLumiHarvesting | ( | DQMStore::IBooker & | iBooker, |
DQMStore::IGetter & | iGetter, | ||
edm::LuminosityBlock const & | lumiBlock, | ||
edm::EventSetup const & | iSetup | ||
) |
Definition at line 490 of file HistogramManager.cc.
References enabled, executeHarvesting(), geometryInterface, GeometryInterface::load(), GeometryInterface::loaded(), lumisection, and perLumiHarvesting.
void HistogramManager::fill | ( | DetId | sourceModule, |
const edm::Event * | sourceEvent = 0 , |
||
int | col = 0 , |
||
int | row = 0 |
||
) |
Definition at line 121 of file HistogramManager.cc.
References dimensions.
Referenced by fill().
void HistogramManager::fill | ( | double | value, |
DetId | sourceModule, | ||
const edm::Event * | sourceEvent = 0 , |
||
int | col = 0 , |
||
int | row = 0 |
||
) |
Definition at line 116 of file HistogramManager.cc.
References dimensions, and fill().
void HistogramManager::fill | ( | double | x, |
double | y, | ||
DetId | sourceModule, | ||
const edm::Event * | sourceEvent = 0 , |
||
int | col = 0 , |
||
int | row = 0 |
||
) |
Definition at line 65 of file HistogramManager.cc.
References bookUndefined, SummationStep::COUNT, counters, dimensions, enabled, GeometryInterface::extractColumns(), fastpath, fillInternal(), geometryInterface, trackerHits::histo, mps_fire::i, iq, alignCSCRings::s, significantvalues, GeometryInterface::InterestingQuantities::sourceModule, specs, lumiQTWidget::t, and tables.
|
private |
Definition at line 127 of file HistogramManager.cc.
References SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::extract(), MonitorElement::Fill(), geometryInterface, plotBeamSpotDB::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 507 of file HistogramManager.cc.
References GeometryInterface::allModules(), bookUndefined, GeometryInterface::extractColumns(), geometryInterface, DQMStore::IGetter::get(), MonitorElement::getTH1(), SummationStep::GROUPBY, trackerHits::histo, iq, AbstractHistogram::iq_sample, makePathName(), AbstractHistogram::me, name, callgraph::path, significantvalues, SummationStep::STAGE2, SummationSpecification::steps, AlCaHLTBitMon_QueryRunRegistry::string, and AbstractHistogram::th1.
Referenced by executeHarvesting().
|
private |
Definition at line 223 of file HistogramManager.cc.
References SummationStep::arg, SummationStep::columns, SummationStep::COUNT, dir, MillePedeFileConverter_cfg::e, SummationStep::EXTEND_X, SummationStep::EXTEND_Y, GeometryInterface::formatValue(), geometryInterface, name, GeometryInterface::pretty(), cmsRelvalreport::red(), SummationStep::REDUCE, SummationStep::stage, SummationStep::STAGE1, SummationSpecification::steps, AlCaHLTBitMon_QueryRunRegistry::string, createPayload::suffix, top_folder_name, and SummationStep::type.
Referenced by book(), executeExtend(), executeGroupBy(), and loadFromDQMStore().
bool HistogramManager::bookUndefined |
Definition at line 82 of file HistogramManager.h.
Referenced by book(), executePerEventHarvesting(), fill(), and loadFromDQMStore().
|
private |
Definition at line 62 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 89 of file HistogramManager.h.
bool HistogramManager::enabled |
Definition at line 80 of file HistogramManager.h.
Referenced by book(), executeHarvesting(), executePerEventHarvesting(), executePerLumiHarvesting(), and fill().
|
private |
Definition at line 110 of file HistogramManager.h.
|
private |
Definition at line 58 of file HistogramManager.h.
Referenced by book(), executeExtend(), executeGroupBy(), executeHarvesting(), executePerEventHarvesting(), executePerLumiHarvesting(), fill(), fillInternal(), HistogramManager(), loadFromDQMStore(), and makePathName().
|
private |
Definition at line 57 of file HistogramManager.h.
|
private |
Definition at line 106 of file HistogramManager.h.
Referenced by book(), executePerEventHarvesting(), fill(), and loadFromDQMStore().
edm::LuminosityBlock const* HistogramManager::lumisection = 0 |
Definition at line 98 of file HistogramManager.h.
Referenced by executePerLumiHarvesting().
std::string HistogramManager::name |
Definition at line 85 of file HistogramManager.h.
Referenced by ElectronMVAID.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__(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), book(), 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(), Vispa.Views.PropertyView.Property::valueChanged(), counter.Counter::write(), and average.Average::write().
bool HistogramManager::perLumiHarvesting |
Definition at line 81 of file HistogramManager.h.
Referenced by executePerLumiHarvesting().
double HistogramManager::range_x_max |
Definition at line 92 of file HistogramManager.h.
Referenced by book().
double HistogramManager::range_x_min |
Definition at line 91 of file HistogramManager.h.
Referenced by book().
int HistogramManager::range_x_nbins |
Definition at line 90 of file HistogramManager.h.
Referenced by book().
double HistogramManager::range_y_max |
Definition at line 95 of file HistogramManager.h.
Referenced by book().
double HistogramManager::range_y_min |
Definition at line 94 of file HistogramManager.h.
Referenced by book().
int HistogramManager::range_y_nbins |
Definition at line 93 of file HistogramManager.h.
Referenced by book().
|
private |
Definition at line 108 of file HistogramManager.h.
Referenced by addSpec(), book(), executeExtend(), executeGroupBy(), executePerEventHarvesting(), fill(), and loadFromDQMStore().
|
private |
Definition at line 60 of file HistogramManager.h.
Referenced by addSpec(), book(), executeHarvesting(), executePerEventHarvesting(), and fill().
|
private |
Definition at line 61 of file HistogramManager.h.
Referenced by addSpec(), book(), executeHarvesting(), executePerEventHarvesting(), and fill().
std::string HistogramManager::title |
Definition at line 86 of file HistogramManager.h.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer::autolayout(), Vispa.Views.LineDecayView.LineDecayContainer::autolayoutThreadFinished(), 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(), Vispa.Views.LineDecayView.LineDecayContainer::childFinishedAutolayouting(), python.rootplot.root2matplotlib.HistStack::errorbar(), python.rootplot.root2matplotlib.HistStack::errorbarh(), executeExtend(), Formatter.SimpleHTMLFormatter::headers(), python.rootplot.root2matplotlib.HistStack::histstack(), Vispa.Gui.PortWidget.PortWidget::name(), 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 83 of file HistogramManager.h.
Referenced by makePathName().
std::string HistogramManager::xlabel |
Definition at line 87 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 88 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().