]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.h
new centrality selection
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerPeakFinder.h
CommitLineData
1b41ab20 1//-*- Mode: C++ -*-
2// $Id$
3
ee7849e6 4#ifndef ALIHLTPHOSRAWANALYZERPEAKFINDER_H
5#define ALIHLTPHOSRAWANALYZERPEAKFINDER_H
0a211711 6/* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
8
cbab66dd 9#include "AliHLTPHOSRawAnalyzer.h"
1a53578c 10
04751caa 11
cbab66dd 12class AliHLTPHOSRawAnalyzerPeakFinder : public AliHLTPHOSRawAnalyzer
13{
14 public:
15 AliHLTPHOSRawAnalyzerPeakFinder();
cbab66dd 16 virtual ~AliHLTPHOSRawAnalyzerPeakFinder();
d504c864 17
18
19/**
20* Extraction of timing and energy using the Peakfinde Algorithm.
21* The. The parameters "start" and "length" defines a sub array of the data array
22* that will be used for the the fit. If start+length must not exeed the total length
23* of the Data array. "start" must be chosen as close as possible to t0.
24* The baseline must also be subtracted.
25* The length of "tVector" and "aVector" mus be equal to length.
26* "index + length" must not exeed the length of the data array set in the constructor.
27* @param tVectPtr the peakfinder vector for timing
28* @param size size in number of values of the time vector
29*/
30 virtual void SetTVector(Double_t *tVectPtr =0, Int_t size = 0);
31
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 aVectPtr the peakfinder vector for timing
43* @param size size in number of values of the time vector
44*/
45 virtual void SetAVector(Double_t *aVectPtr =0, Int_t size =0);
46
47
48/**
49* Extraction of timing and energy using the Peakfinde Algorithm.
50* The. The parameters "start" and "length" defines a sub array of the data array
51* that will be used for the the fit. If start+length must not exeed the total length
52* of the Data array. "start" must be chosen as close as possible to t0.
53* The baseline must also be subtracted.
54* The length of "tVector" and "aVector" mus be equal to length.
55* "index + length" must not exeed the length of the data array set in the constructor.
56* @param start the start index of the subarray of the data array.
57* @param length the number of samples to use starting from index
58**/
59 virtual void Evaluate(Int_t start = 0, Int_t length = 100);
b444d727 60
cbab66dd 61 private:
b444d727 62 AliHLTPHOSRawAnalyzerPeakFinder(const AliHLTPHOSRawAnalyzerPeakFinder & );
63 AliHLTPHOSRawAnalyzerPeakFinder & operator = (const AliHLTPHOSRawAnalyzerPeakFinder &);
64
65 Double_t *fTVectorPtr; //[1008] /**<Peakfinder vector for TOF reconstruction*/
2589c3a3 66 Double_t *fAVectorPtr; //[1008] /**<Peakfinder vector for Energy reconstruction*/
67 Int_t fTVectorSize;
68 Int_t fAVectorSize;
69
70 // AliHLTPHOSUtilities *fUtilitiesPtr;
71
cbab66dd 72
73 ClassDef(AliHLTPHOSRawAnalyzerPeakFinder, 2)
74
75 };
76
77#endif