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)
Date: 01 Feb, 2013
From: michel maire <michel maire>

On Thu, 31 Jan 2013 18:26:49 GMT, Murat Bayram wrote:
>
> The Code for my gun looks like:
> 
> RDMGun::RDMGun() {
> ParticleGun= new G4ParticleGun();
> G4int Z=20, A=56;
> G4double lifetime=0.00001*second;
> G4double IonCharge=0*eplus, ExcitEnergy=1.*MeV;
> G4ParticleDefinition*
> Ion=G4ParticleTable::GetParticleTable()->GetIon(Z,A,ExcitEnergy);
> ParticleGun->SetParticleDefinition(Ion);
> ParticleGun->SetParticleCharge(IonCharge);
> ParticleGun->SetParticleMomentumDirection(G4ThreeVector(1.,0.,0.));
> ParticleGun->SetParticlePosition(G4ThreeVector(-2.4*m,0,0));
> ParticleGun->SetParticleEnergy(700*A*MeV);
> }
> 
> 
> The problem with this Generator is that it does not create excited Ions.

 I do not know how your class RDMGun is used. 
 The class which generates primary particles must inherite from G4VUserPrimaryGeneratorAction; the function must be called GeneratePrimaries(G4Event*), and terminated by a 
  ParticleGun->GeneratePrimaryVertex(anEvent)

 See examples/basic/B3 or extended/radioactivedecay/rdecay01

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

1 Question: Re: Creating excited Ions with certain lifetime   (Murat Bayram - 01 Feb, 2013)
(_ None: Re: Creating excited Ions with certain lifetime   (michel maire - 02 Feb, 2013)
(_ Question: Re: Creating excited Ions with certain lifetime   (Murat Bayram - 04 Feb, 2013)
(_ None: Re: Creating excited Ions with certain lifetime   (michel maire - 04 Feb, 2013)
 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 ]