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