From a651b06e907f329e4ed555352e6742e20d0c1e22 Mon Sep 17 00:00:00 2001 From: lintao <lintao51@gmail.com> Date: Tue, 20 Dec 2022 17:10:22 +0800 Subject: [PATCH] WIP: show the simulator status. --- Analysis/DumpEvent/src/DumpSimHitAlg.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Analysis/DumpEvent/src/DumpSimHitAlg.cpp b/Analysis/DumpEvent/src/DumpSimHitAlg.cpp index 5c9a3d1f..9ea53b5f 100644 --- a/Analysis/DumpEvent/src/DumpSimHitAlg.cpp +++ b/Analysis/DumpEvent/src/DumpSimHitAlg.cpp @@ -51,6 +51,13 @@ StatusCode DumpSimHitAlg::initialize() { StatusCode DumpSimHitAlg::execute() { auto mcCol = m_mcParCol.get(); + for (auto particle: *mcCol) { + info() << "mc particle -> " + << " (ID: " << particle.getObjectID().index << ") " + << " (simulator status: " << particle.getSimulatorStatus() << ") " + << endmsg; + } + auto vxdCol = m_VXDCol.get(); for (auto hit: *vxdCol) { -- GitLab