Correct initialization of origin[2]. (Thanks to Angela Badala)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 May 2002 16:44:04 +0000 (16:44 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 May 2002 16:44:04 +0000 (16:44 +0000)
STEER/AliLegoGeneratorPhiZ.cxx

index 897fff7bebd55344c579946fae61018466ea802a..2cc739c4c09cd57ea4d135cd59dacddf50ae1d0b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2002/05/03 12:18:24  morsch
+Print-out corrected.
+
 Revision 1.5  2001/05/16 14:57:22  alibrary
 New files for folders and Stack
 
@@ -61,7 +64,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 +83,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;
    }