+++ /dev/null
-#ifndef ALIHLTPHOSPEAKFINDER_H
-#define ALIHLTPHOSPEAKFINDER_H
-#include <Rtypes.h>
-#include "TObject.h"
-#include "AliHLTPHOSRawAnalyzer.h"
-
-
-
-/* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
-
-class AliHLTPHOSPeakFinder : public TObject, public AliHLTPHOSRawAnalyzer
-//class AliHLTPHOSPeakFinder : public TObject
-{
- public:
- AliHLTPHOSPeakFinder();
- AliHLTPHOSPeakFinder(double *dataPtr, double fs);
- AliHLTPHOSPeakFinder(const AliHLTPHOSPeakFinder & );
- AliHLTPHOSPeakFinder & operator = (const AliHLTPHOSPeakFinder)
- {
- return *this;
- }
-
- virtual ~AliHLTPHOSPeakFinder();
- void FitPeakFinder(int start = 0, int lenght = 100, double *tVector = 0, double *aVector = 0);
- int FindStartIndex(double treshold);
- // virtual void Analyze(int start = 0, int lenght = 100, double *tVector = 0, double *aVector = 0) const;
- virtual void Analyze() const;
- private:
- void MakeInitialGuess();
- void MakeInitialGuess(int treshold);
- double fDTofGuess; /**<Initial guess for t0*/
- double fDAmplGuess; /**<Initial guess for amplitude*/
- double **kfMCovarPtrPtr; /**<Covariance matrix of the measurements*/
- double **fPCovarPtrPtr; /**<Covariance matrix of the estimated parameters*/
- ClassDef(AliHLTPHOSPeakFinder, 2)
-
- };
-
-#endif
+++ /dev/null
-#ifndef ALIHLTPHOSRAWANALYZER_H
-#define ALIHLTPHOSRAWANALYZER_H
-
-
-class AliHLTPHOSRawAnalyzer
-{
- public:
- AliHLTPHOSRawAnalyzer();
- ~AliHLTPHOSRawAnalyzer();
- AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
- AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer);
- void BaselineCorrection(double *dataPtr, int N);
- void BaselineCorrection(double *dataPtr, double baselineValue);
- float GetTiming();
- float GetEnergy();
- void SetData(double *data);
- virtual void Analyze() const = 0;
-
- protected:
- double *fFloatDataPtr; /**<Float representation of data that should be fitted */
- double fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
- 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 n;
-
-};
-
-
-#endif