]>
Commit | Line | Data |
---|---|---|
178dd351 | 1 | //-*- Mode: C++ -*- |
3800a654 | 2 | // $Id: AliHLTCALORawAnalyzerPeakFinder.h 29824 2008-11-10 13:43:55Z richterm $ |
178dd351 | 3 | |
4 | #ifndef ALIHLTCALORAWANALYZERPEAKFINDER_H | |
5 | #define ALIHLTCALORAWANALYZERPEAKFINDER_H | |
6 | /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * | |
7 | * See cxx source for full Copyright notice */ | |
8 | ||
9 | //#include <Rtypes.h> | |
10 | //#include "TObject.h" | |
11 | #include "AliHLTCaloRawAnalyzer.h" | |
12 | //#include "AliHLTCaloBase.h" | |
13 | //class AliHLTCaloUtilities; | |
14 | ||
15 | class AliHLTCaloRawAnalyzerPeakFinder : public AliHLTCaloRawAnalyzer | |
16 | { | |
17 | public: | |
18 | AliHLTCaloRawAnalyzerPeakFinder(); | |
19 | // AliHLTCaloRawAnalyzerPeakFinder(const AliHLTCaloRawAnalyzerPeakFinder & ); | |
20 | // AliHLTCaloRawAnalyzerPeakFinder & operator = (const AliHLTCaloRawAnalyzerPeakFinder &) | |
21 | // { | |
22 | // return *this; | |
23 | // } | |
24 | ||
25 | virtual ~AliHLTCaloRawAnalyzerPeakFinder(); | |
26 | ||
27 | ||
28 | /** | |
29 | * Extraction of timing and energy using the Peakfinde Algorithm. | |
30 | * The. The parameters "start" and "length" defines a sub array of the data array | |
31 | * that will be used for the the fit. If start+length must not exeed the total length | |
32 | * of the Data array. "start" must be chosen as close as possible to t0. | |
33 | * The baseline must also be subtracted. | |
34 | * The length of "tVector" and "aVector" mus be equal to length. | |
35 | * "index + length" must not exeed the length of the data array set in the constructor. | |
36 | * @param tVectPtr the peakfinder vector for timing | |
37 | * @param size size in number of values of the time vector | |
38 | */ | |
e8d13b89 | 39 | // virtual void SetTVector(Double_t *tVectPtr =0, Int_t size = 0); |
40 | void SetTVector(Double_t *tVectPtr =0, Int_t size = 0); | |
178dd351 | 41 | |
42 | ||
43 | /** | |
44 | * Extraction of timing and energy using the Peakfinde Algorithm. | |
45 | * The. The parameters "start" and "length" defines a sub array of the data array | |
46 | * that will be used for the the fit. If start+length must not exeed the total length | |
47 | * of the Data array. "start" must be chosen as close as possible to t0. | |
48 | * The baseline must also be subtracted. | |
49 | * The length of "tVector" and "aVector" mus be equal to length. | |
50 | * "index + length" must not exeed the length of the data array set in the constructor. | |
51 | * @param aVectPtr the peakfinder vector for timing | |
52 | * @param size size in number of values of the time vector | |
53 | */ | |
e8d13b89 | 54 | // virtual void SetAVector(Double_t *aVectPtr =0, Int_t size =0); |
55 | void SetAVector(Double_t *aVectPtr =0, Int_t size =0); | |
178dd351 | 56 | |
57 | /** | |
58 | * Extraction of timing and energy using the Peakfinde Algorithm. | |
59 | * The. The parameters "start" and "length" defines a sub array of the data array | |
60 | * that will be used for the the fit. If start+length must not exeed the total length | |
61 | * of the Data array. "start" must be chosen as close as possible to t0. | |
62 | * The baseline must also be subtracted. | |
63 | * The length of "tVector" and "aVector" mus be equal to length. | |
64 | * "index + length" must not exeed the length of the data array set in the constructor. | |
65 | * @param start the start index of the subarray of the data array. | |
66 | * @param length the number of samples to use starting from index | |
67 | **/ | |
e8d13b89 | 68 | virtual void Evaluate(Int_t start = 0, Int_t length = 100); |
178dd351 | 69 | |
70 | private: | |
71 | AliHLTCaloRawAnalyzerPeakFinder(const AliHLTCaloRawAnalyzerPeakFinder & ); | |
72 | AliHLTCaloRawAnalyzerPeakFinder & operator = (const AliHLTCaloRawAnalyzerPeakFinder &); | |
73 | ||
74 | Double_t *fTVectorPtr; //[1008] /**<Peakfinder vector for TOF reconstruction*/ | |
75 | Double_t *fAVectorPtr; //[1008] /**<Peakfinder vector for Energy reconstruction*/ | |
76 | Int_t fTVectorSize; | |
77 | Int_t fAVectorSize; | |
78 | ||
79 | // AliHLTCaloUtilities *fUtilitiesPtr; | |
80 | ||
81 | ||
4f4b7ba4 | 82 | ClassDef(AliHLTCaloRawAnalyzerPeakFinder, 2) |
83 | ||
84 | }; | |
178dd351 | 85 | |
86 | #endif |