2 #ifndef ALIHLTPHOSRAWANALYZER_H
3 #define ALIHLTPHOSRAWANALYZER_H
4 /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 class AliHLTPHOSRawAnalyzer
13 AliHLTPHOSRawAnalyzer();
14 virtual ~AliHLTPHOSRawAnalyzer();
15 int FindStartIndex(double treshold);
16 float GetTiming() const { return fDTof;}; // peak position in entities of sample indexes
17 float GetEnergy() const { return fDAmpl;}; // amplitude in entities of ADC channels ;
18 void SetData(const UShort_t *data, const int /*length*/) {fShortDataPtr = const_cast<UShort_t *>(data);};
19 void SetStartIndex(int startIndex) {fStartIndex = startIndex;};
20 virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
23 double *fDoubleDataPtr; /**<Float representation of data that should be fitted */
24 UShort_t *fShortDataPtr; /**<data that should be fitted */
25 double fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
26 double fDTofGuess; /**<Initial guess for t0*/
27 double fDAmplGuess; /**<Initial guess for amplitude*/
28 double fTau; /**<The risetime in micro seconds*/
29 double fDTof; /**<Time of flight in entities of sample intervals */
30 double fDAmpl; /**<Amplitude in entities of ADC levels*/
31 int fStartIndex; /**<Starindex of the time dependent altro signal*/
34 AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
35 AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &);