]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSRawAnalyzer.h
Removing this file that was added to CVS by accident
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzer.h
1 #ifndef ALIHLTPHOSRAWANALYZER_H
2 #define ALIHLTPHOSRAWANALYZER_H
3 /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //#include "Rtypes.h"
9
10 #include "AliHLTPHOSBase.h"
11
12 class AliHLTPHOSRawAnalyzer: public AliHLTPHOSBase
13 {
14  public:
15   AliHLTPHOSRawAnalyzer();
16   virtual ~AliHLTPHOSRawAnalyzer();
17   AliHLTPHOSRawAnalyzer(double *dataPtr, double fs);
18   //  AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
19   //  AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &)
20   //   {
21   //      return *this;
22   //   }
23
24   void BaselineCorrection(double *dataPtr, int N);
25   void BaselineCorrection(double *dataPtr, double baselineValue);  
26   int FindStartIndex(double treshold);
27   float GetTiming() const;
28   float GetEnergy() const;
29
30   void SetData(double *data);
31   void SetData(UInt_t *data);
32
33   void SetSampleFreq(double freq);
34   void SetStartIndex(int startIndex);
35   void MakeInitialGuess();
36   void MakeInitialGuess(int treshold);
37   
38
39   virtual void SetTVector(Double_t *tVector, Int_t size);
40   virtual void SetAVector(Double_t *aVector, Int_t size);
41
42
43   /**
44    *Abstratct class documentation
45    */
46   virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
47   //  Double_t GetMaxValue(Double_t *dta, Int_t size) const;
48   //  UInt_t GetMaxValue(UInt_t *dta, Int_t size) const;
49
50  protected:
51   Double_t   *fFloatDataPtr;   /**<Float representation of data that should be fitted */
52   UInt_t   *fIntDataPtr;   /**<data that should be fitted */
53   double     fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
54   double     fDTofGuess;       /**<Initial guess for t0*/
55   double     fDAmplGuess;      /**<Initial guess for amplitude*/
56   double     fTau;             /**<The risetime in micro seconds*/               
57   double     fDTof;            /**<Time of flight in entities of sample intervals */
58   double     fDAmpl;           /**<Amplitude in entities of ADC levels*/
59   int        fStartIndex;
60 };
61
62
63 #endif