5 #ifndef ALIHLTPHOSRAWANALYZERLMS_H
6 #define ALIHLTPHOSRAWANALYZERLMS_H
9 #include "AliHLTPHOSRawAnalyzer.h"
11 /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
12 * See cxx source for full Copyright notice */
14 class AliHLTPHOSRawAnalyzerLMS : public AliHLTPHOSRawAnalyzer
17 AliHLTPHOSRawAnalyzerLMS();
21 * @param dataPtr Data array for wich a subarray will be taken to perform the fit
22 * @param fs the sampling frequency in entities of MHz. Needed in order to calculate physical time
24 AliHLTPHOSRawAnalyzerLMS(double *dataPtr, double fs);
25 AliHLTPHOSRawAnalyzerLMS(const AliHLTPHOSRawAnalyzerLMS & );
26 AliHLTPHOSRawAnalyzerLMS & operator = (const AliHLTPHOSRawAnalyzerLMS)
31 virtual ~AliHLTPHOSRawAnalyzerLMS();
35 * Extraction of timing and energy using the LMS method.
36 * The. The parameters "start" and "length" defines a sub array of the data array
37 * that will be used for the the fit. If start+length must not exeed the total length
38 * of the Data array. "start" must be chosen as close as possible to t0.
39 * The baseline must also be subtracted.
40 * The length of "tVector" and "aVector" mus be equal to length.
41 * "index + length" must not exeed the length of the data array set in the constructor.
42 * @param start the start index of the subarray of the data array.
43 * @param length the number of samples to use starting from index
46 virtual void Evaluate(int start = 0, int lenght = 100);
49 double fMCovarPtrPtr[1008][1008]; /**<Covariance matrix of the measurements*/
50 double fPCovarPtrPtr[1008][1008]; /**<Covariance matrix of the estimated parameters*/
51 ClassDef(AliHLTPHOSRawAnalyzerLMS, 2)