From 1531bb26c67659e11d0748eb315bf8d7ff31f081 Mon Sep 17 00:00:00 2001
From: John Chapman <John.Chapman@cern.ch>
Date: Fri, 17 May 2024 08:39:40 +0200
Subject: [PATCH] More debugging changes

---
 Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx b/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx
index 58b77ee3b1e3..a1f68c73a075 100644
--- a/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx
+++ b/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx
@@ -1047,8 +1047,10 @@ G4PrimaryParticle* ISF::InputConverter::getG4PrimaryParticle(ISF::ISFParticle& i
 
   if ( genpart ) {
     if (genpart->end_vertex()) {
+      ATH_MSG_WARNING( "Detected primary particle with end vertex. Suspect a misconfiguration of a previous simulator. Skipping..." ); // TEMPORARY
+      return nullptr;
       // Old approach particle had an end vertex - predefined decays taken from the main GenEvent
-      processPredefinedDecays(genpart, isp, g4particle.get(), true);
+      //processPredefinedDecays(genpart, isp, g4particle.get(), true);
     }
     else if (MC::isDecayed(genpart) // Some assumptions about main GenEvent here
              && !genpart->end_vertex()) {
@@ -1153,7 +1155,7 @@ void ISF::InputConverter::addG4PrimaryVertex(G4Event* g4evt, ISF::ISFParticle& i
 
   G4PrimaryParticle *g4particle = this->getG4PrimaryParticle( isp, useHepMC, shadowGenEvent );
   if (!g4particle) {
-    ATH_MSG_ERROR("Failed to create G4PrimaryParticle for ISParticle (" << isp <<")");
+    ATH_MSG_WARNING("Failed to create G4PrimaryParticle for ISParticle (" << isp <<")"); // TEMPORARY
     return;
   }// Already printed a warning
 
-- 
GitLab