]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
ee7849e6 | 4 | #ifndef ALIHLTPHOSRAWANALYZERCHISQUAREFIT_H |
5 | #define ALIHLTPHOSRAWANALYZERCHISQUAREFIT_H | |
d504c864 | 6 | //#include <Rtypes.h> |
cbab66dd | 7 | #include "TObject.h" |
8 | #include "AliHLTPHOSRawAnalyzer.h" | |
9 | ||
10 | /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * | |
11 | * See cxx source for full Copyright notice */ | |
12 | ||
13 | ||
18af2efc | 14 | |
15 | /** | |
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. | |
20 | **/ | |
21 | ||
cbab66dd | 22 | class AliHLTPHOSRawAnalyzerChiSquareFit : public AliHLTPHOSRawAnalyzer |
23 | { | |
24 | public: | |
18af2efc | 25 | |
cbab66dd | 26 | AliHLTPHOSRawAnalyzerChiSquareFit(); |
27 | AliHLTPHOSRawAnalyzerChiSquareFit(const AliHLTPHOSRawAnalyzerChiSquareFit & ); | |
28 | ||
29 | AliHLTPHOSRawAnalyzerChiSquareFit & operator = (const AliHLTPHOSRawAnalyzerChiSquareFit) | |
30 | { | |
31 | return *this; | |
32 | } | |
33 | ||
34 | virtual ~AliHLTPHOSRawAnalyzerChiSquareFit(); | |
18af2efc | 35 | |
36 | /** | |
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 | |
46 | **/ | |
47 | virtual void Evaluate(int start = 0, int length = 100); | |
ee7849e6 | 48 | |
49 | ||
cbab66dd | 50 | private: |
51 | ||
52 | ClassDef(AliHLTPHOSRawAnalyzerChiSquareFit, 2) | |
53 | ||
18af2efc | 54 | }; |
cbab66dd | 55 | |
56 | #endif |