]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/EMCAL/AliEmcalPhysicsSelection.cxx
Remove code for 1024 bug from the EMCAL physics selection - it will be
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalPhysicsSelection.cxx
index d4e675e5baa4b8baf02056441263bb650f954326..a7e68ce57820d56b596f9797cd419d80d9b65049 100644 (file)
@@ -263,32 +263,6 @@ UInt_t AliEmcalPhysicsSelection::GetSelectionMask(const TObject* obj)
     }
   }
 
-  if (fSkip1024Bug) {
-    // Check for trigger patches with 1024 bug
-    // event declared bad if at least one found
-    AliVCaloTrigger *emcaltriggers = ev->GetCaloTrigger(eev == NULL ? "EMCALTrigger" : "emcalTrigger");
-    if(emcaltriggers){
-      emcaltriggers->Reset();
-      Int_t adc;
-      Bool_t isBad = false;
-      while(emcaltriggers->Next()){
-        emcaltriggers->GetL1TimeSum(adc);
-        isBad = false;
-        // check for multiples of 1024
-        for(int i = 1; i < 20; i++){
-          if(adc == 1024 * i){
-            isBad = true;
-            break;
-          }
-        }
-        if(isBad){
-          fIsGoodEvent = kFALSE;
-          break;
-        }
-      }
-    }
-  }
-
   if (fIsGoodEvent) {
     if (fCellMaxE>fCellMinE)
       res |= kEmcalHC;