#include <PlotCompareUtility.h>
Public Types | |
enum | Axis { axisX, axisY } |
Public Member Functions | |
HistoData * | addHistoData (std::string Name, int PlotType) |
HistoData * | addHistoData (std::string NewName, std::string RefName, int PlotType) |
HistoData * | addProjectionXData (HistoData *Parent, std::string Name, int PlotType, int Bin, TH1 *NewHisto, TH1 *RefHisto) |
HistoData * | addProjectionYData (HistoData *Parent, std::string Name, int PlotType, int Bin, TH1 *NewHisto, TH1 *RefHisto) |
void | clearHistos () |
void | clearProjectionsX (HistoData *Parent) |
void | clearProjectionsY (HistoData *Parent) |
bool | compare (HistoData *) |
void | dump () |
double | getChi2Threshold () const |
bool | getFinalResult () const |
std::vector< HistoData > * | getHistos () |
double | getKSThreshold () const |
int | getNumHistos () const |
int | getPlotsBottomMargin () const |
int | getPlotsHeight () const |
int | getPlotsLeftMargin () const |
int | getPlotsRightMargin () const |
int | getPlotsTopMargin () const |
int | getPlotsWidth () const |
int | getProjectionsBarsThickness () const |
int | getProjectionsBottomMargin () const |
int | getProjectionsHeight () const |
int | getProjectionsLeftMargin () const |
int | getProjectionsRightMargin () const |
int | getProjectionsTopMargin () const |
int | getProjectionsWidth () const |
std::vector< HistoData > * | getProjectionsX (HistoData *HD) |
std::vector< HistoData > * | getProjectionsY (HistoData *HD) |
int | getSummaryBarsThickness () const |
int | getSummaryBottomMargin () const |
int | getSummaryHeight () const |
int | getSummaryLeftMargin () const |
int | getSummaryRightMargin () const |
int | getSummaryTopMargin () const |
int | getSummaryWidth () const |
double | getThreshold () const |
bool | isValid () const |
void | makeDefaultPlots () |
void | makeHTML (HistoData *) |
void | makePlots (HistoData *) |
void | makeSummary (std::string Name) |
void | makeSummaryHTML (std::string Name) |
void | makeSummaryPlot (std::string Name) |
PlotCompareUtility (std::string Reference, std::string New, std::string NewBasePath, std::string NewPrefix="", std::string RefBasePath="", std::string RefPrefix="") | |
void | setChi2Threshold (double Threshold) |
void | setKSThreshold (double Threshold) |
void | setPlotsBottomMargin (int Pixels) |
void | setPlotsHeight (int Pixels) |
void | setPlotsLeftMargin (int Pixels) |
void | setPlotsRightMargin (int Pixels) |
void | setPlotsTopMargin (int Pixels) |
void | setPlotsWidth (int Pixels) |
void | setProjectionsBarsThickness (int Pixels) |
void | setProjectionsBottomMargin (int Pixels) |
void | setProjectionsHeight (int Pixels) |
void | setProjectionsiWidth (int Pixels) |
void | setProjectionsLeftMargin (int Pixels) |
void | setProjectionsRightMargin (int Pixels) |
void | setProjectionsTopMargin (int Pixels) |
void | setSummaryBarsThickness (int Pixels) |
void | setSummaryBottomMargin (int Pixels) |
void | setSummaryHeight (int Pixels) |
void | setSummaryLeftMargin (int Pixels) |
void | setSummaryRightMargin (int Pixels) |
void | setSummaryTopMargin (int Pixels) |
void | setSummaryWidth (int Pixels) |
virtual | ~PlotCompareUtility () |
Private Member Functions | |
void | centerRebin (TH1 *, TH1 *) |
template<int PlotType> | |
bool | compare (HistoData *) |
template<> | |
bool | compare (HistoData *HD) |
template<> | |
bool | compare (HistoData *HD) |
template<int PlotType> | |
void | makeHTML (HistoData *) |
template<> | |
void | makeHTML (HistoData *HD) |
template<> | |
void | makeHTML (HistoData *HD) |
template<int PlotType> | |
void | makePlots (HistoData *) |
template<> | |
void | makePlots (HistoData *HD) |
template<> | |
void | makePlots (HistoData *HD) |
void | renormalize (TH1 *, TH1 *) |
Private Attributes | |
double | chi2Threshold |
bool | finalResult |
std::vector< HistoData > | histos |
double | ksThreshold |
std::string | newBasePath |
TFile * | newFile |
std::string | newPrefix |
int | plotsBottomMargin |
int | plotsHeight |
int | plotsLeftMargin |
int | plotsRightMargin |
int | plotsTopMargin |
int | plotsWidth |
int | projectionsBarsThickness |
int | projectionsBottomMargin |
int | projectionsHeight |
int | projectionsLeftMargin |
int | projectionsRightMargin |
int | projectionsTopMargin |
int | projectionsWidth |
std::map< HistoData *, std::vector< HistoData > > | projectionsX |
std::map< HistoData *, std::vector< HistoData > > | projectionsY |
std::string | refBasePath |
TFile * | refFile |
std::string | refPrefix |
int | summaryBarsThickness |
int | summaryBottomMargin |
int | summaryHeight |
int | summaryLeftMargin |
int | summaryRightMargin |
int | summaryTopMargin |
int | summaryWidth |
Definition at line 17 of file PlotCompareUtility.h.
Enumerator | |
---|---|
axisX | |
axisY |
Definition at line 31 of file PlotCompareUtility.h.
PlotCompareUtility::PlotCompareUtility | ( | std::string | Reference, |
std::string | New, | ||
std::string | NewBasePath, | ||
std::string | NewPrefix = "" , |
||
std::string | RefBasePath = "" , |
||
std::string | RefPrefix = "" |
||
) |
|
virtual |
|
inline |
Definition at line 98 of file PlotCompareUtility.h.
References addHistoData(), and SiStripClientConfig_Tier0_cff::Name.
Referenced by addHistoData().
HistoData* PlotCompareUtility::addHistoData | ( | std::string | NewName, |
std::string | RefName, | ||
int | PlotType | ||
) |
HistoData* PlotCompareUtility::addProjectionXData | ( | HistoData * | Parent, |
std::string | Name, | ||
int | PlotType, | ||
int | Bin, | ||
TH1 * | NewHisto, | ||
TH1 * | RefHisto | ||
) |
Referenced by compare().
HistoData* PlotCompareUtility::addProjectionYData | ( | HistoData * | Parent, |
std::string | Name, | ||
int | PlotType, | ||
int | Bin, | ||
TH1 * | NewHisto, | ||
TH1 * | RefHisto | ||
) |
Referenced by compare().
|
private |
Referenced by compare().
|
inline |
|
inline |
|
inline |
bool PlotCompareUtility::compare | ( | HistoData * | ) |
|
private |
|
private |
Definition at line 18 of file Plot1D.h.
References centerRebin(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, chi2Threshold, HistoData::getDoAllow1DRebinning(), HistoData::getNewHisto(), HistoData::getRefHisto(), postprocess-scan-build::href, ksThreshold, TriggerAnalyzer::passed, renormalize(), HistoData::setChi2Score(), HistoData::setHighScore(), HistoData::setIsEmpty(), HistoData::setKSScore(), HistoData::setLowScore(), and HistoData::setResult().
|
private |
Definition at line 21 of file Plot2D.h.
References addProjectionXData(), addProjectionYData(), axisX, axisY, newFWLiteAna::bin, reco::ceil(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, HistoData::getDoAllow2DRebinningX(), HistoData::getDoAllow2DRebinningY(), HistoData::getDoProjectionsX(), HistoData::getDoProjectionsY(), HistoData::getHighScore(), HistoData::getMaxProjectionsX(), HistoData::getMaxProjectionsY(), HistoData::getName(), HistoData::getNewHisto(), HistoData::getRefHisto(), postprocess-scan-build::href, createfilelist::int, seedmultiplicitymonitor_newtracking_cfi::nBins, Plot1D, amptDefault_cfi::proj, HistoData::setHighScore(), HistoData::setIsEmpty(), HistoData::setLowScore(), and HistoData::setResult().
void PlotCompareUtility::dump | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
double PlotCompareUtility::getThreshold | ( | ) | const |
Referenced by makePlots().
bool PlotCompareUtility::isValid | ( | ) | const |
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
void PlotCompareUtility::makeDefaultPlots | ( | ) |
void PlotCompareUtility::makeHTML | ( | HistoData * | ) |
|
private |
|
private |
|
private |
Definition at line 340 of file Plot2D.h.
References axisX, axisY, newFWLiteAna::bin, dqmMemoryStats::float, groupFilesInBlocks::fout, HistoData::getName(), HistoData::getRefHisto(), createfilelist::int, SiStripClientConfig_Tier0_cff::Name, hltrates_dqm_sourceclient-live_cfg::offset, plotsHeight, plotsWidth, amptDefault_cfi::proj, projectionsBarsThickness, projectionsBottomMargin, projectionsHeight, projectionsLeftMargin, projectionsRightMargin, projectionsTopMargin, projectionsWidth, projectionsX, projectionsY, HistoData::setResultTarget(), AlCaHLTBitMon_QueryRunRegistry::string, filterCSVwithJSON::target, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, and testProducerWithPsetDescEmpty_cfi::y2.
void PlotCompareUtility::makePlots | ( | HistoData * | ) |
|
private |
|
private |
Definition at line 67 of file Plot1D.h.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, chi2Threshold, HistoData::getChi2Score(), HistoData::getDoDrawErrorBars(), HistoData::getIsEmpty(), HistoData::getKSScore(), HistoData::getName(), HistoData::getNewHisto(), HistoData::getRefHisto(), HistoData::getResultImage(), HistoData::getResultTarget(), HistoData::getShadedFillColor(), HistoData::getShadedFillStyle(), HistoData::getShadedLineColor(), postprocess-scan-build::href, WDecay::kNone, ksThreshold, listHistos::legend, plotsBottomMargin, plotsHeight, plotsLeftMargin, plotsRightMargin, plotsTopMargin, plotsWidth, HistoData::setResultImage(), HistoData::setResultTarget(), AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.
|
private |
Definition at line 146 of file Plot2D.h.
References axisX, axisY, HistoData::getIsEmpty(), HistoData::getName(), HistoData::getNewHisto(), HistoData::getRefHisto(), HistoData::getResultImage(), HistoData::getResultTarget(), HistoData::getShadedFillColor(), HistoData::getShadedFillStyle(), HistoData::getShadedLineColor(), getThreshold(), postprocess-scan-build::href, createfilelist::int, Plot1D, amptDefault_cfi::proj, projectionsBarsThickness, projectionsBottomMargin, projectionsHeight, projectionsLeftMargin, projectionsRightMargin, projectionsTopMargin, projectionsWidth, projectionsX, projectionsY, HistoData::setIsEmpty(), HistoData::setResultImage(), HistoData::setResultTarget(), HistoData::setShadedFillColor(), HistoData::setShadedFillStyle(), HistoData::setShadedLineColor(), AlCaHLTBitMon_QueryRunRegistry::string, HLT_FULL_cff::xAxis, multiplicitycorr_cfi::xMax, photonAnalyzer_cfi::xMin, HLT_FULL_cff::yAxis, multiplicitycorr_cfi::yMax, and photonAnalyzer_cfi::yMin.
void PlotCompareUtility::makeSummary | ( | std::string | Name | ) |
void PlotCompareUtility::makeSummaryHTML | ( | std::string | Name | ) |
void PlotCompareUtility::makeSummaryPlot | ( | std::string | Name | ) |
|
private |
Referenced by compare().
|
inline |
Definition at line 72 of file PlotCompareUtility.h.
References chi2Threshold, and HLT_FULL_cff::Threshold.
|
inline |
Definition at line 71 of file PlotCompareUtility.h.
References ksThreshold, and HLT_FULL_cff::Threshold.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 137 of file PlotCompareUtility.h.
Referenced by compare(), getChi2Threshold(), makePlots(), and setChi2Threshold().
|
private |
Definition at line 176 of file PlotCompareUtility.h.
Referenced by getFinalResult().
|
private |
Definition at line 123 of file PlotCompareUtility.h.
Referenced by clearHistos(), getHistos(), and getNumHistos().
|
private |
Definition at line 136 of file PlotCompareUtility.h.
Referenced by compare(), getKSThreshold(), makePlots(), and setKSThreshold().
|
private |
Definition at line 130 of file PlotCompareUtility.h.
|
private |
Definition at line 129 of file PlotCompareUtility.h.
|
private |
Definition at line 131 of file PlotCompareUtility.h.
|
private |
Definition at line 173 of file PlotCompareUtility.h.
Referenced by getPlotsBottomMargin(), makePlots(), and setPlotsBottomMargin().
|
private |
Definition at line 169 of file PlotCompareUtility.h.
Referenced by getPlotsHeight(), makeHTML(), makePlots(), and setPlotsHeight().
|
private |
Definition at line 171 of file PlotCompareUtility.h.
Referenced by getPlotsLeftMargin(), makePlots(), and setPlotsLeftMargin().
|
private |
Definition at line 172 of file PlotCompareUtility.h.
Referenced by getPlotsRightMargin(), makePlots(), and setPlotsRightMargin().
|
private |
Definition at line 170 of file PlotCompareUtility.h.
Referenced by getPlotsTopMargin(), makePlots(), and setPlotsTopMargin().
|
private |
Definition at line 168 of file PlotCompareUtility.h.
Referenced by getPlotsWidth(), makeHTML(), makePlots(), and setPlotsWidth().
|
private |
Definition at line 161 of file PlotCompareUtility.h.
Referenced by getProjectionsBarsThickness(), makeHTML(), makePlots(), and setProjectionsBarsThickness().
|
private |
Definition at line 165 of file PlotCompareUtility.h.
Referenced by getProjectionsBottomMargin(), makeHTML(), makePlots(), and setProjectionsBottomMargin().
|
private |
Definition at line 160 of file PlotCompareUtility.h.
Referenced by getProjectionsHeight(), makeHTML(), makePlots(), and setProjectionsHeight().
|
private |
Definition at line 163 of file PlotCompareUtility.h.
Referenced by getProjectionsLeftMargin(), makeHTML(), makePlots(), and setProjectionsLeftMargin().
|
private |
Definition at line 164 of file PlotCompareUtility.h.
Referenced by getProjectionsRightMargin(), makeHTML(), makePlots(), and setProjectionsRightMargin().
|
private |
Definition at line 162 of file PlotCompareUtility.h.
Referenced by getProjectionsTopMargin(), makeHTML(), makePlots(), and setProjectionsTopMargin().
|
private |
Definition at line 159 of file PlotCompareUtility.h.
Referenced by getProjectionsWidth(), makeHTML(), makePlots(), and setProjectionsiWidth().
Definition at line 124 of file PlotCompareUtility.h.
Referenced by clearProjectionsX(), getProjectionsX(), makeHTML(), and makePlots().
Definition at line 125 of file PlotCompareUtility.h.
Referenced by clearProjectionsY(), getProjectionsY(), makeHTML(), and makePlots().
|
private |
Definition at line 132 of file PlotCompareUtility.h.
|
private |
Definition at line 128 of file PlotCompareUtility.h.
|
private |
Definition at line 133 of file PlotCompareUtility.h.
|
private |
Definition at line 152 of file PlotCompareUtility.h.
Referenced by getSummaryBarsThickness(), and setSummaryBarsThickness().
|
private |
Definition at line 156 of file PlotCompareUtility.h.
Referenced by getSummaryBottomMargin(), and setSummaryBottomMargin().
|
private |
Definition at line 151 of file PlotCompareUtility.h.
Referenced by getSummaryHeight(), and setSummaryHeight().
|
private |
Definition at line 154 of file PlotCompareUtility.h.
Referenced by getSummaryLeftMargin(), and setSummaryLeftMargin().
|
private |
Definition at line 155 of file PlotCompareUtility.h.
Referenced by getSummaryRightMargin(), and setSummaryRightMargin().
|
private |
Definition at line 153 of file PlotCompareUtility.h.
Referenced by getSummaryTopMargin(), and setSummaryTopMargin().
|
private |
Definition at line 150 of file PlotCompareUtility.h.
Referenced by getSummaryWidth(), and setSummaryWidth().