Skip to content
Snippets Groups Projects
Commit 921bc245 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

AthenaMonitoring: Put private tool histograms into sub-directory

Replace '.' in histogram path with '/'. That makes all histograms of
private tools (MyAlg.MyTool) appear in a sub-directory (MyAlg/MyTool).
Similarly histograms of public tools should appear under ToolSvc, etc.

Side remark: At P1 the online hsitogramming service does not allow the
publication of histograms with '.' in their name.
parent 7c954a25
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
#include <map>
#include <mutex>
#include <algorithm>
#include <TH1.h>
#include <TH2.h>
#include <TProfile.h>
......@@ -35,8 +36,11 @@ StatusCode GenericMonitoringTool::book() {
if (m_histoPath.empty()) {
auto named = dynamic_cast<const INamedInterface*>(parent());
m_histoPath = named ? named->name() : name();
}
}
// Replace dot (e.g. MyAlg.MyTool) with slash to create sub-directory
std::replace( m_histoPath.begin(), m_histoPath.end(), '.', '/' );
ATH_MSG_DEBUG("Booking histograms in path: " << m_histoPath.value());
HistogramFillerFactory factory(m_histSvc, m_histoPath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment