1 #ifndef ALIHLTPHOSRAWANALYZER_H
2 #define ALIHLTPHOSRAWANALYZER_H
3 /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 #include "AliHLTPHOSBase.h"
11 class AliHLTPHOSRawAnalyzer: public AliHLTPHOSBase
12 //class AliHLTPHOSRawAnalyzer
15 AliHLTPHOSRawAnalyzer();
16 virtual ~AliHLTPHOSRawAnalyzer();
17 AliHLTPHOSRawAnalyzer(double *dataPtr, double fs);
19 void BaselineCorrection(double *dataPtr, int N);
20 void BaselineCorrection(double *dataPtr, double baselineValue);
21 int FindStartIndex(double treshold);
22 float GetTiming() const;
23 float GetEnergy() const;
25 void SetData(double *data);
26 void SetData(UInt_t *data);
28 void SetSampleFreq(double freq);
29 void SetStartIndex(int startIndex);
30 void MakeInitialGuess();
31 void MakeInitialGuess(int treshold);
33 virtual void SetTVector(Double_t *tVector, Int_t size);
34 virtual void SetAVector(Double_t *aVector, Int_t size);
35 virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
38 Double_t *fFloatDataPtr; /**<Float representation of data that should be fitted */
39 UInt_t *fIntDataPtr; /**<data that should be fitted */
40 double fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
41 double fDTofGuess; /**<Initial guess for t0*/
42 double fDAmplGuess; /**<Initial guess for amplitude*/
43 double fTau; /**<The risetime in micro seconds*/
44 double fDTof; /**<Time of flight in entities of sample intervals */
45 double fDAmpl; /**<Amplitude in entities of ADC levels*/
46 int fStartIndex; /**<Starindex of the time dependent altro signal*/
49 AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
50 AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &);