]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
updates/fixes from Rachid
authordsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Mar 2012 10:50:09 +0000 (10:50 +0000)
committerdsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Mar 2012 10:50:09 +0000 (10:50 +0000)
EMCAL/AliEMCALPreprocessor.cxx
EMCAL/AliEMCALQAChecker.cxx

index 013b88093e00c0444f728e69a822e895ea1cc7f3..1396c43fe077de8502ee6fee329c96404f885115 100644 (file)
@@ -60,7 +60,7 @@ const int kReturnCodeNoInfo = 9;
 const int kReturnCodeNoObject = 2;
 const int kReturnCodeNoEntries = 1;
 
 const int kReturnCodeNoObject = 2;
 const int kReturnCodeNoEntries = 1;
 
-const int kNTRU = 30; // From 2011; 10 SuperModules (SM) * 3 TRU per SM
+const int kNTRU = 32; // From 2012; 10 + 2/3 SuperModules (SM) * 3 TRU per SM
 
 ClassImp(AliEMCALPreprocessor)
   
 
 ClassImp(AliEMCALPreprocessor)
   
index 58b195fa50ecb60a6adc45e3f4866b250e71ff62..08817d06c58ae7080155c3de29b4d26a46738ba3 100644 (file)
@@ -322,10 +322,10 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
 
                                Int_t badLink[32] = {0};
                                Int_t nBadLink = 0;
 
                                Int_t badLink[32] = {0};
                                Int_t nBadLink = 0;
-                               for(Int_t ix = 0; ix <= hFrameR->GetNbinsX(); ix++) {
+                               for(Int_t ix = 1; ix <= hFrameR->GetNbinsX(); ix++) {
                                        Double_t binContent = hFrameR->GetBinContent(ix) ; 
                                        if (binContent == 0) {
                                        Double_t binContent = hFrameR->GetBinContent(ix) ; 
                                        if (binContent == 0) {
-                                               badLink[ix] += 1;
+                                               badLink[ix-1] += 1;
                                                nBadLink += 1;
                                        }
                                }
                                                nBadLink += 1;
                                        }
                                }