Message: secondary nuetron using Hadr01 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None secondary nuetron using Hadr01 

Forum: Hadronic Processes
Date: 07 Dec, 2010
From: elnaz yazd <elnaz yazd>

Dear Geant4 experts

I am calculating the secondary neutron, gamma, and proton energy spectra in interaction of 190 MeV proton with lead target using your developed Hadr01 example.

to see the energy of particles in terminal the following command is used:

const G4ParticleDefinition* pd = track->GetDefinition(); G4String name = pd->GetParticleName(); G4double e = track->GetKineticEnergy(); if(pd == G4Gamma::Gamma()) { G4cout << "=== Secondary " << name << " kinE(MeV)= " << e/MeV<<G4endl; } else if ( pd == G4Proton::Proton()) { G4cout << "=== Secondary " << name << " kinE(MeV)= " << e/MeV<<G4endl; } else if ( pd == neutron) { G4cout << "=== Secondary " << name << " kinE(MeV)= " << e/MeV<<G4endl; }

But negative values is appeared on terminal for gamma energies and some of neutron energies. how they can be interpreted and what I should do with them to obtain the energy spectrum? Thank you for your time and consideration With Kind Regards Yazdani

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

1 Idea: Re: secondary nuetron using Hadr01   (Vladimir Ivanchenko - 14 Dec, 2010)
 Add Message Add Message
to: "secondary nuetron using Hadr01"

 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 ]