Message: Re: error with G4RandGauss Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: error with G4RandGauss 

Forum: Particles
Re: None error with G4RandGauss (Chaw)
Re: None Re: error with G4RandGauss (Spencer Behling)
Date: 24 Aug, 2011
From: Chaw <Chaw>

ok thank you But I found one solution

 fEventAction->AddEdepTot(aStep->GetTotalEnergyDeposit()+ ((sqrt(-2.* log(G4UniformRand()))*cos(2.*pi*G4UniformRand())* sigma))*keV);

I shoot an energy of 122 keV but when I visualize this histo my photopeak is not at 122 keV but at 1000 keV, I don't know why.

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

1 None: Re: error with G4RandGauss   (Chaw - 24 Aug, 2011)
 Add Message Add Message
to: "Re: error with G4RandGauss"

 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 ]