Message: Re: Heavy ion in G4HadFinalState Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Heavy ion in G4HadFinalState 

Forum: Particles
Re: Question Heavy ion in G4HadFinalState (Simon Albright)
Re: Feedback Re: Heavy ion in G4HadFinalState (Gumplinger Peter)
Date: 17 Jun, 2017
From: Simon Albright <Simon Albright>

Thanks!

It's still refusing to set the deuteron mass correctly though.

I declare the two particles by:

    G4DynamicParticle* recoilNucleus = new G4DynamicParticle();
    recoilNucleus -> setDefinition(G4IonTable::GetIonTable()->GetIon(theTarget.GetZ_asInt(), theTarget.GetA_asInt(), 0));

    G4DynamicParticle* returnDeut = new G4DynamicParticle();
    returnDeut -> SetDefinition(G4Deuteron::Definition());

If I include the recoilNucleus -> setDefinition(...) the deuteron mass goes to 0, if I comment that line out the deuteron mass is correct.

I also get an error for setting the number of secondaries:

    error: ‘class G4HadFinalState’ has no member named ‘SetNumberOfSecondaries’

And I can't find the function in the header file.

Thanks again!!!

 Add Message Add Message
to: "Re: Heavy ion in G4HadFinalState"

 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 ]