From: dsilverm Date: Tue, 9 Mar 2010 17:47:22 +0000 (+0000) Subject: avoid overflow signals/amplitudes X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=029fe7a2ccbe361e35010a68ce03176d623d1f37 avoid overflow signals/amplitudes --- diff --git a/EMCAL/AliEMCALRawUtils.cxx b/EMCAL/AliEMCALRawUtils.cxx index 1f69fef5dba..537af7175cc 100644 --- a/EMCAL/AliEMCALRawUtils.cxx +++ b/EMCAL/AliEMCALRawUtils.cxx @@ -436,7 +436,7 @@ void AliEMCALRawUtils::Raw2Digits(AliRawReader* reader,TClonesArray *digitsArr, } // ampEstimate check } // method selection - if (amp > fNoiseThreshold) { // something to be stored + if (amp > fNoiseThreshold && ampGetAbsCellIdFromCellIndexes(in.GetModule(), in.GetRow(), in.GetColumn()) ; lowGain = in.IsLowGain(); @@ -680,6 +680,7 @@ void AliEMCALRawUtils::FitParabola(const TGraph *gSig, Float_t & amp) const Double_t a = (sy-b*sx-c*sx2)/kN ; Double_t xmax = -b/(2*c) ; ymax = a + b*xmax + c*xmax*xmax ;//<========== This is the maximum amplitude + amp = ymax; } }