From eeda98eb3dab0b5991afdf6edc8f3c9a7b5db458 Mon Sep 17 00:00:00 2001 From: Tapio Date: Mon, 6 Jul 2015 21:21:47 +0200 Subject: [PATCH 1/2] In DMRs, print in legend error of RMS and number of modules --- Alignment/OfflineValidation/macros/PlotAlignmentValidation.C | 1 + 1 file changed, 1 insertion(+) diff --git a/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C b/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C index 3704a7e2703c1..590c70aabb79f 100644 --- a/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C +++ b/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C @@ -1376,6 +1376,7 @@ setDMRHistStyleAndLegend(TH1F* h, PlotAlignmentValidation::DMRPlotInfo& plotinfo legend << " #mu = " << fitResults.first << " #mum, #sigma = " << fitResults.second << " #mum"; } else { legend << " #mu = " << h->GetMean(1)*10000 << " #mum, rms = " << h->GetRMS(1)*10000 << " #mum"; + legend << " #mu = " << h->GetMean(1)*10000 << " #mum, rms = " << h->GetRMS(1)*10000 << " #pm " << h->GetRMSError(1)*10000 << " #mum, " << (int) h->GetEntries() << " modules" ; } } else if (plotinfo.variable == "rmsX" || plotinfo.variable == "rmsY") { legend << " #mu = " << h->GetMean(1)*10000 << " #mum, rms = " << h->GetRMS(1)*10000 << " #mum"; From 64a4f03ff18bd2a3126fb168a869daa2718da54e Mon Sep 17 00:00:00 2001 From: Tapio Date: Mon, 6 Jul 2015 21:52:21 +0200 Subject: [PATCH 2/2] Fix typo --- Alignment/OfflineValidation/macros/PlotAlignmentValidation.C | 1 - 1 file changed, 1 deletion(-) diff --git a/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C b/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C index 590c70aabb79f..694a19881faeb 100644 --- a/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C +++ b/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C @@ -1375,7 +1375,6 @@ setDMRHistStyleAndLegend(TH1F* h, PlotAlignmentValidation::DMRPlotInfo& plotinfo if (useFit_) { legend << " #mu = " << fitResults.first << " #mum, #sigma = " << fitResults.second << " #mum"; } else { - legend << " #mu = " << h->GetMean(1)*10000 << " #mum, rms = " << h->GetRMS(1)*10000 << " #mum"; legend << " #mu = " << h->GetMean(1)*10000 << " #mum, rms = " << h->GetRMS(1)*10000 << " #pm " << h->GetRMSError(1)*10000 << " #mum, " << (int) h->GetEntries() << " modules" ; } } else if (plotinfo.variable == "rmsX" || plotinfo.variable == "rmsY") {