Techical fix to avoid silent exception when the EMCAL raw data are empty (Yves)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Nov 2010 15:52:27 +0000 (15:52 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Nov 2010 15:52:27 +0000 (15:52 +0000)
EMCAL/AliEMCALRawUtils.cxx

index 5e52a6a..3c20d80 100644 (file)
@@ -404,7 +404,7 @@ void AliEMCALRawUtils::Raw2Digits(AliRawReader* reader,TClonesArray *digitsArr,
       while (in.NextBunch()) {
         bunchlist.push_back( AliCaloBunchInfo(in.GetStartTimeBin(), in.GetBunchLength(), in.GetSignals() ) );
       } // loop over bunches
-      
+      if (bunchlist.size() == 0) continue;
       if ( caloFlag < 2 )
        { // ALTRO
          Float_t time = 0;