Message: Who's responsible for deletion of hits and hits collection objects? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Who's responsible for deletion of hits and hits collection objects? 

Keywords: deletion of hit and hits collection objects
Forum: Hits, Digitization and Pileup
Date: 09 Mar, 2005
From: Kazuyoshi Furutaka <Kazuyoshi Furutaka>

Dear all.

Who's responsible for deletion of hit and/or hits collection
objects which are new'ed in e.g. the user implementation of the
G4VSensitiveDetector (say in ProcessHits() method)?

Are they automagically deleted somewhere in the toolkit routine?

Or one has to write a fragment of code to delete them by him/herself?
(for example in G4VSensitiveDetector::EndOfEvent() or
G4UserEventAction::EndOfEventAction()?)
If so, where's the best place to do it?
What is the standard way?

Some geant4 executables are killed by the oom-killer
on my Linux system (Fedora core 3, g++/libstdc++ ver.3.4.2)
when run with millions of events, and I suspect memory
is leaking.

Thank you in advance.

Yours,
Kazuyoshi

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Who's responsible for deletion of hits and hits collection objects?   (Makoto Asai - 09 Mar, 2005)
(_ Question: Re: Who's responsible for deletion of hits and hits collection objects?   (Kazuyoshi Furutaka - 10 Mar, 2005)
(_ None: Re: Who's responsible for deletion of hits and hits collection objects?   (michel maire - 11 Mar, 2005)
(_ None: Re: Who's responsible for deletion of hits and hits collection objects?   (Kazuyoshi Furutaka - 11 Mar, 2005)
(_ Note: Re: Who's responsible for deletion of hits and hits collection objects?   (Kazuyoshi Furutaka - 13 Mar, 2005)
 Add Message Add Message
to: "Who's responsible for deletion of hits and hits collection objects?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]