]>
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 | |
43dd7c5e | 9 | #include "AliHLTPHOSBase.h" |
10 | ||
11 | class AliHLTPHOSRawAnalyzer: public AliHLTPHOSBase | |
9c9d15d6 | 12 | //class AliHLTPHOSRawAnalyzer |
cbab66dd | 13 | { |
14 | public: | |
2f475e8c | 15 | AliHLTPHOSRawAnalyzer(); |
16 | virtual ~AliHLTPHOSRawAnalyzer(); | |
17 | AliHLTPHOSRawAnalyzer(double *dataPtr, double fs); | |
cbab66dd | 18 | |
19 | void BaselineCorrection(double *dataPtr, int N); | |
20 | void BaselineCorrection(double *dataPtr, double baselineValue); | |
21 | int FindStartIndex(double treshold); | |
d504c864 | 22 | float GetTiming() const; |
23 | float GetEnergy() const; | |
b2f40e59 | 24 | |
939c67e7 | 25 | void SetData(const double *data); |
26 | void SetData(const UInt_t *data); | |
b2f40e59 | 27 | |
cbab66dd | 28 | void SetSampleFreq(double freq); |
68d9caee | 29 | void SetStartIndex(int startIndex); |
cbab66dd | 30 | void MakeInitialGuess(); |
31 | void MakeInitialGuess(int treshold); | |
dbd79fad | 32 | |
68d9caee | 33 | virtual void SetTVector(Double_t *tVector, Int_t size); |
34 | virtual void SetAVector(Double_t *aVector, Int_t size); | |
d504c864 | 35 | virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0; |
cbab66dd | 36 | |
37 | protected: | |
939c67e7 | 38 | // mutable Double_t *fFloatDataPtr; /**<Float representation of data that should be fitted */ |
39 | // mutable UInt_t *fIntDataPtr; /**<data that should be fitted */ | |
40 | mutable const Double_t *fFloatDataPtr; /**<Float representation of data that should be fitted */ | |
41 | mutable const unsigned int *fIntDataPtr; /**<data that should be fitted */ | |
42 | // mutable const UInt_t *fIntDataPtr; /**<data that should be fitted */ | |
43 | ||
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*/ | |
9c9d15d6 | 50 | int fStartIndex; /**<Starindex of the time dependent altro signal*/ |
51 | ||
52 | private: | |
53 | AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & ); | |
54 | AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &); | |
cbab66dd | 55 | }; |
56 | ||
57 | ||
58 | #endif |