Message: Re: Creating excited Ions with certain lifetime Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Creating excited Ions with certain lifetime 

Forum: Particles
Re: Question Creating excited Ions with certain lifetime (Murat Bayram)
Re: None Re: Creating excited Ions with certain lifetime (Qiang)
Date: 10 May, 2013
From: Murat Bayram <Murat Bayram>

Hi,


yes I fixed it. First of all it was important that the function is called in GeneratePrimaries(G4Event*), as michel maire already said. You basically than need to add

Ion->SetPDGStable( false );
G4double lifetime=1*second;
Ion->SetPDGLifeTime( lifetime );

to your created ion.

Before the gamma de-excitation works, you need to modify your physicalist, so you need to add

void PhysicsList :: ConstructProcess () {
G4RadioactiveDecay* radioactiveDecay = new G4RadioactiveDecay ( ) ;
radioactiveDecay->SetHLThreshold(-1.*s );
G4ProcessManager* pmanager = G4GenericIon :: GenericIon()->GetProcessManager (); pmanager->AddProcess(radioactiveDecay , 0, -1, 1);}


That worked for me :-)

 Add Message Add Message
to: "Re: Creating excited Ions with certain lifetime"

 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 ]