fix for bug #66294
[u/mrichter/AliRoot.git] / T0 / AliT0Digitizer.cxx
index bc4947faedbf0c15fd6c055e7d4dc29edbe23c70..1dd37ca9c793cef6465ceb1b4a9bafc70b67093a 100644 (file)
@@ -313,7 +313,8 @@ void AliT0Digitizer::Exec(Option_t* /*option*/)
          TGraph* gr1 = ((TGraph*)fAmpQTC.At(i));
          qtCh = gr1->Eval(qt);
          fADC0->AddAt(0,i);
          TGraph* gr1 = ((TGraph*)fAmpQTC.At(i));
          qtCh = gr1->Eval(qt);
          fADC0->AddAt(0,i);
-         fADC->AddAt(qtCh,i);
+         if(qtCh)
+           fADC->AddAt(qtCh,i);
          //      sumMult += Int_t ((al*gain[i]/ph2Mip)*50) ;
          sumMult += Int_t (qtCh/sumMultCoeff)  ;
         
          //      sumMult += Int_t ((al*gain[i]/ph2Mip)*50) ;
          sumMult += Int_t (qtCh/sumMultCoeff)  ;