Line data Source code
1 : //-*- Mode: C++ -*-
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 */
6 : /* $Id$ */
7 :
8 : #include "Rtypes.h"
9 :
10 : class AliHLTPHOSRawAnalyzer
11 : {
12 : public:
13 : AliHLTPHOSRawAnalyzer();
14 : virtual ~AliHLTPHOSRawAnalyzer();
15 0 : int FindStartIndex(double treshold){return -1;} //not implemented??
16 0 : float GetTiming() const { return fDTof;}; // peak position in entities of sample indexes
17 0 : float GetEnergy() const { return fDAmpl;}; // amplitude in entities of ADC channels ;
18 0 : void SetData(const UShort_t *data, const int /*length*/) {fShortDataPtr = const_cast<UShort_t *>(data);};
19 0 : void SetStartIndex(int startIndex) {fStartIndex = startIndex;};
20 : virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
21 :
22 : protected:
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*/
32 :
33 : private:
34 : AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
35 : AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &);
36 : };
37 :
38 :
39 : #endif
|