From 9ec449f4a2f9a6f26ff0c726d1e57df6c972e3e8 Mon Sep 17 00:00:00 2001 From: Finn Feindt <finn.feindt@desy.de> Date: Wed, 1 Mar 2023 16:00:55 +0100 Subject: [PATCH] AnalysisEfficiency: Fixed filling of fake hits vs. time. --- src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp b/src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp index ed1d98f93..d471f2118 100644 --- a/src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp +++ b/src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp @@ -620,8 +620,8 @@ StatusCode AnalysisEfficiency::run(const std::shared_ptr<Clipboard>& clipboard) } hFakePixelPerEvent->Fill(fake_hits); - fakePixelPerEventVsTime->Fill(fake_hits, static_cast<double>(Units::convert(event->start(), "s"))); - fakePixelPerEventVsTimeLong->Fill(fake_hits, static_cast<double>(Units::convert(event->start(), "s"))); + fakePixelPerEventVsTime->Fill(static_cast<double>(Units::convert(event->start(), "s")), fake_hits); + fakePixelPerEventVsTimeLong->Fill(static_cast<double>(Units::convert(event->start(), "s")), fake_hits); hFakeClusterPerEvent->Fill(fake_clusters); } else if(m_fake_rate_sensoredge > 0) { @@ -654,8 +654,8 @@ StatusCode AnalysisEfficiency::run(const std::shared_ptr<Clipboard>& clipboard) fakePixelPerEventMap->Fill(pixel->column(), pixel->row(), 1); } hFakePixelPerEvent->Fill(fake_hits); - fakePixelPerEventVsTime->Fill(fake_hits, static_cast<double>(Units::convert(event->start(), "s"))); - fakePixelPerEventVsTimeLong->Fill(fake_hits, static_cast<double>(Units::convert(event->start(), "s"))); + fakePixelPerEventVsTime->Fill(static_cast<double>(Units::convert(event->start(), "s")), fake_hits); + fakePixelPerEventVsTimeLong->Fill(static_cast<double>(Units::convert(event->start(), "s")), fake_hits); // get and iterate dut clusters from clipboard auto clusters = clipboard->getData<Cluster>(m_detector->getName()); -- GitLab