]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/CALO/AliHLTCaloRawAnalyzer.h
Per Thomas: removing cout statement from event loop
[u/mrichter/AliRoot.git] / HLT / CALO / AliHLTCaloRawAnalyzer.h
1 //-*- Mode: C++ -*-
2 #ifndef ALIHLTCALORAWANALYZER_H
3 #define ALIHLTCALORAWANALYZER_H
4 /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id: AliHLTCALORawAnalyzer.h 34264 2009-08-14 18:29:23Z odjuvsla $ */
8
9 #include "Rtypes.h"
10 class AliHLTCaloUtilities;
11
12 class AliHLTCaloRawAnalyzer
13 {
14  public:
15   AliHLTCaloRawAnalyzer();
16   virtual ~AliHLTCaloRawAnalyzer();
17   void SetCorrectBaselineUsingFirstFiveSamples();
18   void CorrectBaselineUsingFirstFiveSamples(UShort_t *data, const int length);
19   inline float GetTiming() const {  return fDTof;};
20   inline float GetEnergy() const { return fDAmpl;};
21   void SetData(const UShort_t *data, const int length);
22   virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
23
24  protected:
25   bool fDoCorrectBaselineUsingFirstFiveSamples;
26   UShort_t   *fShortDataPtr;     /**<data that should be fitted */
27   double     fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
28   double     fTau;             /**<The risetime in micro seconds*/               
29   double     fDTof;            /**<Time of flight in entities of sample intervals */
30   double     fDAmpl;           /**<Amplitude in entities of ADC levels*/
31
32  protected:
33   AliHLTCaloUtilities *fUtilitiesPtr;
34
35  private:
36   AliHLTCaloRawAnalyzer(const AliHLTCaloRawAnalyzer & );
37   AliHLTCaloRawAnalyzer & operator = (const AliHLTCaloRawAnalyzer &);
38 };
39
40
41 #endif