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 013b880..1396c43 100644 (file)
@@ -60,7 +60,7 @@ const int kReturnCodeNoInfo = 9;
 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)
   
index 58b195f..08817d0 100644 (file)
@@ -322,10 +322,10 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
 
                                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) {
-                                               badLink[ix] += 1;
+                                               badLink[ix-1] += 1;
                                                nBadLink += 1;
                                        }
                                }