Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
b67b122c
Commit
b67b122c
authored
10 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- added comment about ownership for LCEvent object
parent
a03eca63
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDG4/lcio/Geant4Output2LCIO.cpp
+2
-0
2 additions, 0 deletions
DDG4/lcio/Geant4Output2LCIO.cpp
with
2 additions
and
0 deletions
DDG4/lcio/Geant4Output2LCIO.cpp
+
2
−
0
View file @
b67b122c
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment