]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/UPGRADE/DetectorK.cxx
TOF + macros to each detector folder
[u/mrichter/AliRoot.git] / ITS / UPGRADE / DetectorK.cxx
index a52c2b11fe2bf833acc9080c16c0c2d2ae49ce95..73ffe7aba094fd589b81a87370f6b2fb89a69d31 100644 (file)
@@ -758,14 +758,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'