Message: Re: How score Kinetic Energy? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How score Kinetic Energy? 

Forum: Biasing and Scoring
Re: Question How score Kinetic Energy? (lu luo)
Re: Question Re: How score Kinetic Energy? (Mahdi)
Date: 07 May, 2014
From: michel maire <michel maire>

On Mon, 05 May 2014 20:08:19 GMT, Mahdi wrote:
> Dear all; I have such a same problem. I want to simulate energy spectrum
> of X and UV rays that generated via atomic deexcitation caused by an
> alpha particle source interaction with air or any other materials. I
> want this spectrum in world region. the spatial distribution is not
> important to me.It is some thing like f8:p tally in MCNP/X.
> for this problem can I use the example Testem4 or RE03 ?
> I used TestEm4 example and modified its physics list to consider alpha
> particle. Now I have a histogram of energy spectrum but I cant filter
> this spectrum to be just for gamma particle not electrons and etc...

 In steppingAction, you can do
 G4ParticleDefinition* particle = aStep->GetTrack()->GetGefinition();
 if (particle == G4Gamma::Gamma()) fEventAction->addEdep(EdepStep);

 But you will be surprised by the result.

 Add Message Add Message
to: "Re: How score Kinetic Energy?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews