Message: neutron activation problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None neutron activation problem 

Forum: Physics List
Date: 29 Jun, 2011
From: Eleni <Eleni>

Hello All,

I am trying to count U-239 produced by the U238(n,g) reaction. In my StackingAction class I added the following

G4String particleType = track->GetDefinition()->GetParticleType();
if (particleType == "nucleus" && track->GetParentID()>0)
     G4Ions* ion = (G4Ions*) track->GetDefinition();
     G4int Z = ion->GetAtomicNumber();
     G4int A = ion->GetAtomicMass();
     if (Z==92 && A==239)
In the RunAction.hh I added the following 

void CountU239 ()
            { nbU239++ ;};

But when I run the programma I get the same number of gammas and U239 isotopes.

What do I do wrong in the code?

I attach the classes : RunAction.hh

Thanks in advance


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

1 Feedback: Re: neutron activation problem   (Sean Turnbull - 29 Jun, 2011)
 Add Message Add Message
to: "neutron activation problem"

 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 ]