Protection added in filling DigitTree
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Sep 2009 14:42:40 +0000 (14:42 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Sep 2009 14:42:40 +0000 (14:42 +0000)
VZERO/AliVZEROReconstructor.cxx

index 2353668..4a0ccbc 100644 (file)
@@ -159,10 +159,9 @@ void AliVZEROReconstructor::ConvertDigits(AliRawReader* rawReader, TTree* digits
          new ((*digitsArray)[digitsArray->GetEntriesFast()])
              AliVZEROdigit(iChannel, adc[iChannel], time[iChannel],
                           width[iChannel], BBFlag[iChannel], BGFlag[iChannel],integrator[iChannel]);
-     }
+     }          
+     digitsTree->Fill();
   }
-
-  digitsTree->Fill();
 }
 
 //______________________________________________________________________