From fb5e5808fb4ea83ae2f80c120f29a71968dd0d29 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Tue, 12 Mar 2019 13:50:11 -0400 Subject: [PATCH] Save pid in sum.by_pid.pid ROOT branch. After the sum.by_pid functionality was changed to internally use branches, I forgot to store the pid (std::map.first) in the vectors that are written to the ROOT tree. All values of pid were still at 0. --- include/remollGenericDetectorSum.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/include/remollGenericDetectorSum.hh b/include/remollGenericDetectorSum.hh index b3ecd3949..0419d99e8 100644 --- a/include/remollGenericDetectorSum.hh +++ b/include/remollGenericDetectorSum.hh @@ -43,6 +43,7 @@ class remollGenericDetectorSum : public G4VHit { it = fSumByPID.begin(); it != fSumByPID.end(); ++it) { sum.by_pid.push_back(it->second); + sum.by_pid.back().pid = it->first; } return sum; }