]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliLegoGeneratorEta.cxx
check if STAGE_POOL and STAGE_HOST are set, if not warn user.
[u/mrichter/AliRoot.git] / STEER / AliLegoGeneratorEta.cxx
index 2d3fc91d37545520d139f164319540c7eb24df03..ca803d5a179d166993021d467caa934d5de0f8a3 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Header$ */
+/* $Id$ */
 
 //------------------------------------------------------------------------
-//
 //    Lego generator in Eta bins
-//
+//    Uses geantino rays to check the material distributions and detector's
+//    geometry
+//    Author: A.Morsch 
 //------------------------------------------------------------------------
 
 #include "AliLegoGeneratorEta.h"
 #include "AliRun.h"
+#include "AliMC.h"
 
 ClassImp(AliLegoGeneratorEta)
 
@@ -80,6 +82,6 @@ void AliLegoGeneratorEta::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);
    
 }