]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSRawAnalyzerChiSquareFit.h
- changes to make the clusterisation work for EMCAL
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerChiSquareFit.h
1 //-*- Mode: C++ -*-
2 // $Id$
3
4 #ifndef ALIHLTPHOSRAWANALYZERCHISQUAREFIT_H
5 #define ALIHLTPHOSRAWANALYZERCHISQUAREFIT_H
6 //#include <Rtypes.h>
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
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
22 class AliHLTPHOSRawAnalyzerChiSquareFit : public AliHLTPHOSRawAnalyzer
23 {
24  public:
25
26   AliHLTPHOSRawAnalyzerChiSquareFit();
27   AliHLTPHOSRawAnalyzerChiSquareFit(const AliHLTPHOSRawAnalyzerChiSquareFit & );
28
29   AliHLTPHOSRawAnalyzerChiSquareFit & operator = (const AliHLTPHOSRawAnalyzerChiSquareFit)
30     {
31       return *this; 
32     }
33   
34   virtual ~AliHLTPHOSRawAnalyzerChiSquareFit();
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);
48    
49
50  private:
51
52   ClassDef(AliHLTPHOSRawAnalyzerChiSquareFit, 2) 
53   
54 };
55
56 #endif