]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliLegoGeneratorXYZ.cxx
Renamed output file to Vertex.Performance.root
[u/mrichter/AliRoot.git] / STEER / AliLegoGeneratorXYZ.cxx
index 0de3bf25d92fe2c5516a10aa551069eb14d3d6a8..72de0f141de76633506c94b0d5453382ef958186 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-*/
+/* $Id$ */
+
+//-------------------------------------------------------------------------
+//      Lego generator in x - y - z bins
+//    Uses geantino rays to check the material distributions and detector's
+//    geometry
+//    Author: A.Morsch 
+//-------------------------------------------------------------------------
 
 #include "AliLegoGeneratorXYZ.h"
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliLog.h"
 
 ClassImp(AliLegoGeneratorXYZ)
 
@@ -93,11 +100,11 @@ void AliLegoGeneratorXYZ::Generate()
    // Prepare for next step
    if(fCoor1Bin>=fNCoor1-1)
      if(fCoor2Bin>=fNCoor2-1) {
-       Warning("Generate","End of Lego Generation");
+       AliWarning("End of Lego Generation");
        return;
      } else { 
        fCoor2Bin++;
-       printf("Generating rays in Coordinate 2 bin:%d\n",fCoor2Bin);
+       AliDebug(1, Form("Generating rays in Coordinate 2 bin:%d",fCoor2Bin));
        fCoor1Bin=0;
      } else fCoor1Bin++;
 
@@ -123,7 +130,7 @@ void AliLegoGeneratorXYZ::Generate()
    
    Float_t polar[3]={0.,0.,0.};
    Int_t ntr;
-   gAlice->SetTrack(1, 0, kMpart, pmom, orig, polar, 0, "LEGO XYZ ray", ntr);
+   gAlice->GetMCApp()->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
    
 }