/* $Id$ */
-#include "Rtypes.h"
-class AliHLTPHOSRawAnalyzer
+
+#include "AliHLTPHOSBase.h"
+class AliHLTPHOSUtilities;
+
+class AliHLTPHOSRawAnalyzer: public AliHLTPHOSBase
+//class AliHLTPHOSRawAnalyzer
{
public:
AliHLTPHOSRawAnalyzer();
virtual ~AliHLTPHOSRawAnalyzer();
AliHLTPHOSRawAnalyzer(double *dataPtr, double fs);
- AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
- AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &)
- {
- return *this;
- }
- void BaselineCorrection(double *dataPtr, int N);
+ void SetCorrectBaselineUsingFirstFiveSamples();
+ void CorrectBaselineUsingFirstFiveSamples(UInt_t *data, const int length);
+ // void CorrectBaselineUsingFirstFiveSamples(int *data, int length);
+ //void CorrectBaselineUsingFirstFiveSamples(double *data, int length);
+
+
+ // void BaselineCorrection(double *dataPtr, int N);
void BaselineCorrection(double *dataPtr, double baselineValue);
+
int FindStartIndex(double treshold);
float GetTiming() const;
float GetEnergy() const;
- void SetData(double *data);
+
+ // void SetData(const double *data);
+ void SetData(const UInt_t *data, const int length);
+ // void SetData(UInt_t *data, const int length);
+
+ // void SetData(double *data, const int length);
+ // void SetData(int *data, const int length);
+
+
void SetSampleFreq(double freq);
void SetStartIndex(int startIndex);
void MakeInitialGuess();
void MakeInitialGuess(int treshold);
+
virtual void SetTVector(Double_t *tVector, Int_t size);
virtual void SetAVector(Double_t *aVector, Int_t size);
- /**
- *Abstratct class documentation
- */
virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
- Double_t GetMaxValue(Double_t *dta, Int_t size) const;
+
protected:
- Double_t *fFloatDataPtr; /**<Float representation of data that should be fitted */
+ bool fDoCorrectBaselineUsingFirstFiveSamples;
+
+ // mutable Double_t *fFloatDataPtr; /**<Float representation of data that should be fitted */
+ // mutable UInt_t *fIntDataPtr; /**<data that should be fitted */
+
+ /* mutable const Double_t *fFloatDataPtr; /\**<Float representation of data that should be fitted *\/ */
+/* mutable const unsigned int *fIntDataPtr; /\**<data that should be fitted *\/ */
+
+
+ //double *fFloatDataPtr; /**<Float representation of data that should be fitted */
+
+ double *fDoubleDataPtr; /**<Float representation of data that should be fitted */
+ UInt_t *fIntDataPtr; /**<data that should be fitted */
+ // int *fIntDataPtr; /**<data that should be fitted */
+
+
+ // mutable const UInt_t *fIntDataPtr; /**<data that should be fitted */
+
double fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
double fDTofGuess; /**<Initial guess for t0*/
double fDAmplGuess; /**<Initial guess for amplitude*/
double fTau; /**<The risetime in micro seconds*/
double fDTof; /**<Time of flight in entities of sample intervals */
double fDAmpl; /**<Amplitude in entities of ADC levels*/
- int fStartIndex;
+ int fStartIndex; /**<Starindex of the time dependent altro signal*/
+
+ // double unsigned fTest;
+
+ protected:
+ AliHLTPHOSUtilities *fUtilitiesPtr;
+
+ private:
+ AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
+ AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &);
};