]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.h
Updating CMake files
[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 //class AliHLTPHOSUtilities;
11
12 class AliHLTPHOSRawAnalyzerPeakFinder : public AliHLTPHOSRawAnalyzer
13 {
14  public:
15   AliHLTPHOSRawAnalyzerPeakFinder();
16   //  AliHLTPHOSRawAnalyzerPeakFinder(const AliHLTPHOSRawAnalyzerPeakFinder & );
17   //  AliHLTPHOSRawAnalyzerPeakFinder & operator = (const AliHLTPHOSRawAnalyzerPeakFinder &)
18   //    {
19   //     return *this; 
20   //    }
21
22   virtual ~AliHLTPHOSRawAnalyzerPeakFinder();
23
24
25 /**
26 * Extraction of timing and energy using the Peakfinde Algorithm.
27 * The. The parameters "start" and "length" defines a sub array  of the data array
28 * that will be used for the the fit. If start+length must not exeed the total length
29 * of the Data array. "start" must be chosen as close as possible to t0.
30 * The baseline must also be subtracted.
31 * The length of "tVector" and "aVector" mus be equal to length.
32 * "index + length" must not exeed the length of the data array set in the constructor.
33 * @param tVectPtr the peakfinder vector for timing
34 * @param size size in number of values of the time vector
35 */
36   virtual void SetTVector(Double_t *tVectPtr =0, Int_t size = 0);
37
38
39
40 /**
41 * Extraction of timing and energy using the Peakfinde Algorithm.
42 * The. The parameters "start" and "length" defines a sub array  of the data array
43 * that will be used for the the fit. If start+length must not exeed the total length
44 * of the Data array. "start" must be chosen as close as possible to t0.
45 * The baseline must also be subtracted.
46 * The length of "tVector" and "aVector" mus be equal to length.
47 * "index + length" must not exeed the length of the data array set in the constructor.
48 * @param aVectPtr the peakfinder vector for timing
49 * @param size size in number of values of the time vector
50 */
51   virtual void SetAVector(Double_t *aVectPtr =0, Int_t size =0);
52
53
54 /**
55 * Extraction of timing and energy using the Peakfinde Algorithm.
56 * The. The parameters "start" and "length" defines a sub array  of the data array
57 * that will be used for the the fit. If start+length must not exeed the total length
58 * of the Data array. "start" must be chosen as close as possible to t0.
59 * The baseline must also be subtracted.
60 * The length of "tVector" and "aVector" mus be equal to length.
61 * "index + length" must not exeed the length of the data array set in the constructor.
62 * @param start the start index of the subarray of the data array. 
63 * @param length the number of samples to use starting from index 
64 **/
65   virtual void Evaluate(Int_t start = 0, Int_t length = 100);
66  
67  private:
68  AliHLTPHOSRawAnalyzerPeakFinder(const AliHLTPHOSRawAnalyzerPeakFinder & );
69  AliHLTPHOSRawAnalyzerPeakFinder & operator = (const AliHLTPHOSRawAnalyzerPeakFinder &);
70
71  Double_t   *fTVectorPtr;  //[1008]        /**<Peakfinder vector for TOF reconstruction*/
72  Double_t   *fAVectorPtr;  //[1008]        /**<Peakfinder vector for Energy reconstruction*/  
73  Int_t       fTVectorSize;
74  Int_t       fAVectorSize;
75  
76  // AliHLTPHOSUtilities *fUtilitiesPtr;
77
78
79   ClassDef(AliHLTPHOSRawAnalyzerPeakFinder, 2) 
80   
81     };
82
83 #endif