]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/UPGRADE/DetectorK.cxx
Fix for FMD DA
[u/mrichter/AliRoot.git] / ITS / UPGRADE / DetectorK.cxx
index b0868c0e5321870824943d27775e133a4b9cb600..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'
@@ -1844,12 +1844,12 @@ void DetectorK::MakeAliceCurrent(Int_t AlignResiduals, Bool_t flagTPC) {
     
   } else if (AlignResiduals==2) {
     
-    // tracking errors ... PLUS ... chip misalignment
+    // tracking errors ... PLUS ... module misalignment
     
     // itsRecoParam->SetClusterMisalErrorYBOn(0.0010,0.0030,0.0500,0.0500,0.0020,0.0020);  // [cm]
     // itsRecoParam->SetClusterMisalErrorZBOn(0.0050,0.0050,0.0050,0.0050,0.1000,0.1000);
     
-    //  the ITS chips are misalignment with small gaussian smearings with
+    //  the ITS modules are misalignment with small gaussian smearings with
     //  sigmarphi ~ 8, 10, 10 micron in SPD, SDD, SSD
     
     AddLayer((char*)"spd1", 3.9, 0.0114, TMath::Sqrt(0.0012*0.0012+0.0010*0.0010+0.0008*0.0008), 
@@ -1867,7 +1867,7 @@ void DetectorK::MakeAliceCurrent(Int_t AlignResiduals, Bool_t flagTPC) {
 
   } else {
       
-      //  the ITS chips are misalignment with small gaussian smearings with
+      //  the ITS modules are misalignment with small gaussian smearings with
       //  sigmarphi ~ 8, 10, 10 micron in SPD, SDD, SSD
       //  unknown in Z ????