X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSRawFitterv0.cxx;h=e253891aac3055d049af1ecef2c61f61ec0fc46a;hb=ab9461857e682badb578697d7ee55e490e9903af;hp=8e5c39053e7189b4863f563c4d774644d0785380;hpb=df28635da36bf68b92d669e88d33be8a78943f27;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSRawFitterv0.cxx b/PHOS/AliPHOSRawFitterv0.cxx index 8e5c39053e7..e253891aac3 100644 --- a/PHOS/AliPHOSRawFitterv0.cxx +++ b/PHOS/AliPHOSRawFitterv0.cxx @@ -13,7 +13,7 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* $Id: $ */ +/* $Id$ */ // This class extracts the signal parameters (energy, time, quality) // from ALTRO samples. Energy is in ADC counts, time is in time bin units. @@ -138,6 +138,7 @@ Bool_t AliPHOSRawFitterv0::Eval(const UShort_t *signal, Int_t sigStart, Int_t si // Time is the first time bin // Signal overflows is there are at least 3 samples of the same amplitude above 900 + fOverflow= kFALSE ; fEnergy = 0; if (fNBunches > 1) { fQuality = 1000; @@ -260,6 +261,9 @@ Bool_t AliPHOSRawFitterv0::Eval(const UShort_t *signal, Int_t sigStart, Int_t si if(det == 0){ return kTRUE; } + if(np == 0){ + return kFALSE; + } Double_t c1 = (np*sxy - sx*sy)/det; //slope Double_t c0 = (sy-c1*sx)/np; //offset if(c1 == 0){