Dear Sir, I was trying to use the Geant4 for the Rayleigh scattering of Cherenkov photons in aerogel, which are polarised and have a momentum in the range 2 to 7 eV. The generation of Rayleigh scattered electrons as coded in G4OpRayleigh::PostStepDoIt in G4OpRayleigh.cc does not seem to correspond to what is described in the Geant4 physics reference manual. In addition, in this code, the part of the generation of the polar angle of the polarisation vector, as written below, does not seem correct either. G4double SinTheta = 1.-CosTheta*CosTheta; Could you please provide me the correct explanation or the fix, whichever is applicable, please. I am using the version of Geant4.3.0 from the CERN release area. thanks, Sajan.Easo@cern.ch
Hi Peter, can you have a look? Many greetings, Hans-Peter.
Dear Sajan, The Physics Reference Manual states that: The differential cross section in Rayleigh scattering, dsigma/domega, is proportional to cos**2(theta), where theta is the polar angle of the new polarization with respect to the old polarization." In the code of G4OpRayleigh.cc:DoIt, this is sampled like: G4double rand = G4UniformRand(); G4double CosTheta = pow(rand, 1./3.); which is an efficient way to sample a distribution proportional to the square of the argument. However, the bug lies in how sin(theta) is calculated in the code from cos(theta). It reads: G4double SinTheta = 1.-CosTheta*CosTheta; but should read: G4double SinTheta = sqrt(1.-CosTheta*CosTheta); Thanks, Peter
Created attachment 74 [details] plot Distribution comparison.
Created attachment 75 [details] distribution comparison
Created attachment 76 [details] script to make the plot
Created attachment 77 [details] details about the problem
Created attachment 78 [details] original method in geant4 (simplified version)
Created attachment 79 [details] solution (simplified version) will attach a patch soon
Dear Sir, I think that I may find a issue in the implementation of Rayleigh Scattering in GEANT4. The details of the issue involves simulating the angular distribution of the outgoing photon. I attach the details of the problem in the pdf file. I also attached two simple root scripts which can be used to generate the distribution of using two methods (current in geant4, and what I think it should be). The png file contain the comparison of the distribution between the two methods. I will send a patch to here soon. Best regards, Xin
Created attachment 80 [details] Patch to this issue Replace the old G4OpRayleigh.cc