Message: Re: how can I create a radioactive source ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how can I create a radioactive source ? 

Keywords: radioactive G4BetaMinusDecayChannel source
Forum: Particles
Re: Question how can I create a radioactive source ? (LEFEUVRE)
Date: 25 Oct, 2004
From: Fan Lei <Fan Lei>

First, You need to add G4RadioactiveDecay to GenericIon in your physics list,e.g

...
  G4RadioactiveDecay*  theRadioactiveDecay = new G4RadioactiveDecay();

  theParticleIterator->reset();
  while( (*theParticleIterator)() ){
    G4ParticleDefinition* particle = theParticleIterator->value();
    G4ProcessManager* pmanager = particle->GetProcessManager();
    G4String particleName = particle->GetParticleName();

    if (particleName == "GenericIon") {
      pmanager ->AddProcess(theRadioactiveDecay);
      pmanager ->SetProcessOrdering(theRadioactiveDecay, idxPostStep);
      pmanager ->SetProcessOrdering(theRadioactiveDecay, idxAtRest);
    }
  }
...

Then any radioative isotope can be created at the UI with commands

/gun/particle ion /gun/ion Z A (charge) (excitation_energy)

if G4ParticleGun is used. Or

/gps/particle ion /gps/ion Z A (charge) (excitation_energy)

if G4GeneralParticleSource is used.

The decay of the specified isotope, as well as its daughter nucleis, will be treated by G4RadioactiveDecay.

Fan

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

 Add Message Add Message
to: "Re: how can I create a radioactive source ?"

 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 ]