From cc7b5b5fa8fdec55171eccce191daf27688a11ed Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Thu, 3 May 2018 14:46:15 +0200
Subject: [PATCH] Add user analysis example to DDG4 on demand from FCC-eh

---
 examples/DDG4/src/HitTupleAction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/DDG4/src/HitTupleAction.cpp b/examples/DDG4/src/HitTupleAction.cpp
index b77d1a0ed..f690f2784 100644
--- a/examples/DDG4/src/HitTupleAction.cpp
+++ b/examples/DDG4/src/HitTupleAction.cpp
@@ -175,7 +175,7 @@ void myanalysis::HitTupleAction::end(const G4Event* event)    {
         }
       }
       else   {
-        except("HitTupleAction","Failed to open ROOT N-tuple file: "+m_outFileName);
+        except("HitTupleAction","Failed to open ROOT N-tuple file: %s",m_outFileName.c_str());
       }
     }
     for ( auto& e : m_deposits )  {
-- 
GitLab