fix for bug #66294
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Jun 2010 13:08:14 +0000 (13:08 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Jun 2010 13:08:14 +0000 (13:08 +0000)
T0/AliT0Digitizer.cxx

index bc4947f..1dd37ca 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)  ;