Public Member Functions | |
PlotViewer (TGWindow *m) | |
~PlotViewer () | |
void | Update () |
void | UpdateCompare (const ComparisonOptions &COpt) |
void | GUIModelDataIssue (const GUIModelData &m, unsigned int which) |
bool | GetLock () |
void | ReleaseLock () |
Static Public Member Functions | |
static void | Exec () |
Private Member Functions | |
void | ContentProjectionTH1F (const HistoData *hd, TH1F *h) |
void | ContentProjectionTH2F (const HistoData *hd, TH2F *h) |
Private Attributes | |
PlotOptions | fPlotOpt |
Options for plotting. More... | |
std::string | fHistogramSource |
Source to pull histograms from. More... | |
std::string | fCurrentHistogram |
What histogram is being shown? More... | |
Definition at line 24 of file PlotViewer.h.
PlotViewer::PlotViewer | ( | TGWindow * | m | ) |
Definition at line 33 of file PlotViewer.cxx.
PlotViewer::~PlotViewer | ( | ) |
Definition at line 945 of file PlotViewer.cxx.
Definition at line 763 of file PlotViewer.cxx.
References plot_validation_datamc::c, om::cout, e, MakeMiniprodValidationCuts::f, fCurrentHistogram, fHistogramSource, om::PlotOptions::fLogy, om::HistoData::fName, fPlotOpt, MECModelEnuComparisons::i, kGreen, and std::log10().
Referenced by Update(), and UpdateCompare().
Definition at line 836 of file PlotViewer.cxx.
References abs(), plot_validation_datamc::c, om::cout, e, MakeMiniprodValidationCuts::f, fCurrentHistogram, fHistogramSource, om::PlotOptions::fLogz, om::HistoData::fName, fPlotOpt, MECModelEnuComparisons::i, calib::j, kGreen, std::log10(), and plotROC::nBins.
Referenced by Update(), and UpdateCompare().
|
static |
Definition at line 54 of file PlotViewer.cxx.
References om::PlotClickHandler::DoubleClick(), fPlotOpt, and om::PlotClickHandler::SingleClick().
|
inherited |
Definition at line 24 of file GUIModelSubscriber.cxx.
References gsLock, MECModelEnuComparisons::i, and kSleep.
Referenced by om::CaptionBox::GUIModelDataIssue(), om::HistogramInfo::GUIModelDataIssue(), om::ButtonBank::GUIModelDataIssue(), om::HistogramBrowser::GUIModelDataIssue(), GUIModelDataIssue(), and om::WatchListBox::GUIModelDataIssue().
|
virtual |
Receive notifications when the GUI model data has changed
m | - The new model data |
which | - Which element of the data has changed |
See GUIModel.h for the definitions of "which".
Note: To prevent collisions between threads, users should implement their "GUIModelDataIssue" methods following this pattern:
{ book aok = this->GetLock(); if (!aok) return;
...your code here...
this->ReleaseLock(); }
Implements om::GUIModelSubscriber.
Definition at line 913 of file PlotViewer.cxx.
References om::cout, om::CurrentHistogram::Current(), om::GUIModelData::fComparisonOpt, om::GUIModelData::fCurrentHistogram, fCurrentHistogram, om::GUIModelData::fHistogramSource, fHistogramSource, om::GUIModelSubscriber::GetLock(), om::kComparisonUpdateID, om::kCurrentHistogramID, om::kHistogramSourceID, om::kPlotViewRefreshID, om::kPrintID, getGoodRuns4SAM::n, om::GUIModelSubscriber::ReleaseLock(), string, Update(), and UpdateCompare().
|
inherited |
Definition at line 41 of file GUIModelSubscriber.cxx.
References gsLock.
Referenced by om::CaptionBox::GUIModelDataIssue(), om::HistogramInfo::GUIModelDataIssue(), om::ButtonBank::GUIModelDataIssue(), om::HistogramBrowser::GUIModelDataIssue(), GUIModelDataIssue(), and om::WatchListBox::GUIModelDataIssue().
void PlotViewer::Update | ( | ) |
Definition at line 72 of file PlotViewer.cxx.
References om::PlotOptions::AutoScale(), ContentProjectionTH1F(), ContentProjectionTH2F(), om::cout, om::GUIModel::Data(), MakeMiniprodValidationCuts::f, om::PlotOptions::fAlert, om::GUIModelData::fContentProjection, fCurrentHistogram, om::PlotOptions::fDCMutc, om::PlotOptions::fDrawOpt, om::PlotOptions::fFEButc, fHistogramSource, fPlotOpt, om::PlotOptions::fSpecial, make_syst_table_plots::h, hd, om::GUIModel::Instance(), om::HistoTable::Instance(), kGreen, om::kTH1F, om::kTH2F, om::HistoTable::LookUp(), om::PlotOptions::MakeLabels(), om::PlotOptions::Set(), and om::PlotOptions::SetPad().
Referenced by progbar.ProgressBar::Finish(), GUIModelDataIssue(), progbar.ProgressBar::Start(), and UpdateCompare().
void PlotViewer::UpdateCompare | ( | const ComparisonOptions & | COpt | ) |
Definition at line 181 of file PlotViewer.cxx.
References om::PlotOptions::AutoScale(), ContentProjectionTH1F(), ContentProjectionTH2F(), om::cout, om::GUIModel::Data(), f1, f2, om::GUIModelData::fContentProjection, fCurrentHistogram, om::PlotOptions::fDrawOpt, fHistogramSource, stan::math::fill(), om::PlotOptions::fLogy, om::PlotOptions::fLogz, om::ComparisonOptions::fLookBack, om::ComparisonOptions::fMethod, om::ComparisonOptions::fNormalize, fPlotOpt, om::ComparisonOptions::fReferenceFile, om::ComparisonOptions::fWhich, h1, h2, hd, MECModelEnuComparisons::i, om::GUIModel::Instance(), om::HistoTable::Instance(), calib::j, om::TickerSubscriber::k10min, om::TickerSubscriber::k30min, om::TickerSubscriber::k5min, om::ComparisonOptions::kArea, om::ComparisonOptions::kAsymmetry, om::ComparisonOptions::kChi, om::ComparisonOptions::kDifference, om::ComparisonOptions::kNone, om::ComparisonOptions::kOverlay, om::ComparisonOptions::kPeak, om::ComparisonOptions::kRatio, om::ComparisonOptions::kRecent, kRed, om::ComparisonOptions::kReference, om::TickerSubscriber::kRun, om::ComparisonOptions::kShowRef, om::TickerSubscriber::kSubrun, om::kTH1F, om::kTH2F, om::HistoTable::LookUp(), om::PlotOptions::MakeLabels(), scale, om::PlotOptions::Set(), om::PlotOptions::SetPad(), std::sqrt(), string, getGoodRuns4SAM::tag, and Update().
Referenced by GUIModelDataIssue().
|
private |
What histogram is being shown?
Definition at line 45 of file PlotViewer.h.
Referenced by ContentProjectionTH1F(), ContentProjectionTH2F(), GUIModelDataIssue(), Update(), and UpdateCompare().
|
private |
Source to pull histograms from.
Definition at line 44 of file PlotViewer.h.
Referenced by ContentProjectionTH1F(), ContentProjectionTH2F(), GUIModelDataIssue(), Update(), and UpdateCompare().
|
private |
Options for plotting.
Definition at line 43 of file PlotViewer.h.
Referenced by ContentProjectionTH1F(), ContentProjectionTH2F(), Exec(), Update(), and UpdateCompare().