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

None where are process objects deleted? 

Forum: Run Management
Date: 21 Jun, 2005
From: Gumplinger Peter <Gumplinger Peter>

The destructor of G4ProcessTable no longer deletes the processes themselves. This has supposedly moved to G4VUserPhysicsList;

 82     // destruction of processes has moved to G4VUserPhysicsList
 83     for (idx=fProcTblVector->begin(); idx!=fProcTblVector->end(); ++idx) {
 84       // delete all processes
 85       // delete (*idx)->GetProcess();
 86       delete (*idx);
 87     }  

but that is not so:

 92 G4VUserPhysicsList::~G4VUserPhysicsList()
 93 {
 94   if (theMessenger != 0) {
 95     delete theMessenger;
 96     theMessenger = 0;
 97   }
 98 }

A related question, what purpose does the class G4VModularPhysicsList serve?

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

1 Note: Re: where are process objects deleted?   (Götz Ruprecht - 21 Jun, 2005)
3 None: Re: where are process objects deleted?   (Hisaya Kurashige - 05 Sep, 2005)
 Add Message Add Message
to: "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 ]