1 #ifndef ALIPHOSRAWFITTERV4_H
2 #define ALIPHOSRAWFITTERV4_H
3 /* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 // This class extracts the signal parameters (energy, time, quality)
9 // from ALTRO samples. Energy is in ADC counts, time is in time bin units.
10 // A coarse algorithm is applied.
14 class AliPHOSCalibData;
15 #include "AliPHOSRawFitterv1.h"
17 class AliPHOSRawFitterv4 : public AliPHOSRawFitterv1
23 AliPHOSRawFitterv4(const AliPHOSRawFitterv4& rawFitterv4);
24 virtual ~AliPHOSRawFitterv4();
26 virtual Bool_t Eval(const UShort_t *signal, Int_t sigStart, Int_t sigLength);
28 //Switch on/off fitting of HighGain samples. By default off
29 void FitHighGain(Bool_t on=kTRUE){fFitHighGain=on;}
32 static void UnfoldingChiSquare(Int_t & nPar, Double_t * Grad, Double_t & fret, Double_t * x, Int_t iflag) ;
33 // Chi^2 of the fit. Should be static to be passed to MINUIT
34 Bool_t EvalWithFitting(TArrayI*samples, TArrayI * times);
36 Bool_t fFitHighGain ; //Switch on/off fitting of the HG channel
38 ClassDef(AliPHOSRawFitterv4,1)