]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/UPGRADE/testITSU/DetectorK.cxx
fix in wrong initialization (dimensions swapped)
[u/mrichter/AliRoot.git] / ITS / UPGRADE / testITSU / DetectorK.cxx
index 0d08765b3cb0d5324e18944a2dcbb9074a292a6e..f5366090efccd0c77c968408fe3ba15c2c2be055 100644 (file)
@@ -823,14 +823,14 @@ void DetectorK::SolveViaBilloir(Int_t flagD0,Int_t print, Bool_t allPt, Double_t
 
   Int_t nPt = kNptBins;
   // Clean up ......
-  for (Int_t i=0; i<kMaxNumberOfDetectors; i++) {
-    for (Int_t j=0; j<nPt; j++) {
+  for (Int_t j=0; j<nPt; j++) {
+    for (Int_t i=0; i<kMaxNumberOfDetectors; i++) {
       fDetPointRes[i][j]  = RIDICULOUS;
       fDetPointZRes[i][j] = RIDICULOUS;
-      fTransMomenta[i] =0;
-      fMomentumRes[i] =0;
-      fResolutionRPhi[i] =0;
     }
+    fTransMomenta[j] =0;
+    fMomentumRes[j] =0;
+    fResolutionRPhi[j] =0;
   }
   
   if (!allPt) { // not the whole pt range -> allows a faster minimization at a defined 'meanpt'