Message: Re: rdecay01 concept Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: rdecay01 concept 

Forum: Particles
Re: Question rdecay01 concept (Davinder Siwal)
Re: None Re: rdecay01 concept (michel maire)
Re: None Re: rdecay01 concept (Davinder Siwal)
Date: 21 May, 2011
From: michel maire <michel maire>

On Fri, 20 May 2011 04:50:17 GMT, Davinder Siwal wrote:
> Hiii Michle
> 
> thanks for reply
> 
> The text file which you showed is working fine, But I would like to
> understand about TrackingAction.cc and RunAction.cc files given in
> rdecay01
> 
> one more thing that the particle is thrown with zero energy what does it
> mean ???

  Have a look at README
  Try debug.mac with visualisation

> 
> and what are the following lines are doing in PrimaryGeneratorAction.cc
> 
>  if (particleGun->GetParticleDefinition() == G4Geantino::Geantino()) {  
>     G4int Z = 10, A = 24;
>     G4double ionCharge   = 0.*eplus;
>     G4double excitEnergy = 0.*keV;
> 
>     G4ParticleDefinition* ion
>        = G4ParticleTable::GetParticleTable()->GetIon(Z,A,excitEnergy);
>     particleGun->SetParticleDefinition(ion);
>     particleGun->SetParticleCharge(ionCharge);
> 
> Hope you understand my problem
> 

 It is a trick :
  default kinematic is set in the constructor of PrimaryGenerator, which can be redifined via UI command.
 Unfortunatly, IonTable is not yet built when constructor is invoked : one cannot define an ion. By default, ParticleGun define a geantino.
If you do not use UI command, this geantino is replaced by a Ne24 at rest in GeneratePrimaries()

                      Michel

 Add Message Add Message
to: "Re: rdecay01 concept"

 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 ]