4 #ifndef ALIHLTPHOSRAWANALYZERCHISQUAREFIT_H
5 #define ALIHLTPHOSRAWANALYZERCHISQUAREFIT_H
8 #include "AliHLTPHOSRawAnalyzer.h"
10 /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
11 * See cxx source for full Copyright notice */
16 * The AliHLTPHOSPeakfinder class is the class for extracting the basic signal parameters
17 * "timing" and "energy" from the PHOS raw data. Physical data will for a given readout channel be
18 * a sequense of ADC digitized 10 bit integer values, however for performance reasons all values used in
19 * calculation is of type double.
22 class AliHLTPHOSRawAnalyzerChiSquareFit : public AliHLTPHOSRawAnalyzer
26 AliHLTPHOSRawAnalyzerChiSquareFit();
27 AliHLTPHOSRawAnalyzerChiSquareFit(const AliHLTPHOSRawAnalyzerChiSquareFit & );
29 AliHLTPHOSRawAnalyzerChiSquareFit & operator = (const AliHLTPHOSRawAnalyzerChiSquareFit)
34 virtual ~AliHLTPHOSRawAnalyzerChiSquareFit();
37 * Extraction of timing and energy using Chi Square Fit.
38 * The. The parameters "start" and "length" defines a sub array of the data array
39 * that will be used for the the fit. If start+length must not exeed the total length
40 * of the Data array. "start" must be chosen as close as possible to t0.
41 * The baseline must also be subtracted.
42 * The length of "tVector" and "aVector" mus be equal to length.
43 * "index + length" must not exeed the length of the data array set in the constructor.
44 * @param start the start index of the subarray of the data array.
45 * @param length the number of samples to use starting from index
47 virtual void Evaluate(int start = 0, int length = 100);
52 ClassDef(AliHLTPHOSRawAnalyzerChiSquareFit, 2)