From b67b122cbfadcbb0bd52ec1dde8f2691c96132ad Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Thu, 3 Jul 2014 14:30:53 +0000
Subject: [PATCH]  - added comment about ownership for LCEvent object

---
 DDG4/lcio/Geant4Output2LCIO.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/DDG4/lcio/Geant4Output2LCIO.cpp b/DDG4/lcio/Geant4Output2LCIO.cpp
index bba5ffdec..46019dfa9 100644
--- a/DDG4/lcio/Geant4Output2LCIO.cpp
+++ b/DDG4/lcio/Geant4Output2LCIO.cpp
@@ -154,6 +154,8 @@ void Geant4Output2LCIO::saveRun(const G4Run* run)  {
 
 void Geant4Output2LCIO::begin(const G4Event* /* event */)  {
   lcio::LCEventImpl* e  = new lcio::LCEventImpl;
+  //fg: here the event context takes ownership and
+  //    deletes the event in the end 
   context()->event().addExtension<lcio::LCEventImpl>( e );
 }
 
-- 
GitLab