]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliLegoGeneratorPhiZ.cxx
Replacing Header with Id
[u/mrichter/AliRoot.git] / STEER / AliLegoGeneratorPhiZ.cxx
index 897fff7bebd55344c579946fae61018466ea802a..360aa052dacdf42ee8f2bd9357d90acd8eb06346 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.5  2001/05/16 14:57:22  alibrary
-New files for folders and Stack
+/* $Id$ */
 
-Revision 1.4  2001/01/12 09:23:17  morsch
-Correct order of phi and z.
-
-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
+//
+//-------------------------------------------------------------------------
 
 #include "AliLegoGeneratorPhiZ.h"
 #include "AliRun.h"
@@ -61,7 +50,6 @@ void AliLegoGeneratorPhiZ::Generate()
        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);
 
@@ -81,9 +69,9 @@ 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;
    }