From 8c10d27b75b19bbad93335e38e956d1d94445796 Mon Sep 17 00:00:00 2001 From: Savannah Rose Shively <savannah.rose.shively@cern.ch> Date: Fri, 9 Oct 2020 16:44:14 +0200 Subject: [PATCH] fill histo --- Control/CalypsoExample/SimHitExample/src/SimHitAlg.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Control/CalypsoExample/SimHitExample/src/SimHitAlg.cxx b/Control/CalypsoExample/SimHitExample/src/SimHitAlg.cxx index b8da7e60..82fec214 100644 --- a/Control/CalypsoExample/SimHitExample/src/SimHitAlg.cxx +++ b/Control/CalypsoExample/SimHitExample/src/SimHitAlg.cxx @@ -90,6 +90,15 @@ StatusCode SimHitAlg::execute() } } + + if (h_preshowerHits->size()!=0){ + for (const ScintHit& hit : *h_preshowerHits) + { + m_hist->Fill(hit.energyLoss()); + m_plate->Fill(hit.getStation(),hit.getPlate()); + + } + } -- GitLab