]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenScan.cxx
Class description correction/addition/cleanup (Ivana)
[u/mrichter/AliRoot.git] / EVGEN / AliGenScan.cxx
index d9198a86dbdd5247a51d1a57bbaceaec1ca7f60f..7ea64c3aed1b6ab69909987fb8d24919e19e6c0f 100644 (file)
 
 /* $Id$ */
 
+// Realisation of AliGenerator that generates particles with
+// vertices on a user defined grid.
+// The vertex positions can be smeared. 
+// Momentum vectors are defined through the methods provided by AliGenerator.
+// Author: andreas.morsch@cern.ch
+
 #include "AliGenScan.h"
-#include "AliRun.h"
 
  ClassImp(AliGenScan)
     
@@ -127,7 +132,7 @@ void AliGenScan::Generate()
              p[0] = pmom*TMath::Cos(phi)*TMath::Sin(theta);
              p[1] = pmom*TMath::Sin(phi)*TMath::Sin(theta);
              p[2] = pmom*TMath::Cos(theta);
-             SetTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
+             PushTrack(fTrackIt,-1,fIpart,p,origin,polar,0,kPPrimary,nt);
          }
       }
   }