]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.h
Removing this file that was added to CVS by accident
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerPeakFinder.h
1 #ifndef ALIHLTPHOSRAWANALYZERPEAKFINDER_H
2 #define ALIHLTPHOSRAWANALYZERPEAKFINDER_H
3 /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                          */
5
6 //#include <Rtypes.h>
7 //#include "TObject.h"
8 #include "AliHLTPHOSRawAnalyzer.h"
9 //#include "AliHLTPHOSBase.h"
10
11 class AliHLTPHOSRawAnalyzerPeakFinder : public AliHLTPHOSRawAnalyzer
12 {
13  public:
14   AliHLTPHOSRawAnalyzerPeakFinder();
15   //  AliHLTPHOSRawAnalyzerPeakFinder(const AliHLTPHOSRawAnalyzerPeakFinder & );
16   //  AliHLTPHOSRawAnalyzerPeakFinder & operator = (const AliHLTPHOSRawAnalyzerPeakFinder &)
17   //    {
18   //     return *this; 
19   //    }
20
21   virtual ~AliHLTPHOSRawAnalyzerPeakFinder();
22
23
24 /**
25 * Extraction of timing and energy using the Peakfinde Algorithm.
26 * The. The parameters "start" and "length" defines a sub array  of the data array
27 * that will be used for the the fit. If start+length must not exeed the total length
28 * of the Data array. "start" must be chosen as close as possible to t0.
29 * The baseline must also be subtracted.
30 * The length of "tVector" and "aVector" mus be equal to length.
31 * "index + length" must not exeed the length of the data array set in the constructor.
32 * @param tVectPtr the peakfinder vector for timing
33 * @param size size in number of values of the time vector
34 */
35   virtual void SetTVector(Double_t *tVectPtr =0, Int_t size = 0);
36
37
38
39 /**
40 * Extraction of timing and energy using the Peakfinde Algorithm.
41 * The. The parameters "start" and "length" defines a sub array  of the data array
42 * that will be used for the the fit. If start+length must not exeed the total length
43 * of the Data array. "start" must be chosen as close as possible to t0.
44 * The baseline must also be subtracted.
45 * The length of "tVector" and "aVector" mus be equal to length.
46 * "index + length" must not exeed the length of the data array set in the constructor.
47 * @param aVectPtr the peakfinder vector for timing
48 * @param size size in number of values of the time vector
49 */
50   virtual void SetAVector(Double_t *aVectPtr =0, Int_t size =0);
51
52
53 /**
54 * Extraction of timing and energy using the Peakfinde Algorithm.
55 * The. The parameters "start" and "length" defines a sub array  of the data array
56 * that will be used for the the fit. If start+length must not exeed the total length
57 * of the Data array. "start" must be chosen as close as possible to t0.
58 * The baseline must also be subtracted.
59 * The length of "tVector" and "aVector" mus be equal to length.
60 * "index + length" must not exeed the length of the data array set in the constructor.
61 * @param start the start index of the subarray of the data array. 
62 * @param length the number of samples to use starting from index 
63 **/
64   virtual void Evaluate(Int_t start = 0, Int_t length = 100);
65  private:
66   Double_t   *fTVectorPtr;  //[1008]        /**<Peakfinder vector for TOF reconstruction*/
67   Double_t   *fAVectorPtr;  //[1008]        /**<Peakfinder vector for Energy reconstruction*/  
68   Int_t       fTVectorSize;
69   Int_t       fAVectorSize;
70
71   ClassDef(AliHLTPHOSRawAnalyzerPeakFinder, 2) 
72   
73     };
74
75 #endif