#include "DQM/HcalMonitorClient/interface/HcalClientUtils.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include <cstdlib>
Go to the source code of this file.
Functions | |
void | cleanString (std::string &title) |
void | createH2CompTest (DQMStore *dbe, std::vector< std::string > ¶ms, TH2F *ref) |
void | createH2ContentTest (DQMStore *dbe, std::vector< std::string > ¶ms) |
void | createMeanValueTest (DQMStore *dbe, std::vector< std::string > ¶ms) |
void | createXRangeTest (DQMStore *dbe, std::vector< std::string > ¶ms) |
void | createYRangeTest (DQMStore *dbe, std::vector< std::string > ¶ms) |
void | dumpHisto (TH1F *hist, std::vector< std::string > &names, std::vector< double > &meanX, std::vector< double > &meanY, std::vector< double > &rmsX, std::vector< double > &rmsY) |
void | dumpHisto2 (TH2F *hist, std::vector< std::string > &names, std::vector< double > &meanX, std::vector< double > &meanY, std::vector< double > &rmsX, std::vector< double > &rmsY) |
TH1F * | getHisto (std::string name, std::string process, DQMStore *dbe_, bool verb, bool clone) |
TH1F * | getHisto (const MonitorElement *me, bool verb, bool clone) |
TH2F * | getHisto2 (std::string name, std::string process, DQMStore *dbe_, bool verb, bool clone) |
TH2F * | getHisto2 (const MonitorElement *me, bool verb, bool clone) |
TH3F * | getHistoTH3F (std::string name, std::string process, DQMStore *dbe_, bool verb, bool clone) |
TH3F * | getHistoTH3F (const MonitorElement *me, bool verb, bool clone) |
TProfile * | getHistoTProfile (std::string name, std::string process, DQMStore *dbe_, bool verb, bool clone) |
TProfile * | getHistoTProfile (const MonitorElement *me, bool verb, bool clone) |
TProfile2D * | getHistoTProfile2D (std::string name, std::string process, DQMStore *dbe_, bool verb, bool clone) |
TProfile2D * | getHistoTProfile2D (const MonitorElement *me, bool verb, bool clone) |
std::string | getIMG (int runNo, TH1F *hist, int size, std::string htmlDir, const char *xlab, const char *ylab) |
std::string | getIMG2 (int runNo, TH2F *hist, int size, std::string htmlDir, const char *xlab, const char *ylab, bool color) |
std::string | getIMGTProfile (int runNo, TProfile *hist, int size, std::string htmlDir, const char *xlab, const char *ylab, std::string opts) |
void | histoHTML (int runNo, TH1F *hist, const char *xlab, const char *ylab, int width, std::ofstream &htmlFile, std::string htmlDir) |
void | histoHTML2 (int runNo, TH2F *hist, const char *xlab, const char *ylab, int width, std::ofstream &htmlFile, std::string htmlDir, bool color) |
void | histoHTMLTProfile (int runNo, TProfile *hist, const char *xlab, const char *ylab, int width, std::ofstream &htmlFile, std::string htmlDir, std::string opts) |
void | htmlErrors (int runNo, std::string htmlDir, std::string client, std::string process, DQMStore *dbe, std::map< std::string, std::vector< QReport * > > mapE, std::map< std::string, std::vector< QReport * > > mapW, std::map< std::string, std::vector< QReport * > > mapO) |
bool | isValidGeom (std::string type, int depth) |
bool | isValidGeom (int subdet, int iEta, int iPhi, int depth) |
void | parseString (std::string &title) |
void | resetME (const char *name, DQMStore *dbe) |
void cleanString | ( | std::string & | title | ) |
Definition at line 98 of file HcalClientUtils.cc.
References i.
Referenced by getIMG(), getIMG2(), and getIMGTProfile().
void createH2CompTest | ( | DQMStore * | dbe, |
std::vector< std::string > & | params, | ||
TH2F * | ref | ||
) |
Definition at line 418 of file HcalClientUtils.cc.
References DQMStore::createQTest(), DQMStore::get(), DQMStore::getQCriterion(), MonitorElement::getQReport(), and NULL.
void createH2ContentTest | ( | DQMStore * | dbe, |
std::vector< std::string > & | params | ||
) |
Definition at line 395 of file HcalClientUtils.cc.
References DQMStore::get(), DQMStore::getQCriterion(), and NULL.
void createMeanValueTest | ( | DQMStore * | dbe, |
std::vector< std::string > & | params | ||
) |
Definition at line 371 of file HcalClientUtils.cc.
References DQMStore::createQTest(), DQMStore::getQCriterion(), NULL, QCriterion::setErrorProb(), MeanWithinExpected::setExpectedMean(), QCriterion::setWarningProb(), DQMStore::useQTest(), MeanWithinExpected::useRMS(), and MeanWithinExpected::useSigma().
void createXRangeTest | ( | DQMStore * | dbe, |
std::vector< std::string > & | params | ||
) |
Definition at line 329 of file HcalClientUtils.cc.
References DQMStore::createQTest(), ContentsXRange::getAlgoName(), DQMStore::getQCriterion(), NULL, ContentsXRange::setAllowedXRange(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), and DQMStore::useQTest().
void createYRangeTest | ( | DQMStore * | dbe, |
std::vector< std::string > & | params | ||
) |
Definition at line 350 of file HcalClientUtils.cc.
References DQMStore::createQTest(), ContentsYRange::getAlgoName(), DQMStore::getQCriterion(), NULL, ContentsYRange::setAllowedYRange(), QCriterion::setErrorProb(), QCriterion::setWarningProb(), and DQMStore::useQTest().
void dumpHisto | ( | TH1F * | hist, |
std::vector< std::string > & | names, | ||
std::vector< double > & | meanX, | ||
std::vector< double > & | meanY, | ||
std::vector< double > & | rmsX, | ||
std::vector< double > & | rmsY | ||
) |
Definition at line 75 of file HcalClientUtils.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
void dumpHisto2 | ( | TH2F * | hist, |
std::vector< std::string > & | names, | ||
std::vector< double > & | meanX, | ||
std::vector< double > & | meanY, | ||
std::vector< double > & | rmsX, | ||
std::vector< double > & | rmsY | ||
) |
Definition at line 86 of file HcalClientUtils.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
TH1F* getHisto | ( | std::string | name, |
std::string | process, | ||
DQMStore * | dbe_, | ||
bool | verb, | ||
bool | clone | ||
) |
Definition at line 239 of file HcalClientUtils.cc.
References gather_cfg::cout, DQMStore::get(), MonitorElement::getTH1F(), timingPdfMaker::histo, NULL, dbtoconf::out, and indexGen::title.
Referenced by dtCalibration::DTTTrigT0SegCorrection::correction(), dtCalibration::DTTTrigResidualCorrection::correction(), and htmlErrors().
TH1F* getHisto | ( | const MonitorElement * | me, |
bool | verb, | ||
bool | clone | ||
) |
Definition at line 280 of file HcalClientUtils.cc.
References gather_cfg::cout, MonitorElement::getName(), MonitorElement::getTH1F(), timingPdfMaker::histo, NULL, dbtoconf::out, and AlCaHLTBitMon_QueryRunRegistry::string.
TH2F* getHisto2 | ( | std::string | name, |
std::string | process, | ||
DQMStore * | dbe_, | ||
bool | verb, | ||
bool | clone | ||
) |
Definition at line 216 of file HcalClientUtils.cc.
References gather_cfg::cout, DQMStore::get(), timingPdfMaker::histo, NULL, dbtoconf::out, and indexGen::title.
Referenced by htmlErrors().
TH2F* getHisto2 | ( | const MonitorElement * | me, |
bool | verb, | ||
bool | clone | ||
) |
Definition at line 262 of file HcalClientUtils.cc.
References gather_cfg::cout, MonitorElement::getName(), MonitorElement::getTH2F(), timingPdfMaker::histo, NULL, dbtoconf::out, and AlCaHLTBitMon_QueryRunRegistry::string.
TH3F* getHistoTH3F | ( | std::string | name, |
std::string | process, | ||
DQMStore * | dbe_, | ||
bool | verb, | ||
bool | clone | ||
) |
Definition at line 723 of file HcalClientUtils.cc.
References gather_cfg::cout, DQMStore::get(), MonitorElement::getTH3F(), timingPdfMaker::histo, NULL, dbtoconf::out, and indexGen::title.
TH3F* getHistoTH3F | ( | const MonitorElement * | me, |
bool | verb, | ||
bool | clone | ||
) |
Definition at line 745 of file HcalClientUtils.cc.
References gather_cfg::cout, MonitorElement::getName(), MonitorElement::getTH3F(), timingPdfMaker::histo, NULL, dbtoconf::out, and AlCaHLTBitMon_QueryRunRegistry::string.
TProfile* getHistoTProfile | ( | std::string | name, |
std::string | process, | ||
DQMStore * | dbe_, | ||
bool | verb, | ||
bool | clone | ||
) |
Definition at line 589 of file HcalClientUtils.cc.
References gather_cfg::cout, DQMStore::get(), MonitorElement::getTProfile(), timingPdfMaker::histo, NULL, dbtoconf::out, and indexGen::title.
TProfile* getHistoTProfile | ( | const MonitorElement * | me, |
bool | verb, | ||
bool | clone | ||
) |
Definition at line 611 of file HcalClientUtils.cc.
References gather_cfg::cout, MonitorElement::getName(), MonitorElement::getTProfile(), timingPdfMaker::histo, NULL, dbtoconf::out, and AlCaHLTBitMon_QueryRunRegistry::string.
TProfile2D* getHistoTProfile2D | ( | std::string | name, |
std::string | process, | ||
DQMStore * | dbe_, | ||
bool | verb, | ||
bool | clone | ||
) |
Definition at line 684 of file HcalClientUtils.cc.
References gather_cfg::cout, DQMStore::get(), MonitorElement::getTProfile2D(), timingPdfMaker::histo, NULL, dbtoconf::out, and indexGen::title.
TProfile2D* getHistoTProfile2D | ( | const MonitorElement * | me, |
bool | verb, | ||
bool | clone | ||
) |
Definition at line 706 of file HcalClientUtils.cc.
References gather_cfg::cout, MonitorElement::getName(), MonitorElement::getTProfile2D(), timingPdfMaker::histo, NULL, dbtoconf::out, and AlCaHLTBitMon_QueryRunRegistry::string.
std::string getIMG | ( | int | runNo, |
TH1F * | hist, | ||
int | size, | ||
std::string | htmlDir, | ||
const char * | xlab, | ||
const char * | ylab | ||
) |
Definition at line 181 of file HcalClientUtils.cc.
References timingPdfMaker::can, cleanString(), alignCSCRings::dest, mergeVDriftHistosByStation::name, NULL, parseString(), AlCaHLTBitMon_QueryRunRegistry::string, and indexGen::title.
Referenced by histoHTML(), and htmlErrors().
std::string getIMG2 | ( | int | runNo, |
TH2F * | hist, | ||
int | size, | ||
std::string | htmlDir, | ||
const char * | xlab, | ||
const char * | ylab, | ||
bool | color | ||
) |
Definition at line 138 of file HcalClientUtils.cc.
References timingPdfMaker::can, cleanString(), alignCSCRings::dest, mergeVDriftHistosByStation::name, NULL, parseString(), AlCaHLTBitMon_QueryRunRegistry::string, and indexGen::title.
Referenced by histoHTML2(), and htmlErrors().
std::string getIMGTProfile | ( | int | runNo, |
TProfile * | hist, | ||
int | size, | ||
std::string | htmlDir, | ||
const char * | xlab, | ||
const char * | ylab, | ||
std::string | opts | ||
) |
Definition at line 627 of file HcalClientUtils.cc.
References timingPdfMaker::can, cleanString(), alignCSCRings::dest, mergeVDriftHistosByStation::name, NULL, parseString(), AlCaHLTBitMon_QueryRunRegistry::string, and indexGen::title.
Referenced by histoHTMLTProfile().
void histoHTML | ( | int | runNo, |
TH1F * | hist, | ||
const char * | xlab, | ||
const char * | ylab, | ||
int | width, | ||
std::ofstream & | htmlFile, | ||
std::string | htmlDir | ||
) |
Definition at line 297 of file HcalClientUtils.cc.
References getIMG(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.
void histoHTML2 | ( | int | runNo, |
TH2F * | hist, | ||
const char * | xlab, | ||
const char * | ylab, | ||
int | width, | ||
std::ofstream & | htmlFile, | ||
std::string | htmlDir, | ||
bool | color | ||
) |
Definition at line 314 of file HcalClientUtils.cc.
References getIMG2(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.
void histoHTMLTProfile | ( | int | runNo, |
TProfile * | hist, | ||
const char * | xlab, | ||
const char * | ylab, | ||
int | width, | ||
std::ofstream & | htmlFile, | ||
std::string | htmlDir, | ||
std::string | opts | ||
) |
Definition at line 664 of file HcalClientUtils.cc.
References getIMGTProfile(), NULL, and AlCaHLTBitMon_QueryRunRegistry::string.
void htmlErrors | ( | int | runNo, |
std::string | htmlDir, | ||
std::string | client, | ||
std::string | process, | ||
DQMStore * | dbe, | ||
std::map< std::string, std::vector< QReport * > > | mapE, | ||
std::map< std::string, std::vector< QReport * > > | mapW, | ||
std::map< std::string, std::vector< QReport * > > | mapO | ||
) |
Definition at line 448 of file HcalClientUtils.cc.
References benchmark_cfg::errors, DQMStore::get(), getHisto(), getHisto2(), getIMG(), getIMG2(), MonitorElement::getMeanError(), zeeHLT_cff::report, cuy::save, and AlCaHLTBitMon_QueryRunRegistry::string.
bool isValidGeom | ( | std::string | type, |
int | depth | ||
) |
Definition at line 14 of file HcalClientUtils.cc.
bool isValidGeom | ( | int | subdet, |
int | iEta, | ||
int | iPhi, | ||
int | depth | ||
) |
Definition at line 27 of file HcalClientUtils.cc.
References funct::abs(), Gflash::EtaMax, and Gflash::EtaMin.
void parseString | ( | std::string & | title | ) |
Definition at line 113 of file HcalClientUtils.cc.
References i.
Referenced by dbsFileQuery::dbsFileQuery(), DBSApi_cff::DictToXML(), DBSApi_cff::GetDbsInfo(), getIMG(), getIMG2(), and getIMGTProfile().
void resetME | ( | const char * | name, |
DQMStore * | dbe | ||
) |
Definition at line 7 of file HcalClientUtils.cc.
References DQMStore::get(), NULL, and DQMStore::softReset().