Message: which class is executed during fission processes and contains the isotope's data? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question which class is executed during fission processes and contains the isotope's data? 

Forum: Hadronic Processes
Date: 21 Oct, 2010
From: Cristian Bungau <Cristian Bungau>

Hello,

I do apologise for insisting on this topic, but I have tried with partial success to modify G4NeutronHPFission.cc, to find the element which undergoes fission. I have modified G4HadFinalState * G4NeutronHPFission::ApplyYourself by adding after

        xSec[i] *= rWeight;
        sum+=xSec[i];

the following:

	if (xSec[i] > 0.) {
 G4cout << "\nG4NeutronHPFission info: Fissioning element Z = " <<  theMaterial->GetElement(i)->GetZ() <<
 " and N = " << theMaterial->GetElement(i)->GetN() << G4endl;

 SetZ(theMaterial->GetElement(i)->GetZ());

 SetN(theMaterial->GetElement(i)->GetN());

}

where SetZ(), SetN(), GetZ() and GetN() are functions I included to allow access to Z and N values from my SteppingAction.

I am accessing the Z and N data by having in my SteppingAction the following code:

--in header file:

class SteppingAction : public G4UserSteppingAction {

friend class G4NeutronHPFission;

...........

private:

G4NeutronHPFission object;

...........

--and in .cc file:

 G4cout << "Fission isotope Z = " << object.GetZ() << " and A = " << object.GetN() << G4endl;

However it appears that each time a fission process takes place the G4NeutronHPFission class constructor is re-executed and the Z and N values set above are lost.

So although the cout message from the G4NeutronHPFission.cc class is correct the GetZ() and GetN() function cannot be used, as they return wrong integers in the cout message in my SteppingAction...

I would be very grateful if you could please suggest which class I should modify to access the fission element's data. I am using the QGSP_BIC_HP physics list.

Thank you very much,

Best regards,

Cristian

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

1 Question: Re: which class is executed during fission processes and contains the isotope's data?   (Cristian Bungau - 21 Oct, 2010)
 Add Message Add Message
to: "which class is executed during fission processes and contains the isotope's data?"

 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 ]