From 383e13b95cf32274f4d38d9f07927f0e543ca780 Mon Sep 17 00:00:00 2001 From: Tamas Date: Mon, 1 Aug 2022 21:44:39 +0200 Subject: [PATCH] Remove unsupported chars from PPSAlignmentWorker --- CalibPPS/AlignmentGlobal/plugins/PPSAlignmentWorker.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CalibPPS/AlignmentGlobal/plugins/PPSAlignmentWorker.cc b/CalibPPS/AlignmentGlobal/plugins/PPSAlignmentWorker.cc index 83707fd1552c1..4f21fda60f313 100644 --- a/CalibPPS/AlignmentGlobal/plugins/PPSAlignmentWorker.cc +++ b/CalibPPS/AlignmentGlobal/plugins/PPSAlignmentWorker.cc @@ -273,8 +273,11 @@ void PPSAlignmentWorker::SectorData::init(DQMStore::IBooker& iBooker, char buf[100]; sprintf(buf, "%.1f-%.1f", x_min, x_max); + for (uint c = 0; c < sizeof(buf); c++) { + if (buf[c] == '.') buf[c] = 'p'; + } - iBooker.setCurrentFolder(rootDir + "/" + scfg_.name_ + "/near_far/x slices, N/" + buf); + iBooker.setCurrentFolder(rootDir + "/" + scfg_.name_ + "/near_far/x slices -- N/" + buf); x_slice_plots_N.insert({i, SlicePlots(iBooker, cfg, debug)}); } @@ -284,8 +287,11 @@ void PPSAlignmentWorker::SectorData::init(DQMStore::IBooker& iBooker, char buf[100]; sprintf(buf, "%.1f-%.1f", x_min, x_max); + for (uint c = 0; c < sizeof(buf); c++) { + if (buf[c] == '.') buf[c] = 'p'; + } - iBooker.setCurrentFolder(rootDir + "/" + scfg_.name_ + "/near_far/x slices, F/" + buf); + iBooker.setCurrentFolder(rootDir + "/" + scfg_.name_ + "/near_far/x slices -- F/" + buf); x_slice_plots_F.insert({i, SlicePlots(iBooker, cfg, debug)}); } }