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