]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliLegoGeneratorPhiZ.cxx
Avoid filenames which differs only by case
[u/mrichter/AliRoot.git] / STEER / AliLegoGeneratorPhiZ.cxx
index 44f50f58dd4460838376fc0c7598ffb34ac1422f..3c4be206e3d53acd6321dbe3a1f36207c1c47d3e 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.4  2001/01/12 09:23:17  morsch
-Correct order of phi and z.
+/* $Id$ */
 
-Revision 1.3  2000/11/30 07:12:49  alibrary
-Introducing new Rndm and QA classes
-
-Revision 1.2  2000/10/27 11:40:01  morsch
-Error in printouts corrected
-
-Revision 1.1  2000/10/27 08:13:02  morsch
-Lego generator for phi-z binning.
-
-*/
+//-------------------------------------------------------------------------
+//    Lego generator in Phi - Z bins
+//    Uses geantino rays to check the material distributions and detector's
+//    geometry
+//    Author: A.Morsch 
+//-------------------------------------------------------------------------
 
 #include "AliLegoGeneratorPhiZ.h"
 #include "AliRun.h"
@@ -55,10 +48,9 @@ void AliLegoGeneratorPhiZ::Generate()
        return;
      } else { 
        fCoor2Bin++;
-       printf("Generating rays in z-bin:%d\n",fCoor2Bin);
+       printf("Generating rays in Phi-bin:%d\n",fCoor2Bin);
        fCoor1Bin=0;
      } else fCoor1Bin++;
-
    fCurCoor1 = (fCoor1Min+(fCoor1Bin+0.5)*(fCoor1Max-fCoor1Min)/fNCoor1);
    fCurCoor2 = (fCoor2Min+(fCoor2Bin+0.5)*(fCoor2Max-fCoor2Min)/fNCoor2);
 
@@ -78,14 +70,14 @@ void AliLegoGeneratorPhiZ::Generate()
    Float_t dalicz = 3000;
    if (fRadMin > 0) {
        t = PropagateCylinder(orig,pmom,fRadMin,dalicz);
-       orig[0] = pmom[0]*t;
-       orig[1] = pmom[1]*t;
-       orig[2] = pmom[2]*t;
+       orig[0] += pmom[0]*t;
+       orig[1] += pmom[1]*t;
+       orig[2] += pmom[2]*t;
        if (TMath::Abs(orig[2]) > fZMax) return;
    }
    
    Float_t polar[3]={0.,0.,0.};
    Int_t ntr;
-   gAlice->SetTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
+   gAlice->PushTrack(1, -1, kMpart, pmom, orig, polar, 0, kPPrimary, ntr);
    
 }