From 1764c8961411316f5942ca751b332185acafc488 Mon Sep 17 00:00:00 2001
From: Audrey Chatillon <audrey.chatillon@gmail.com>
Date: Mon, 13 Jan 2025 16:02:41 +0100
Subject: [PATCH] [GaseousDetector] small debugging

---
 NPSimulation/Scorers/GaseousDetectorScorers.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/NPSimulation/Scorers/GaseousDetectorScorers.cc b/NPSimulation/Scorers/GaseousDetectorScorers.cc
index e57164f67..d47286f85 100644
--- a/NPSimulation/Scorers/GaseousDetectorScorers.cc
+++ b/NPSimulation/Scorers/GaseousDetectorScorers.cc
@@ -88,6 +88,8 @@ G4bool PS_GaseousDetector::ProcessHits(G4Step* aStep, G4TouchableHistory*) {
   cout << "t_ParticleName : " << particlename << endl;
   cout << "t_Energy       : " << t_Energy << endl;
   cout << "slice_posZ     : " << slice_posZ << endl; // it seems that step_size is not uniform
+  cout << "t_ParticleName.size()       = " << t_ParticleName.size() << endl;
+  cout << "t_SlicePosZ.size()          = " << t_SlicePosZ.size() << endl;
   cout << "t_EnergyLossPerSlice.size() = " << t_EnergyLossPerSlice.size() << endl;
   t_Level.clear();
   for (unsigned int i = 0; i < mysize; i++) {
@@ -122,6 +124,7 @@ void PS_GaseousDetector::EndOfEvent(G4HCofThisEvent*) {}
 void PS_GaseousDetector::clear() {
   m_Data.clear();
   t_Level.clear();
+  t_ParticleName.clear();
   //t_SliceNbr.clear();
   t_SlicePosZ.clear();
   t_EnergyLossPerSlice.clear();
-- 
GitLab