GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » kill Particle and secondaries
kill Particle and secondaries [message #5144] Tue, 02 October 2007 13:34 Go to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
Dear all, i would like to know
which method of VMC can i use to kill a certain particle and its secondaries?


cheers ALicia.
Re: kill Particle and secondaries [message #5146 is a reply to message #5144] Tue, 02 October 2007 13:41 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
Hi Alicia,
in TVirtualMC there are the following functions:

virtual void StopEvent()
virtual void StopRun()
virtual void StopTrack()


In theory they should do the job. So in your ProcessHits you should write:

gMC->StopTrack()

I think. Try and let me know if it works or not.
Re: kill Particle and secondaries [message #5156 is a reply to message #5146] Thu, 04 October 2007 10:18 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

StopTrack() will stop the track immediatly, and will not transport it further. Anyway secondaries already produced before stopping the track (are on the stack) will not be killed, they will be processed further. Do you need to kill these too ?

Mohammad
Re: kill Particle and secondaries [message #5158 is a reply to message #5156] Thu, 04 October 2007 11:03 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
Yes, but only the secondaries related to the particle
i want to kill.

I would like to be able to use the samne functionality i get with killSecondaries of genat4.

thanks a lot
alicia.
Re: kill Particle and secondaries [message #5159 is a reply to message #5158] Thu, 04 October 2007 11:41 Go to previous message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
Hi again, maybe i should be more clear.

I create a Xi minus, which pnetrates the volume
ionizates createing electrons, muons..(secondaries allowed)

but when the xi minus stops, i add its information to the hit collection, and then after that i want to kill the xi munus if it still alive, and its decay products.

So that was(is still) managed by geant4, by asking which secondaries ware created, and if they were secondaries coming from the decay of xi minus, then, the KillTrackandSecondaries was called.


cheers Alicia.
Previous Topic: Fatal in <CbmStack::CbmStack::UpdateTrackIndex>
Next Topic: Bug under gcc 3.X compiler
Goto Forum:
  


Current Time: Mon Nov 25 18:46:34 CET 2024

Total time taken to generate the page: 0.00680 seconds