]>
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 | |
04751caa | 9 | |
43dd7c5e | 10 | #include "AliHLTPHOSBase.h" |
2589c3a3 | 11 | class AliHLTPHOSUtilities; |
43dd7c5e | 12 | |
13 | class AliHLTPHOSRawAnalyzer: public AliHLTPHOSBase | |
9c9d15d6 | 14 | //class AliHLTPHOSRawAnalyzer |
cbab66dd | 15 | { |
16 | public: | |
2f475e8c | 17 | AliHLTPHOSRawAnalyzer(); |
18 | virtual ~AliHLTPHOSRawAnalyzer(); | |
19 | AliHLTPHOSRawAnalyzer(double *dataPtr, double fs); | |
cbab66dd | 20 | |
04751caa | 21 | void SetCorrectBaselineUsingFirstFiveSamples(); |
22 | void CorrectBaselineUsingFirstFiveSamples(UInt_t *data, const int length); | |
23 | // void CorrectBaselineUsingFirstFiveSamples(int *data, int length); | |
24 | //void CorrectBaselineUsingFirstFiveSamples(double *data, int length); | |
25 | ||
26 | ||
27 | // void BaselineCorrection(double *dataPtr, int N); | |
cbab66dd | 28 | void BaselineCorrection(double *dataPtr, double baselineValue); |
04751caa | 29 | |
cbab66dd | 30 | int FindStartIndex(double treshold); |
d504c864 | 31 | float GetTiming() const; |
32 | float GetEnergy() const; | |
b2f40e59 | 33 | |
04751caa | 34 | // void SetData(const double *data); |
35 | void SetData(const UInt_t *data, const int length); | |
36 | // void SetData(UInt_t *data, const int length); | |
b2f40e59 | 37 | |
04751caa | 38 | // void SetData(double *data, const int length); |
39 | // void SetData(int *data, const int length); | |
40 | ||
41 | ||
cbab66dd | 42 | void SetSampleFreq(double freq); |
68d9caee | 43 | void SetStartIndex(int startIndex); |
cbab66dd | 44 | void MakeInitialGuess(); |
45 | void MakeInitialGuess(int treshold); | |
dbd79fad | 46 | |
68d9caee | 47 | virtual void SetTVector(Double_t *tVector, Int_t size); |
48 | virtual void SetAVector(Double_t *aVector, Int_t size); | |
04751caa | 49 | |
d504c864 | 50 | virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0; |
cbab66dd | 51 | |
04751caa | 52 | |
cbab66dd | 53 | protected: |
04751caa | 54 | bool fDoCorrectBaselineUsingFirstFiveSamples; |
55 | ||
939c67e7 | 56 | // mutable Double_t *fFloatDataPtr; /**<Float representation of data that should be fitted */ |
57 | // mutable UInt_t *fIntDataPtr; /**<data that should be fitted */ | |
04751caa | 58 | |
59 | /* mutable const Double_t *fFloatDataPtr; /\**<Float representation of data that should be fitted *\/ */ | |
60 | /* mutable const unsigned int *fIntDataPtr; /\**<data that should be fitted *\/ */ | |
61 | ||
62 | ||
63 | //double *fFloatDataPtr; /**<Float representation of data that should be fitted */ | |
64 | ||
65 | double *fDoubleDataPtr; /**<Float representation of data that should be fitted */ | |
66 | UInt_t *fIntDataPtr; /**<data that should be fitted */ | |
67 | // int *fIntDataPtr; /**<data that should be fitted */ | |
68 | ||
69 | ||
939c67e7 | 70 | // mutable const UInt_t *fIntDataPtr; /**<data that should be fitted */ |
71 | ||
cbab66dd | 72 | double fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */ |
73 | double fDTofGuess; /**<Initial guess for t0*/ | |
74 | double fDAmplGuess; /**<Initial guess for amplitude*/ | |
75 | double fTau; /**<The risetime in micro seconds*/ | |
76 | double fDTof; /**<Time of flight in entities of sample intervals */ | |
77 | double fDAmpl; /**<Amplitude in entities of ADC levels*/ | |
9c9d15d6 | 78 | int fStartIndex; /**<Starindex of the time dependent altro signal*/ |
79 | ||
04751caa | 80 | // double unsigned fTest; |
81 | ||
2589c3a3 | 82 | protected: |
83 | AliHLTPHOSUtilities *fUtilitiesPtr; | |
84 | ||
9c9d15d6 | 85 | private: |
86 | AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & ); | |
87 | AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &); | |
cbab66dd | 88 | }; |
89 | ||
90 | ||
91 | #endif |