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: Biasing and Scoring
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)
     runaction->CountU239();
    }
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 : StackingAction.cc RunAction.cc RunAction.hh

Thanks in advance

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/06/29/07.46-87559-StackingAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/06/29/07.46-61769-RunAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/06/29/07.46-61169-RunAction.hh

 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