Message: Re: where are process objects deleted? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: where are process objects deleted? 

Forum: Run Management
Re: None where are process objects deleted? (Gumplinger Peter)
Date: 05 Sep, 2005
From: Hisaya Kurashige <Hisaya Kurashige>

Now, there are two manner to create a process
A) create a process in ConstructProcess method by using new operator 
B) a process (object) is a member of PhysicsList is created when PhysicsList is created 
Many examples such as examples/novice/N03 adopt A. 
B is adopted by 'Educated Guess Physics Lists for Geant4 HADronic Physics'. 
At first, I assumed processes are created in the A style and I implemented destruction of processes in the destructor of G4ProcessTable. But, processes created in B-way will be destructed when the PhysicsList is deleted and we should not delete pointer of these processes.
 So, there is no 'elegant' and 'unified' way to delete processes. In most cases, there are no 'explicit' destruction of processes as you point out.

G4VModulerPhysicsList class introduce modularity of PhysicsList. Each modularized class take care of specific type of pprocesses. Please see 'Educated Guess Physics Lists for Geant4 HADronic Physics' as an example.

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

 Add Message Add Message
to: "Re: where are process objects deleted?"

 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 ]