Message: How to gereate unstable Phosphor Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How to gereate unstable Phosphor 

Keywords: Radioactive decay
Forum: Particles
Date: 07 Feb, 2002
From: Mario Schubert <Mario Schubert>

Hello,

I am trying to generate Phosphor 32 which should be unstable, but I do not get it working. My particle is still stable.

This is my code in the PrimariesGenerator:

G4int NumParticles = 1;
m_pParticleGun = new G4ParticleGun(NumParticles);
if(m_pParticleGun==NULL) 
  G4cout << "!!! Could not get a G4ParticleGun !!!" << G4endl;
// Selecting particle
G4ParticleTable* pParticleTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition *pParticle = pParticleTable->GetIon(15, 32, 0);
if (pParticle==NULL) {
  G4cout << "!!! Particle " << ParticleName << " not found !!!" << G4endl;
}
pParticle->SetVerboseLevel(2);
pParticle->SetPDGStable(false);
pParticle->DumpTable();
m_pParticleGun->SetParticleDefinition(pParticle);

I have tried it before and after the kernel initialisation, but it does not differ.

Thank you for your help.

Ciao,
    Mario Schubert

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

1 Idea: Re: How to gereate unstable Phosphor   (Alexander Dierlamm - 15 Feb, 2002)
 Add Message Add Message
to: "How to gereate unstable Phosphor"

 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 ]