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