]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSAnalyzer.h
Inserting TMath.h where required by the new version of ROOT
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSAnalyzer.h
1 #ifndef ALIHLTPHOSANALYZER_H
2 #define ALIHLTPHOSANALYZER_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 class AliHLTPHOSAnalyzer
9 {
10  public:
11   AliHLTPHOSAnalyzer();
12   virtual ~AliHLTPHOSAnalyzer();
13   AliHLTPHOSAnalyzer(double *dataPtr, double fs);
14   AliHLTPHOSAnalyzer(const AliHLTPHOSAnalyzer & );
15   AliHLTPHOSAnalyzer & operator = (const AliHLTPHOSAnalyzer &)
16     {
17       return *this;
18     }
19
20   void BaselineCorrection(double *dataPtr, int N);
21   void BaselineCorrection(double *dataPtr, double baselineValue);  
22   int FindStartIndex(double treshold);
23   float GetTiming();
24   float GetEnergy();
25   void SetData(double *data);
26   void SetSampleFreq(double freq);
27   void MakeInitialGuess();
28   void MakeInitialGuess(int treshold);
29   virtual void Evaluate(int start = 0, int lenght = 100) = 0;
30
31  protected:
32   double    *fFloatDataPtr;    /**<Float representation of data that should be fitted */
33   double     fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
34   double     fDTofGuess;       /**<Initial guess for t0*/
35   double     fDAmplGuess;      /**<Initial guess for amplitude*/
36   double     fTau;             /**<The risetime in micro seconds*/               
37   double     fDTof;            /**<Time of flight in entities of sample intervals */
38   double     fDAmpl;           /**<Amplitude in entities of ADC levels*/
39   int        n;
40
41 };
42
43
44 #endif