]>
Commit | Line | Data |
---|---|---|
ee7849e6 | 1 | #ifndef ALIHLTPHOSRAWANALYZER_H |
2 | #define ALIHLTPHOSRAWANALYZER_H | |
cbab66dd | 3 | /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
68d9caee | 8 | #include "Rtypes.h" |
9 | ||
2f475e8c | 10 | class AliHLTPHOSRawAnalyzer |
cbab66dd | 11 | { |
12 | public: | |
2f475e8c | 13 | AliHLTPHOSRawAnalyzer(); |
14 | virtual ~AliHLTPHOSRawAnalyzer(); | |
15 | AliHLTPHOSRawAnalyzer(double *dataPtr, double fs); | |
16 | AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & ); | |
17 | AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &) | |
cbab66dd | 18 | { |
19 | return *this; | |
20 | } | |
21 | ||
22 | void BaselineCorrection(double *dataPtr, int N); | |
23 | void BaselineCorrection(double *dataPtr, double baselineValue); | |
24 | int FindStartIndex(double treshold); | |
25 | float GetTiming(); | |
26 | float GetEnergy(); | |
27 | void SetData(double *data); | |
28 | void SetSampleFreq(double freq); | |
68d9caee | 29 | void SetStartIndex(int startIndex); |
cbab66dd | 30 | void MakeInitialGuess(); |
31 | void MakeInitialGuess(int treshold); | |
68d9caee | 32 | |
33 | // virtual void SetTVector(double *tVector); | |
34 | // virtual void SetAVector(double *aVector); | |
35 | virtual void SetTVector(Double_t *tVector, Int_t size); | |
36 | virtual void SetAVector(Double_t *aVector, Int_t size); | |
37 | ||
cbab66dd | 38 | virtual void Evaluate(int start = 0, int lenght = 100) = 0; |
68d9caee | 39 | Double_t GetMaxValue(Double_t *dta, Int_t size); |
cbab66dd | 40 | |
41 | protected: | |
68d9caee | 42 | // double *fFloatDataPtr; /**<Float representation of data that should be fitted */ |
43 | Double_t *fFloatDataPtr; /**<Float representation of data that should be fitted */ | |
cbab66dd | 44 | double fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */ |
45 | double fDTofGuess; /**<Initial guess for t0*/ | |
46 | double fDAmplGuess; /**<Initial guess for amplitude*/ | |
47 | double fTau; /**<The risetime in micro seconds*/ | |
48 | double fDTof; /**<Time of flight in entities of sample intervals */ | |
49 | double fDAmpl; /**<Amplitude in entities of ADC levels*/ | |
50 | int n; | |
68d9caee | 51 | int fStartIndex; |
cbab66dd | 52 | }; |
53 | ||
54 | ||
55 | #endif |