Bugfix in AliL3Transformer Sin/Cos tables. Rotation to slice 0 was hidden by 35.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Jul 2003 21:21:03 +0000 (21:21 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Jul 2003 21:21:03 +0000 (21:21 +0000)
HLT/doc/changelog.src
HLT/src/AliL3Transform.cxx

index 493ea8be3b64007ceb255c773a38e28e806443f4..0c40a933a7283784dc852e13a7dfe1ee754c61cd 100644 (file)
@@ -1,5 +1,8 @@
 2003-07-29  Constantin Loizides  <loizides@hansa00>
 
+       * /cvs/hltcvs/level3code/src/AliL3Transform.cxx:
+       What a bug... , so every rotation to slice 0 was infact a rotation to slice 35 and Andi did not realize :-)
+
        * /cvs/hltcvs/level3code/src/AliL3ClustFinderNew.cxx: Added comment.
 
        * /cvs/hltcvs/level3code/src/AliL3Transform.cxx, /cvs/hltcvs/level3code/src/AliLevel3.cxx:
index c0f9817ab08baaff5556ff2fbdabafa49f95f4a0..75e53279654112bcaf566b8cc0671308f144aadf 100644 (file)
@@ -839,11 +839,11 @@ Bool_t AliL3Transform::ReadInitFile(Char_t* pathname)
     }
     else if(strcmp(d1,"fCos[0]")==0){
       fscanf(fptr,"%s %lf %s",d2,&ddummy,d3);fCos[0]=(Double_t)ddummy;
-      for(Int_t i=1;i<fNSlice;i++){fscanf(fptr,"%s %s %lf %s",d1,d2,&ddummy,d3);fCos[0]=(Double_t)ddummy;}
+      for(Int_t i=1;i<fNSlice;i++){fscanf(fptr,"%s %s %lf %s",d1,d2,&ddummy,d3);fCos[i]=(Double_t)ddummy;}
     }
     else if(strcmp(d1,"fSin[0]")==0){
       fscanf(fptr,"%s %lf %s",d2,&ddummy,d3);fSin[0]=(Double_t)ddummy;
-      for(Int_t i=1;i<fNSlice;i++){fscanf(fptr,"%s %s %lf %s",d1,d2,&ddummy,d3);fSin[0]=(Double_t)ddummy;}
+      for(Int_t i=1;i<fNSlice;i++){fscanf(fptr,"%s %s %lf %s",d1,d2,&ddummy,d3);fSin[i]=(Double_t)ddummy;}
     }
   }