]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenKrypton.cxx
added option to generate heavier particle, control configuration via Set-functions
[u/mrichter/AliRoot.git] / EVGEN / AliGenKrypton.cxx
index dea036df96d829746771451c45a37a602b016626..bafcf2df2ba684c7dd57f7f8662f2cb2864fe167 100644 (file)
@@ -95,11 +95,11 @@ void AliGenKrypton::Generate(){
   for(Int_t i=0;i<ngamma;i++){
     rnd=gRandom->Rndm();
     Double_t theta = TMath::Pi()*rnd;
+    rnd=gRandom->Rndm();
     phi=TMath::TwoPi()*rnd;    
     ptot=egamma[i];
     p[0]=ptot*TMath::Cos(phi)*TMath::Sin(theta);
     p[1]=ptot*TMath::Sin(phi)*TMath::Sin(theta);
-    rnd=gRandom->Rndm();
     p[2]=ptot*TMath::Cos(theta);
     //
     // her push particle