Commit 91d8cb98 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

OnMon: didn't work

parent 571ba171
Pipeline #581807 passed with stages
in 8 minutes and 48 seconds
......@@ -178,13 +178,12 @@ void OnlineMonitor::AddHisto(string canvasName, string histoName, string style,
// Add root directory to path:
histoName = "/" + histoName;
style += "hist";
TH1* histogram = static_cast<TH1*>(gDirectory->Get(histoName.c_str()));
if(histogram) {
gui->histograms[canvasName].push_back(static_cast<TH1*>(gDirectory->Get(histoName.c_str())));
gui->styles[gui->histograms[canvasName].back()] = style;
gui->logarithmic[gui->histograms[canvasName].back()] = logy;
gui->styles[gui->histograms[canvasName].back()] = style;
} else {
LOG(WARNING) << "Histogram " << histoName << " does not exist";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment