Skip to content
Snippets Groups Projects
Commit b67b122c authored by Frank Gaede's avatar Frank Gaede
Browse files

- added comment about ownership for LCEvent object

parent a03eca63
No related branches found
No related tags found
No related merge requests found
...@@ -154,6 +154,8 @@ void Geant4Output2LCIO::saveRun(const G4Run* run) { ...@@ -154,6 +154,8 @@ void Geant4Output2LCIO::saveRun(const G4Run* run) {
void Geant4Output2LCIO::begin(const G4Event* /* event */) { void Geant4Output2LCIO::begin(const G4Event* /* event */) {
lcio::LCEventImpl* e = new lcio::LCEventImpl; 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 ); context()->event().addExtension<lcio::LCEventImpl>( e );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment