]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliLegoGeneratorXYZ.cxx
port to ROOT cvs head, where several prototypes of VMC has changed.
[u/mrichter/AliRoot.git] / STEER / AliLegoGeneratorXYZ.cxx
index 1ad9748fe7a7d811a4b6aa8d7c46542a0eb1a174..740c56c09204276577c57cf5a26a4b60fd2fe018 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "AliLegoGeneratorXYZ.h"
 #include "AliRun.h"
+#include "AliMC.h"
 
 ClassImp(AliLegoGeneratorXYZ)
 
@@ -128,7 +129,7 @@ void AliLegoGeneratorXYZ::Generate()
    
    Float_t polar[3]={0.,0.,0.};
    Int_t ntr;
-   gAlice->SetTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
+   gAlice->GetMCApp()->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
    
 }